File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 51
51
- import Data.Attoparsec.Text
52
52
- import Data.Attoparsec.ByteString
53
53
54
+ - package :
55
+ name : text
56
+ modules :
57
+ - import Data.Text
58
+ - import Data.Text.Encoding
59
+
54
60
- package :
55
61
name : codeworld-api
56
62
modules :
869
875
- warn : {lhs: Data.Attoparsec.Text.option Nothing (Just <$> p), rhs: optional p}
870
876
- warn : {lhs: Data.Attoparsec.ByteString.option Nothing (Just <$> p), rhs: optional p}
871
877
878
+ - group :
879
+ name : text
880
+ enabled : true
881
+ imports :
882
+ - package text
883
+ rules :
884
+ - warn : {lhs: decodeUtf8, rhs: decodeUtf8', name: Avoid decodeUtf8}
885
+
872
886
- group :
873
887
name : generalise
874
888
enabled : false
1235
1249
# issue1183 = (a >= 'a') && (a <= 'z') -- isAsciiLower a
1236
1250
# issue1218 = uncurry (zipWith g) $ (a, b) -- zipWith g a b
1237
1251
1252
+ # import Data.Text
1253
+ # import Data.Text.Encoding
1254
+ # yes = decodeUtf8 -- decodeUtf8'
1255
+
1238
1256
# import Language.Haskell.TH\
1239
1257
# yes = varE 'foo -- [|foo|]
1240
1258
# import Prelude \
Original file line number Diff line number Diff line change @@ -11921,4 +11921,20 @@ optional p
11921
11921
</td >
11922
11922
<td >Warning</td >
11923
11923
</tr >
11924
+ <tr >
11925
+ <td >Avoid decodeUtf8</td >
11926
+ <td >
11927
+ LHS:
11928
+ <code >
11929
+ Data.Text.Encoding.decodeUtf8
11930
+ </code >
11931
+ <br >
11932
+ RHS:
11933
+ <code >
11934
+ Data.Text.Encoding.decodeUtf8'
11935
+ </code >
11936
+ <br >
11937
+ </td >
11938
+ <td >Warning</td >
11939
+ </tr >
11924
11940
</table >
You can’t perform that action at this time.
0 commit comments