Example for excluding multiple rules
See original GitHub issueI tried the below in VSCode, but it doesn’t seem to be excluding anything…
{
"output" : [ ],
"rule" : [ ],
"excludes" : [
{
"code" : "VAR_HAS_PREFIX_OR_POSTFIX"
},
{
"code" : "MISSING_VAR"
},
{
"code" : "VAR_INVALID_NAME"
},
{
"code" : "MISSING_VAR"
},
{
"code" : "FUNCTION_TOO_COMPLEX"
}
],
"includes" : [ ],
"inheritParent" : false,
"inheritPlugins" : true
}
If I restart VSCode when there is a .cflintrc file, it doesn't seem to do any linting. If I remove it, it processes all rules, but I'm trying to find a way to exclude some.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Excluding multiple values in t-sql - Stack Overflow
Why the complex EXCEPT ? Doesn't this work?: SELECT * FROM Table Z WHERE NOT ( ( A= 2 and B= 10 and...
Read more >6 rsync Examples to Exclude Multiple Files and Directories ...
6 rsync Examples to Exclude Multiple Files and Directories using exclude-from · 1. Exclude a specific directory · 2. Exclude multiple directories ...
Read more >How to Exclude Values in COUNTIF - YouTube
How to Exclude Values in COUNTIF | COUNTIFS NOT EQUAL to Multiple Text | Exclude Values from List.
Read more >Snort Excluding Multiple Ports From ShellCode rules
How can I specify mutliple ports to exclude from shellcode rules? I'm using the latest version of snort. I'm also interested in knowing...
Read more >Using the IN, NOT, and LIKE Operators in SQL - Universal Class
SQL gets complex when you have multiple business rules that run how you return record sets ... The following query gives you an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would be inclined to move some of the rather opinionated naming rules to be disabled by default in a future release - there are more important things to lint. IMO. Thoughts?
On Thu, Nov 2, 2017 at 7:55 PM, Kai Koenig notifications@github.com wrote:
@rsmolkin, when I run your example I get a “could not read config file” on the stderr.
IT does not like the duplicate MISSING_VAR, the following will work for you:
I added a bit more info to the error message.