Skip to content

Commit

Permalink
textrules Rename linter.check -> linter.syntaxrules_check.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveMcEwan committed May 17, 2023
1 parent 36e4512 commit f8ae3f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/linter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Linter {
}
}

pub fn check(&mut self, syntax_tree: &SyntaxTree, event: &NodeEvent) -> Vec<LintFailed> {
pub fn syntaxrules_check(&mut self, syntax_tree: &SyntaxTree, event: &NodeEvent) -> Vec<LintFailed> {
self.update_ctl_enabled(syntax_tree, event);

let node = match event {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub fn run_opt_config(printer: &mut Printer, opt: &Opt, config: Config) -> Resul
match parse_sv(&path, &defines, &includes, opt.ignore_include, false) {
Ok((syntax_tree, new_defines)) => {
for node in syntax_tree.into_iter().event() {
for failed in linter.check(&syntax_tree, &node) {
for failed in linter.syntaxrules_check(&syntax_tree, &node) {
pass = false;
if !opt.silent {
printer.print_failed(&failed, opt.single, opt.github_actions)?;
Expand Down

0 comments on commit f8ae3f0

Please sign in to comment.