mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-04 21:36:55 +08:00
Enable autofix support. It's still preliminary.
This commit is contained in:
@@ -130,8 +130,7 @@ outputForFile color sys comments = do
|
|||||||
putStrLn (color "source" line)
|
putStrLn (color "source" line)
|
||||||
mapM_ (\c -> putStrLn (color (severityText c) $ cuteIndent c)) commentsForLine
|
mapM_ (\c -> putStrLn (color (severityText c) $ cuteIndent c)) commentsForLine
|
||||||
putStrLn ""
|
putStrLn ""
|
||||||
-- FIXME: Enable when reasonably stable
|
showFixedString color comments lineNum line
|
||||||
-- showFixedString color comments lineNum line
|
|
||||||
) groups
|
) groups
|
||||||
|
|
||||||
hasApplicableFix lineNum comment = fromMaybe False $ do
|
hasApplicableFix lineNum comment = fromMaybe False $ do
|
||||||
|
Reference in New Issue
Block a user