So you want to raise an issue when the ratio of comments to code is too low in a method? I believe you’d have to implement that rule yourself. There is a rule that raises an issue when there’s no Javadoc, but it can’t tell the difference between real documentation & an empty stub provided by the IDE.
Can you tell me how to customize this rule about the ratio of comments to code, in which file or API interface it can be customized?Or do you need to modify the source file and repackage it?I want to know the location of the file?
Thank you very much!
I can’t tell you off-hand how to do this. The docs should get you started. And the rule you want to modify is somewhere in the Java analysis code. Sorry but I’m not familiar with the code base, so I can’t point you to the file.
If you have specific development questions, feel free to open new threads in the ‘Writing rules’ category.