java - Eclipse-PMD Configure ruleset globally -


so using plugin eclipse-pmd (http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/) in shared version control enviroment.

we have multiple smaller projects in entire project.

out of box seems plugin requires individual configuration every single project. way works it searched .pmd file in project , read information that.

but it's inconvenient 10-20 subprojects.

there general setting under preferences -> pmd. doesn't seem apply globally, if global checkbox checked.

what want: want configure plugin respect single ruleset-file in 1 place.

there problem configuring subproject-specific: cannot configure relative path rulesetfile in .pmd-file. problem absolute path file checked version control ... every commit else have readjust. found commit: https://github.com/pmd/pmd/pull/36 cannot seem make work way it's described.

so, did achieve looking for?

edit: cannot specify other file not ".ruleset" in .pmd-file <rulesetfile> without specifying absolute path??

the default value rulesetfile ".ruleset". thought, analogous that, create file in exact same dir, call foorules.xml, , specify via <rulesetfile>foorules.xml</rulesetfile> can find if put entire path foorules.xml in there?!

try eclipse-pmd (available in eclipse marketplace or via update site http://www.acanda.ch/eclipse-pmd/release/latest). eclipse-pmd can configure projects use single rule set file several projects. stores path relative workspace. still have configure each project individually though (for now, change in future release).

to set eclipse-pmd in way described have open project properties of first project, select "pmd" property page , add rule set. select rule set type "workspace" , pick rule set file. every other project have open project's pmd property page you'll find selected rule set file needs checked activate.

if set way there .eclipse-pmd file in each project containing settings. if check version control system no 1 else in team has set (apart installing eclipse-pmd).

disclaimer: wrote eclipse-pmd. because had exact same problems other plugin.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -