Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue May 2, 2021 · 1 comment
Open

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

ghost opened this issue May 2, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented May 2, 2021

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.

@dalance
Copy link
Owner

dalance commented May 5, 2021

.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant