File tree Expand file tree Collapse file tree 7 files changed +25
-20
lines changed Expand file tree Collapse file tree 7 files changed +25
-20
lines changed Original file line number Diff line number Diff line change 94
94
95
95
# Anti-pattern: Data.ByteString.Char8.pack
96
96
[[ignore ]]
97
- id = " OBS-STAN-0203-hTeu0Y-389 :17"
97
+ id = " OBS-STAN-0203-hTeu0Y-388 :17"
98
98
# ✦ Description: Usage of 'pack' function that doesn't handle Unicode characters
99
99
# ✦ Category: #AntiPattern
100
100
# ✦ File: src\Stack\Init.hs
101
101
#
102
- # 388 ┃
103
- # 389 ┃ commentHelp = BC.pack . intercalate "\n" . map commentLine
104
- # 390 ┃ ^^^^^^^
102
+ # 387 ┃
103
+ # 388 ┃ commentHelp = BC.pack . intercalate "\n" . map commentLine
104
+ # 389 ┃ ^^^^^^^
105
105
106
106
# Anti-pattern: Data.ByteString.Char8.pack
107
107
[[ignore ]]
108
- id = " OBS-STAN-0203-hTeu0Y-406 :26"
108
+ id = " OBS-STAN-0203-hTeu0Y-405 :26"
109
109
# ✦ Description: Usage of 'pack' function that doesn't handle Unicode characters
110
110
# ✦ Category: #AntiPattern
111
111
# ✦ File: src\Stack\Init.hs
112
112
#
113
- # 405 ┃
114
- # 406 ┃ <> B.byteString (BC.pack $ concat
115
- # 407 ┃ ^^^^^^^
113
+ # 404 ┃
114
+ # 405 ┃ <> B.byteString (BC.pack $ concat
115
+ # 406 ┃ ^^^^^^^
116
116
117
117
# Anti-pattern: Data.ByteString.Char8.pack
118
118
[[ignore ]]
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ instance Exception BuildPlanException where
91
91
, case mapMaybe goRecommend $ Map. toList unknown of
92
92
[] -> []
93
93
rec ->
94
- (" Recommended action: modify the extra-deps field of " ++
94
+ (" Recommended action: modify the value of the extra-deps key of " ++
95
95
toFilePath stackYaml ++
96
96
" to include the following:" )
97
97
: (rec
@@ -125,7 +125,7 @@ instance Exception BuildPlanException where
125
125
| otherwise = concat
126
126
[ [" The following packages are shadowed by project packages:" ]
127
127
, map go (Map. toList shadowed)
128
- , [" Recommended action: modify the extra-deps field of " ++
128
+ , [" Recommended action: modify the value of the extra-deps key of " ++
129
129
toFilePath stackYaml ++
130
130
" to include the following:" ]
131
131
, extraDeps
Original file line number Diff line number Diff line change @@ -432,7 +432,10 @@ logPossibilities dirs mn = do
432
432
, line <> bulletedList (map pretty possibilities)
433
433
, flow " If you are using a custom preprocessor for this module"
434
434
, flow " with its own file extension, consider adding the extension"
435
- , flow " to the 'custom-preprocessor-extensions' field in stack.yaml."
435
+ , flow " to the value of the"
436
+ , style Shell " custom-preprocessor-extensions"
437
+ , flow " key in Stack's project-level configuration file"
438
+ , " (" <> style File " stack.yaml" <> " )."
436
439
]
437
440
where
438
441
makePossibilities name =
Original file line number Diff line number Diff line change @@ -824,7 +824,7 @@ withBuildConfig inner = do
824
824
, pretty dest <> " ."
825
825
, flow " Note: You can change the snapshot via the"
826
826
, style Shell " snapshot"
827
- , flow " field there."
827
+ , flow " key there."
828
828
]
829
829
p <- getEmptyProject mSnapshot []
830
830
liftIO $ do
Original file line number Diff line number Diff line change @@ -1171,13 +1171,16 @@ targetWarnings localTargets nonLocalTargets mfileTargets = do
1171
1171
, pretty projectConfigFile <> " ,"
1172
1172
, flow " then you can use"
1173
1173
, style Shell " stack init"
1174
- , flow " to create a new stack.yaml for the packages in the \
1175
- \current directory."
1174
+ , flow " to create a new"
1175
+ , style File " stack.yaml"
1176
+ , flow " for the packages in the current directory."
1176
1177
, line
1177
1178
]
1178
1179
, flow " If you want to use the project configuration at"
1179
1180
, pretty projectConfigFile <> " ,"
1180
- , flow " then you can add to its 'packages' field."
1181
+ , flow " then you can add to the value of its"
1182
+ , style Shell " packages"
1183
+ , " key."
1181
1184
]
1182
1185
, " "
1183
1186
]
Original file line number Diff line number Diff line change @@ -376,9 +376,8 @@ renderStackYaml p ignoredPackages dupPackages =
376
376
where
377
377
convert v = B. byteString (Yaml. encode $ Yaml. object [(name, v)])
378
378
379
- -- Some fields in stack.yaml are optional and may not be
380
- -- generated. For these, we provided commented out dummy
381
- -- values to go along with the comments.
379
+ -- Some keys in stack.yaml are optional and may not be generated. For these,
380
+ -- we provided commented out dummy values to go along with the comments.
382
381
nonPresentValue " extra-deps" = Just " # extra-deps: []\n "
383
382
nonPresentValue " flags" = Just " # flags: {}\n "
384
383
nonPresentValue " extra-package-dbs" = Just " # extra-package-dbs: []\n "
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ instance Exception TypesSnapshotException where
43
43
]
44
44
displayException (FilepathInDownloadedSnapshot url) = unlines
45
45
[ " Error: [S-4865]"
46
- , " Downloaded snapshot specified a 'snapshot: { location: filepath }' "
47
- , " field, but filepaths are not allowed in downloaded snapshots.\n "
46
+ , " Downloaded snapshot specified 'snapshot: { location: filepath }', "
47
+ , " but filepaths are not allowed in downloaded snapshots.\n "
48
48
, " Filepath specified: " ++ T. unpack url
49
49
]
50
50
You can’t perform that action at this time.
0 commit comments