Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Allow priority configuration in PMD formatter #1420

Closed
yrtimiD opened this issue Jul 21, 2016 · 1 comment
Closed

Allow priority configuration in PMD formatter #1420

yrtimiD opened this issue Jul 21, 2016 · 1 comment

Comments

@yrtimiD
Copy link

yrtimiD commented Jul 21, 2016

Feature proposal:
When using PMD format all warnings are reported with priority=1 (guess it's a high).
Because tslint doesn't supports different priorities, I want to have separate tslint.json files with different rule sets and want to report their results differently to PMD files.
So, if tslint will support defining of PMD priority I'll be able to do something like next:

tslint --config=tslint_warn.json --out=pmd_warn.xml --pmd-priority=2
tslint --config=tslint_err.json --out=pmd_err.xml --pmd-priority=1
@jkillian
Copy link
Contributor

Hi @yrtimiD, I understand why you'd like this feature, but it doesn't make sense for us to add a special flag specifically for the PMD Formatter to our API. However, adding a way to set the priority of rules is definitely something we'd like to do (see #345) and I believe it's the right way to proceed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants