Safe Haskell | None |
---|---|
Language | Haskell98 |
ShellCheck.AnalyzerLib
Documentation
type AnalyzerM a = RWS Parameters [TokenComment] Cache a Source #
nullCheck :: b -> RWST Parameters [TokenComment] Cache Identity () Source #
runChecker :: Parameters -> Checker -> [TokenComment] Source #
data Parameters Source #
Constructors
Parameters | |
Fields
|
Instances
Show Parameters Source # | |
Defined in ShellCheck.AnalyzerLib Methods showsPrec :: Int -> Parameters -> ShowS # show :: Parameters -> String # showList :: [Parameters] -> ShowS # |
Constructors
SubshellScope String | |
NoneScope |
Constructors
StackScope Scope | |
StackScopeEnd | |
Assignment (Token, Token, String, DataType) | |
Reference (Token, Token, String) |
Constructors
DataString DataSource | |
DataArray DataSource |
data DataSource Source #
Constructors
SourceFrom [Token] | |
SourceExternal | |
SourceDeclaration | |
SourceInteger | |
SourceChecked |
Instances
Show DataSource Source # | |
Defined in ShellCheck.AnalyzerLib Methods showsPrec :: Int -> DataSource -> ShowS # show :: DataSource -> String # showList :: [DataSource] -> ShowS # |
data VariableState Source #
Instances
Show VariableState Source # | |
Defined in ShellCheck.AnalyzerLib Methods showsPrec :: Int -> VariableState -> ShowS # show :: VariableState -> String # showList :: [VariableState] -> ShowS # |
pScript :: String -> ParseResult Source #
makeComment :: Severity -> Id -> Code -> String -> TokenComment Source #
addComment :: (NFData a, MonadWriter [a] m) => a -> m () Source #
warn :: MonadWriter [TokenComment] m => Id -> Code -> String -> m () Source #
err :: MonadWriter [TokenComment] m => Id -> Code -> String -> m () Source #
info :: MonadWriter [TokenComment] m => Id -> Code -> String -> m () Source #
style :: MonadWriter [TokenComment] m => Id -> Code -> String -> m () Source #
errWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m () Source #
warnWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m () Source #
infoWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m () Source #
styleWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m () Source #
addCommentWithFix :: MonadWriter [TokenComment] m => Severity -> Id -> Code -> String -> Fix -> m () Source #
makeCommentWithFix :: Severity -> Id -> Code -> String -> Fix -> TokenComment Source #
containsSetE :: Token -> Bool Source #
determineShellTest :: String -> Shell Source #
getClosestCommandM :: MonadReader Parameters m => Token -> m (Maybe Token) Source #
getPathM :: MonadReader Parameters m => Token -> m (NonEmpty Token) Source #
tokenIsJustCommandOutput :: Token -> Bool Source #
getVariableFlow :: Parameters -> Token -> [StackData] Source #
isDereferencingBinaryOp :: String -> Bool Source #
dataTypeFrom :: (DataSource -> DataType) -> Token -> DataType Source #
isConfusedGlobRegex :: String -> Bool Source #
getVariablesFromLiteralToken :: Token -> [String] Source #
getVariablesFromLiteral :: String -> [String] Source #
whenShell :: (MonadReader Parameters m, Foldable t) => t Shell -> m () -> m () Source #
filterByAnnotation :: AnalysisSpec -> Parameters -> [TokenComment] -> [TokenComment] Source #
shouldIgnoreCode :: Parameters -> Integer -> Token -> Bool Source #
isCountingReference :: Token -> Bool Source #
supportsArrays :: Shell -> Bool Source #
isBashLike :: Parameters -> Bool Source #
modifiesVariable :: Parameters -> Token -> String -> Bool Source #