mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-20 05:13:49 -07:00
Add a Diff output format
This commit is contained in:
parent
b8b4a11348
commit
b1aeee564c
8 changed files with 265 additions and 8 deletions
|
@ -25,6 +25,7 @@ import ShellCheck.Regex
|
|||
|
||||
import qualified ShellCheck.Formatter.CheckStyle
|
||||
import ShellCheck.Formatter.Format
|
||||
import qualified ShellCheck.Formatter.Diff
|
||||
import qualified ShellCheck.Formatter.GCC
|
||||
import qualified ShellCheck.Formatter.JSON
|
||||
import qualified ShellCheck.Formatter.JSON1
|
||||
|
@ -141,6 +142,7 @@ parseArguments argv =
|
|||
formats :: FormatterOptions -> Map.Map String (IO Formatter)
|
||||
formats options = Map.fromList [
|
||||
("checkstyle", ShellCheck.Formatter.CheckStyle.format),
|
||||
("diff", ShellCheck.Formatter.Diff.format options),
|
||||
("gcc", ShellCheck.Formatter.GCC.format),
|
||||
("json", ShellCheck.Formatter.JSON.format),
|
||||
("json1", ShellCheck.Formatter.JSON1.format),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue