Prevent SC2101 to collide with 2060 for tr -d [:space:]
This commit is contained in:
parent
81956d324d
commit
d63406abe4
|
@ -2252,7 +2252,9 @@ prop_checkCharRangeGlob1 = verify checkCharRangeGlob "ls *[:digit:].jpg"
|
|||
prop_checkCharRangeGlob2 = verifyNot checkCharRangeGlob "ls *[[:digit:]].jpg"
|
||||
prop_checkCharRangeGlob3 = verify checkCharRangeGlob "ls [10-15]"
|
||||
prop_checkCharRangeGlob4 = verifyNot checkCharRangeGlob "ls [a-zA-Z]"
|
||||
checkCharRangeGlob _ (T_Glob id str) | isCharClass str =
|
||||
prop_checkCharRangeGlob5 = verifyNot checkCharRangeGlob "tr -d [a-zA-Z]" -- tr has 2060
|
||||
checkCharRangeGlob p t@(T_Glob id str) |
|
||||
isCharClass str && not (isParamTo (parentMap p) "tr" t) =
|
||||
if ":" `isPrefixOf` contents
|
||||
&& ":" `isSuffixOf` contents
|
||||
&& contents /= ":"
|
||||
|
|
Loading…
Reference in New Issue