cannot make linter ignore specific rules
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- cli
Research direction
Start in src/cmd/lint.js at the linked option-handling code and trace how web-ext lint invokes addons-linter. Check how disableLinterRules is represented there, then verify that specific rules can be disabled without ignoring other violations in the same file.
Written by the indexing model from the issue text.
Description
Even though addons-linter supports disabling specific rules, it seems that there is no way to use this feature when invoking web-ext lint. Based on a very quick glance at the code, maybe fixing this is as simple as adding disableLinterRules here?
The only workaround seems to be to ignore whole files, but this is undesirable for the same reason it's undesirable in other linters like eslint: it runs the risk of missing other rule violations in the ignored file.
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 386
- Avg merge
- 8h
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/web-ext
-
component: code quality
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
priority: enhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
contrib: good first bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·