[rule request] enforce the order of final
along with ACL of classes
#1472
Labels
rule-request
Requests for a new rules.
final
along with ACL of classes
#1472
optional rule to enforce order of final of classes in a code base
internal final class MyClass {}
or
final public class MyClass {}
This could probably be done by using a regex to check both possibilities and suggest one or the other depending on preferences. A regex could also catch multiline declarations
<ws*>public|internal<ws*>final<ws*>class<ws*>
<ws*>final<ws*>public|internal<ws*>class<ws*>
This rule doesn't seek to introduce final, only to make the declaration consistent for readability
This is different than #228
The text was updated successfully, but these errors were encountered: