lib/harri/regexes.rb in harri-0.1.0 vs lib/harri/regexes.rb in harri-0.1.1
- old
+ new
@@ -25,10 +25,10 @@
\s # space
\[-Wunused-imports,\s-Werror=unused-imports\] # literal "[-Wunused-imports, -Werror=unused-imports]"
}x
# Intended to capture the scenario when an entire module is redundant.
- ENTIRE_MODULE_REDUNDANT_REGEX = /The import of ‘(.+)’ is redundant except.*/
+ ENTIRE_MODULE_REDUNDANT_REGEX = /The(?: qualified)? import of ‘(.+)’ is redundant except.*/
# Intended to capture the scenario when specific imports within a module are redundant.
REDUNDANT_IMPORTS_WITHIN_MODULE_REGEX = /The import of ‘(.+)’ from module ‘(.+)’ is redundant.*/
# Intended to capture a full import declaration within a Haskell module.