svls icon indicating copy to clipboard operation
svls copied to clipboard

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

Open ghost opened this issue 4 years ago • 1 comments

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.

ghost avatar May 02 '21 20:05 ghost

.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

dalance avatar May 05 '21 13:05 dalance