Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data LogFormat
- data LogFormatChoice
- data Severity
- data RemoveOrAddSpace
- data Issue
- = IssueParseError ParseError
- | Deprecated !String
- | Profanity
- | BeginnerMistake !String
- | WhitespaceStyle !String
- | SpaceAfterParenthesis !RemoveOrAddSpace
- | SpaceBeforeParenthesis !RemoveOrAddSpace
- | SpaceAfterBracket !RemoveOrAddSpace
- | SpaceBeforeBracket !RemoveOrAddSpace
- | SpaceAfterBrace !RemoveOrAddSpace
- | SpaceBeforeBrace !RemoveOrAddSpace
- | SpaceAfterComma !RemoveOrAddSpace
- | SpaceBeforeComma !RemoveOrAddSpace
- | TrailingWhitespace
- | InconsistentTabsSpaces
- | SyntaxInconsistency !String !String
- | LineTooLong
- | VariableShadows !String !Region
- | GotoAsIdentifier
- | InconsistentVariableNaming
- | ScopePyramids
- | UnusedVariable !String
- | AvoidGoto
- | EmptyDoBlock
- | EmptyWhileLoop
- | EmptyRepeat
- | EmptyIf
- | DoubleIf
- | EmptyFor
- | EmptyElseIf
- | EmptyElse
- | SelfInNonMeta
- | SelfEntity
- | SelfWeapon
- | UnnecessaryParentheses
- | SillyNegation !String
- | DuplicateKeyInTable !Token
- data LintMessage = LintMessage {}
- issueDescription :: Issue -> String
- issueTitle :: Issue -> String
- logFormatChoiceToLogFormat :: LogFormatChoice -> IO LogFormat
- formatLintMessage :: LogFormat -> LintMessage -> String
- formatLintMessageDefault :: LintMessage -> String
- formatLintMessageGithub :: LintMessage -> String
- sortLintMessages :: [LintMessage] -> [LintMessage]
Documentation
Output formats for logging
data LogFormatChoice Source #
Instances
FromJSON LogFormatChoice Source # | |
Defined in GLuaFixer.LintMessage parseJSON :: Value -> Parser LogFormatChoice # parseJSONList :: Value -> Parser [LogFormatChoice] # | |
ToJSON LogFormatChoice Source # | |
Defined in GLuaFixer.LintMessage toJSON :: LogFormatChoice -> Value # toEncoding :: LogFormatChoice -> Encoding # toJSONList :: [LogFormatChoice] -> Value # toEncodingList :: [LogFormatChoice] -> Encoding # | |
Show LogFormatChoice Source # | |
Defined in GLuaFixer.LintMessage showsPrec :: Int -> LogFormatChoice -> ShowS # show :: LogFormatChoice -> String # showList :: [LogFormatChoice] -> ShowS # |
data RemoveOrAddSpace Source #
With the Space(Before|After)(Parenthesis|Bracket|Brace), it depends on the pretty print settings whether the space is desired or not. This encodes what we ask the user to do.
Instances
Eq RemoveOrAddSpace Source # | |
Defined in GLuaFixer.LintMessage (==) :: RemoveOrAddSpace -> RemoveOrAddSpace -> Bool # (/=) :: RemoveOrAddSpace -> RemoveOrAddSpace -> Bool # |
Representation of the different kinds of issues that can be raised. Many of the arguments are
Value
, because this data type is a rewrite of what was previously directly rendered Strings.
Many of these Strings can later be rewritten to their own types if necessary.
data LintMessage Source #
Represents lint messages
LintMessage | |
|
Instances
Show LintMessage Source # | |
Defined in GLuaFixer.LintMessage showsPrec :: Int -> LintMessage -> ShowS # show :: LintMessage -> String # showList :: [LintMessage] -> ShowS # | |
Eq LintMessage Source # | |
Defined in GLuaFixer.LintMessage (==) :: LintMessage -> LintMessage -> Bool # (/=) :: LintMessage -> LintMessage -> Bool # |
issueDescription :: Issue -> String Source #
issueTitle :: Issue -> String Source #
Shorthand title of an issue. Several issues may share the same title.
formatLintMessage :: LogFormat -> LintMessage -> String Source #
sortLintMessages :: [LintMessage] -> [LintMessage] Source #
Sort lint messages on file and then region