-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Implement the Naming-Convention Rules.
Acceptance-Criteria:
The following rules are implemented:
- N1 - Cto
N2 - Dao(obsolete)- N3 - Entity
- N4 - Eto
- N5 - UseCase
N6 - SearchCriteria(not needed for our simplified samle, give projects more freedom of choice)N7 - To(same as above)N8 - did not even exist in sonar plugin- N9 - Repository
Please consider other options that ArchUnit and/or Exceptions and build-breakers for this. Instead we should get warnings for these violations. Totally awesome would be to have something like "custom checkstyle rules" that could run in IDEs like Eclipse or IntelliJ and mark violations with warning icons and according message. However to start simple and get this done, we can use some kind of reflection infrastructure (ArchUnit, Classgraph, org.reflections) to implement the check of the naming conventions manually and then log ERROR message but keep the test green and the build successful if naming conventions are violated.
BTW: Unfortunately there is no Java standard for rules that can do static code analysis that would be used by checkstyle, pmd, findbugs, sonar-qube, etc.
The de-facto-standard still is sonar-qube but as we have seen the ecosystem is fragile and maintenance of such rules as plugin is rather tricky.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status