mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-20 13:23:55 -07:00
Show expose error code in shellcheck frontends
This commit is contained in:
parent
e5e08df1d9
commit
d404bc703d
3 changed files with 5 additions and 2 deletions
|
@ -66,7 +66,9 @@ doInput filename contents colorFunc = do
|
|||
return $ null comments
|
||||
|
||||
cuteIndent comment =
|
||||
(replicate ((scColumn comment) - 1) ' ') ++ "^-- " ++ (scMessage comment)
|
||||
(replicate ((scColumn comment) - 1) ' ') ++ "^-- " ++ (code $ scCode comment) ++ ": " ++ (scMessage comment)
|
||||
|
||||
code code = "SC" ++ (show code)
|
||||
|
||||
getColorFunc = do
|
||||
term <- hIsTerminalDevice stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue