Some inspections are inflexible and could do with improvement
已回答
I am an amateur Java developer with only basic formal training but always strive for improving and cleaning my code - IntelliJ inspections are a great tool for this never-ending journey. However, there are some cases where I need to make sweeping suppressions of some inspections/classes because they lack finer control or exclusions.
I would be willing to learn how to write/modify my own inspections if possible if someone can point me in the right direction.
Some example of inspections I feel could use improvement:
- "Cyclic class dependency" inspections should have an option to ignore cyclic dependencies on inner classes (or things marked with a custom annotation)
- "Feature envy" and "Class with too many dependencies" should have an option to skip counting *dependencies* that are marked with a custom annotation (e.g. @LibrarySource) - useful when working on project and library sources in parallel.
Thank you in advance for any feedback.
请先登录再写评论。
Hello,
Please feel free to add the feature requests to our bug tracker system YouTrack: https://youtrack.jetbrains.com/issues
Code samples will be much appreciated.
Thank you