vscode-ruby version: 0.27.0Ignored files specified in the AllCops.Exclude list in .rubocop.yml are respected, when Rubocop linting is run by the extension.
The ignored files list is not being respected. The extension is underlining code due to a Rubocop violation. However, the entire file should have been excluded (and it is indeed excluded when I run rubocop directly on the command line).
In my case, I ignored all DB migration files, as in db/migrate/*. Looks like this isn't getting picked up properly by the extension.
Thank you.
I had a similar issue. After a little digging I found that the forceExclusion option fixes this issue for me (it essentially tells Rubocop to honor Excludes in the config).
You can enable it in VS Code's settings.json as follows:
"ruby.lint": {
"rubocop": {
"forceExclusion": true
}
},
This issue has not had activity for 30 days. It will be automatically closed in 7 days.
Most helpful comment
I had a similar issue. After a little digging I found that the
forceExclusionoption fixes this issue for me (it essentially tells Rubocop to honorExcludes in the config).You can enable it in VS Code's settings.json as follows: