neoclide / coc-solargraph

Solargraph extension for coc.nvim
202 stars 10 forks source link

Diagnostics don't not respect Rubocop excludes #36

Closed cseelus closed 4 years ago

cseelus commented 4 years ago

For example in a Rails project, schema.rb gets linted, despite being excluded.

Here is a minimal .rubocop.yml config for Rails projects from the Rubocop docs, where the excludes get ignored:

AllCops:
  Exclude:
    - 'db/**/*'
    - 'config/**/*'
    - 'script/**/*'
    - 'bin/{rails,rake}'

When setting other Linting options like maximum line length, they work though.

chemzqm commented 4 years ago

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

cseelus commented 4 years ago

I've checked the output with [LSP Inspector], everything seems ok, except that db/schema.rb gets linted, despite being on the exclude list.

workspace.showOutput

[solargraph.log](https://github.com/neoclide/coc-solargraph/files/4765670/solargraph.log)

As "my" language server is Solargraph, as installed alongside coc-solargraph, the problem is upstream I guess.