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

Pluggable lint/format engine #385

Open
mshr-h opened this issue Jan 10, 2023 · 1 comment
Open

Pluggable lint/format engine #385

mshr-h opened this issue Jan 10, 2023 · 1 comment

Comments

@mshr-h
Copy link
Owner

mshr-h commented Jan 10, 2023

Maybe we can do something like this?

"verilog.linter": "IcarusLinter",
"verilog.linter.icarusLinter.command": "/usr/bin/iverilog -t null -Wall $FILEURI",
"verilog.linter.icarusLinter.file_patterns": ["*.v", "*.sv"],
"verilog.linter.icarusLinter.pattern: "^[^:]\+:\(\d\+\): \(warning\|error\|syntax error\)\(: \(.\+\)\)\?",
"verilog.linter.icarusLinter.pattern_order: ["line": 1, "type": 2", "message": 4],
"verilog.linter.icarusLinter.pattern_type: ["error": ["error", "syntax error"], "warning": ["warning"]],
"verilog.formatter": "verilogFormat",
"verilog.linter.verilogFormat.command": "verilogFormat -f $FILEURI",
"verilog.linter.verilogFormat.useTempFile": true,
@mshr-h mshr-h changed the title Pluggable lint engine Pluggable lint/format engine Jan 10, 2023
@Raamakrishnan
Copy link
Contributor

This might be the better way to handle all the possible lint tools that can be. But these settings also feel like we are re-inventing VSCode tasks/task provider and problem matcher

The problem matchers are the most reusable thing across users. But the file extensions, command line path and args vary vastly.

Can we go complete "hands-off" by providing just the problem matcher, and let the users write their own tasks? Or we can have some sort of a basic task format like a template. I may have to see if task provider can be used to give this template

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

No branches or pull requests

2 participants