Skip to content

lint for detecting objects with too many attributes #996

Description

@ext11n7

Problem

Currently, there is no lint that warns when an EO object declares too many attributes. Objects with excessive attributes are hard to read, test, and reuse. This violates the principle of keeping objects small and focused.

Suggestion

Add a new lint too-many-attributes that reports a defect when an object declares more than a configurable threshold of attributes (e.g., 5 by default).

Example of code that should trigger the lint

[a b c d e f g] +> my-object
  ...

This object has 7 attributes, which is too many.

Expected behavior

The lint should report a WARNING level defect pointing to the object and suggesting to split it into smaller objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions