File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ nodeChecksToTreeCheck checkList =
103
103
104
104
nodeChecks :: [Parameters -> Token -> Writer [TokenComment ] () ]
105
105
nodeChecks = [
106
- checkUuoc
107
- ,checkPipePitfalls
106
+ checkPipePitfalls
108
107
,checkForInQuoted
109
108
,checkForInLs
110
109
,checkShorthandIf
@@ -273,6 +272,13 @@ optionalTreeChecks = [
273
272
cdPositive = " rm -r \" $(get_chroot_dir)/home\" " ,
274
273
cdNegative = " set -e; dir=\" $(get_chroot_dir)\" ; rm -r \" $dir/home\" "
275
274
}, checkExtraMaskedReturns)
275
+
276
+ ,(newCheckDescription {
277
+ cdName = " useless-use-of-cat" ,
278
+ cdDescription = " Check for Useless Use Of Cat (UUOC)" ,
279
+ cdPositive = " cat foo | grep bar" ,
280
+ cdNegative = " grep bar foo"
281
+ }, nodeChecksToTreeCheck [checkUuoc])
276
282
]
277
283
278
284
optionalCheckMap :: Map. Map String (Parameters -> Token -> [TokenComment ])
You can’t perform that action at this time.
0 commit comments