Skip to content

Commit

Permalink
fix(CI): Fix edge case in code style checker (#9789)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetiroka committed Feb 17, 2024
1 parent 8b9c208 commit cf246d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/check_code_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"\\s+$": "trailing whitespace at end of line",
# Matches any number of operators that have no leading whitespace,
# except if preceded by '(', '[' or '{', or inside a 'case' constant expression.
"(?<!^case\\s.*)([^([{\\s" + std_op + "](?<!^.*[^\\w0-9]?operator))[" + std_op + "]+([^.\\)" + std_op + "]|$)(?!\\.\\.\\.)": "missing whitespace before operator"
"(?<!^case\\s.*)([^([{\\s" + std_op + "](?<!^.*[^\\w0-9]?operator))[" + std_op + "]+(?<!(->|::|\\.)\\*)([^.\\)" + std_op + "]|$)(?!\\.\\.\\.)": "missing whitespace before operator"
}.items()}
# Dict of patterns for selecting potential formatting issues in a full segment.
# (a segment is a part of a line that is between any strings, chars or comments)
Expand Down

0 comments on commit cf246d6

Please sign in to comment.