Improve lint rule help #2278
Labels
enhancement
New feature or request
good first issue
Good for newcomers
style-linter
Verilog style-linter issues
Summary
Rule descriptions can be obtained by running
verible-verilog-lint --help_rules=all
, which isnot properly formatted for long descriptions. It also doesn't support showing examples, which might be useful for some complex rules. Current workaround is reading the source code and tests for a rule, which is not all that great.
Proposal
If anyone wants to take this / ask for pointers, go ahead. A few tips for potential contributors unfamiliar with the tool / bazel build system.
bazel build //verilog/tools/lint:verible-verilog-lint
compiles the CLI lint tool, which will be available at./bazel-bin/verilog/tools/lint/verible-verilog-lint
verible-verilog-lint --help_rules=all
/verible-verilog-lint --help_rules=<RULE_NAME>
should print rules' help message.Relevant snippets of code:
verible/verilog/analysis/descriptions.h
Line 38 in 14eed6a
verible/verilog/analysis/checkers/line_length_rule.cc
Line 63 in 14eed6a
verible/verilog/analysis/verilog_linter.cc
Line 362 in 14eed6a
The text was updated successfully, but these errors were encountered: