class Reek::SmellDetectors::Attribute

A class that publishes a getter or setter for an instance variable invites client classes to become too intimate with its inner workings, and in particular with its representation of state.

This detector raises a warning for every public attr_writer, attr_accessor, and attr with the writable flag set to true.

See {file:docs/Attribute.md} for details.

TODO: Catch attributes declared “by hand”