giancosta86 / EasyPmd

Seamlessly integrates PMD into your NetBeans IDE
GNU General Public License v3.0
18 stars 5 forks source link

Project-specific rulesets #8

Open Zero3 opened 9 years ago

Zero3 commented 9 years ago

Hiya there. Here is another enhancement suggestion:

It would be nice to be able to specify rulesets per project instead of globally. I have some projects that has very rigorous rules, like Javadoc'ing everything, and some project that has more lenient rules (personal pet projects, for example), where more things are allowed. Having to go to the global EasyPmd options and change the active rulesets every time you switch projects is quite cumbersome.

giancosta86 commented 9 years ago

Thanks for the suggestion! ^__^

It would probably be a nice enhancement, but I'm afraid it might cause further issues:

  1. What about project-related NetBeans APIs? Would one still be able to integrate EasyPmd in projects targeting different kinds of technologies and languages? I should investigate that.
  2. What should be done when multiple projects are open at the same time, with dedicated EasyPmd settings? There should probably be multiple engine instances loaded at once.
  3. Global settings and per-project settings, how should they be related?

Anyway, I'll certainly consider this suggestion when working on the next major architectural revision of the plugin! ^__^