dalance/svls

Call svls.exe in VS Code with custom linting rules?

rsi7 opened this issue · 1 comments

rsi7 commented

Is there a way to call the Windows binary release of svls.exe with a custom linter rules configuration?

I have tried putting a custom '.svlint.toml' in the same directory as svls.exe, but within VS Code it always seems to complain ".svlint.toml is not found. Enable all lint rules."

I have also tried downloading a binary release of svlint.exe, adding it to Windows PATH ahead of svls.exe, and adding a custom .svlint.toml in the same directory as svlint.exe. This does not seem to work either - the command line invocation of svlint.exe performs linting with the correct parameters, but when using the language server in VS Code it goes back to using all lint rules.

.svlint.toml should be placed at the same or upper directory of the source code.
Typically it is placed at the repository root like below:

- project
  - .git
  - .svlint.toml
  - src
    - module.sv