Closed wrhansen closed 10 years ago
You can define your rulesets in SublimeLinter settings like this:
...
"phpmd": {
"@disable": false,
"args": [],
"excludes": [],
"rulesets": "codesize,controversial,design,naming,unusedcode"
},
...
This does not work. My phpmd setting looks like:
"phpmd": {
"@disable": false,
"args": [],
"excludes": [],
"rulesets": "codesize,unusedcode"
},
But, when I open the console, debugging says:
SublimeLinter: phpmd: ContactController.php ['phpmd', '/home/blah/projects/php/blah/app/controllers/Controller.php', 'text', 'cleancode,codesize,controversial,design,naming,unusedcode']
I believe it is more than just the debugging, because I always get the same linter errors with any combination of rulesets.
Restarting sublime text does not solve this problem.
I don't want all the default rulesets to run when linting. Can this be a linter setting that we can override in the settings file? This will allow for limiting the default rulesets, and even allow for supplying custom rulesets.
The current method of inline per-file ruleset overrides is not ideal at all.