# Data Clumps

> A defect in which the same group of values travels together without being named as one type.

Record: `architecture:data-clumps`
Kind: anti-pattern
Layer: [Enforcement Core](https://banes-lab.com/records/layer/enforcement-core.md)
Severity: discouraged
Scope: contract_compatibility
Canonical: https://banes-lab.com/ontology#architecture-data-clumps

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Middle Man](https://banes-lab.com/records/architecture/middle-man.md) and before [Primitive Obsession](https://banes-lab.com/records/architecture/primitive-obsession.md).

## Repair

- Refactored by: introduce_value_object, add_DTO, name_concept, validate_as_group
- Detected by: same_parameters_repeated, same_fields_appear_together, DTO_shape_duplicated
- Violated by: Pass the same group of fields together repeatedly without naming the group as a value object or contract.
- Measured by: repeated parameter groups across signatures
- Enforced by: duplicate parameter-group detection in lint

## Severity

- [discouraged](https://banes-lab.com/records/vocabulary/severity-discouraged.md)

## Category

- [Anti-patterns](https://banes-lab.com/records/architecture-category/anti-patterns.md)

## Force

- [Contract compatibility](https://banes-lab.com/records/force/contract-compatibility.md)

## Negated by

- [Value Object](https://banes-lab.com/records/architecture/value-object.md)

## Linked from

- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
- [Domain Architecture](https://banes-lab.com/ontology/principles/architecture-category-domain-architecture.md)
- [Severity levels](https://banes-lab.com/ontology/schema/the-vocabulary-severity.md)
- [The forces](https://banes-lab.com/ontology/schema/the-forces.md)
