-
Notifications
You must be signed in to change notification settings - Fork 217
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
move ViolationHandler to common #1080
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1080 +/- ##
==========================================
- Coverage 92.91% 92.91% -0.01%
==========================================
Files 334 335 +1
Lines 22196 22192 -4
==========================================
- Hits 20624 20620 -4
Misses 1572 1572
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Just one missing dependency.
@@ -227,14 +227,13 @@ cc_library( | |||
"//common/analysis:text_structure_linter", | |||
"//common/analysis:token_stream_lint_rule", | |||
"//common/analysis:token_stream_linter", | |||
"//common/strings:diff", | |||
"//common/analysis:violation_handler", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the verilog_linter_test
below also needs this dependency now.
@@ -34,6 +34,7 @@ | |||
#include "absl/status/statusor.h" | |||
#include "absl/strings/match.h" | |||
#include "absl/strings/string_view.h" | |||
#include "common/analysis/violation_handler.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... because of this added include.
If you add the dependency, this can be merged. |
13adf51
to
1289f4f
Compare
Now |
LGTM! |
This is a refactoring step before introducing Reviewdog Diagnostic Format in Verible:
#1018
ViolationHandler
is the interface which is supposed to be implemented byViolationPrinter
, RDFormat printer, and other potential handlers.This isn't specific to Verilog and thus we place it in
common
.