lib/harri/regexes.rb in harri-0.1.1 vs lib/harri/regexes.rb in harri-0.1.2
- old
+ new
@@ -21,10 +21,11 @@
\d+ # column number
: # literal colon
\s # space
error: # literal "error:"
\s # space
- \[-Wunused-imports,\s-Werror=unused-imports\] # literal "[-Wunused-imports, -Werror=unused-imports]"
+ \[-Wunused-imports,\s-?Werror=unused-imports\] # literal "[-Wunused-imports, -Werror=unused-imports]"
+ # with an optional dash attached to Werror
}x
# Intended to capture the scenario when an entire module is redundant.
ENTIRE_MODULE_REDUNDANT_REGEX = /The(?: qualified)? import of ‘(.+)’ is redundant except.*/