Skip to content

Commit

Permalink
Modify rule S6745(Java): Update rule description (#3431)
Browse files Browse the repository at this point in the history
  • Loading branch information
alban-auzeill authored Nov 10, 2023
1 parent c82a1c5 commit c0ea582
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rules/S6745/java/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ Only basic Interfaces or utility classes should be allowed to become Local Butte
the likelihood of breaking a lot of other places is reduced. The rule considers a component simple when the number
of "public field count + public method count + public method parameter count" <= 10. And `Object` methods `equals`,
`hashCode`, `toString` and `compareTo` are ignored in the computation.
* The rule ignores "data classes", classes with only public constructors/getters/setters/fields, and a maximum of one
other public method (ignoring `equals`, `hashCode`, `toString` and `compareTo`).
* The rule has a different threshold for "data classes", classes with only public constructors/getters/setters/fields,
and a maximum of one other public method (ignoring `equals`, `hashCode`, `toString` and `compareTo`). In this case,
the threshold is doubled.

== How to fix it

Expand Down

0 comments on commit c0ea582

Please sign in to comment.