Some rules are hard to enforce for a complete codebase. We’ve got our code in a mono-repo including both backend and frontend code.
Frontend code relies on UI components that bring themselves a few levels in dependency tree.
So for rule “Inheritance tree of classes should not be too deep” (java:S110) we would prefer to have different values of “max” depending on module, e.g.
- frontend: max=8
- backend: max=4
frontend and backend codes are e.g. distinguishable by source folder.