Skip to content

Commit

Permalink
fix: add missing is_in_disabled_region check
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 committed Sep 7, 2023
1 parent 22e2690 commit 69f5a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/check/validators/constant_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ pub fn validate(parsed: &Parsed) -> Vec<InvalidItem> {

let mut invalid_items: Vec<InvalidItem> = Vec::new();
for element in &pt.0 {
if is_in_disabled_region(parsed, element) {
continue
}
match element {
SourceUnitPart::VariableDefinition(v) => {
if let Some(invalid_item) = validate_name(file, src, v) {
Expand Down

0 comments on commit 69f5a14

Please sign in to comment.