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 #
producesComments :: Checker -> String -> Maybe Bool Source #
makeComment :: Severity -> Id -> Code -> String -> TokenComment Source #
addComment :: (NFData a, MonadWriter [a] m) => a -> 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 #
containsSetOption :: [Char] -> Token -> Bool Source #
containsShopt :: [Char] -> Token -> Bool Source #
isOptionSet :: [Char] -> Token -> Bool Source #
prop_determineShell0 :: Bool Source #
prop_determineShell1 :: Bool Source #
prop_determineShell2 :: Bool Source #
prop_determineShell3 :: Bool Source #
prop_determineShell4 :: Bool Source #
prop_determineShell5 :: Bool Source #
prop_determineShell6 :: Bool Source #
prop_determineShell7 :: Bool Source #
prop_determineShell8 :: Bool Source #
prop_determineShell9 :: Bool Source #
prop_determineShell10 :: Bool Source #
prop_determineShell11 :: Bool Source #
prop_determineShell12 :: Bool Source #
determineShellTest :: String -> Shell Source #
determineShellTest' :: Maybe Shell -> String -> Shell Source #
getClosestCommandM :: MonadReader Parameters m => Token -> m (Maybe Token) Source #
tokenIsJustCommandOutput :: Token -> Bool Source #
getVariableFlow :: Parameters -> Token -> [StackData] Source #
getVariableForTestDashV :: Token -> Maybe String Source #
isDereferencingBinaryOp :: String -> Bool Source #
dataTypeFrom :: (DataSource -> DataType) -> Token -> DataType Source #
isUnqualifiedCommand :: Token -> String -> Bool Source #
isCommandMatch :: Token -> (String -> Bool) -> Bool Source #
isConfusedGlobRegex :: String -> Bool Source #
getVariablesFromLiteralToken :: Token -> [String] Source #
prop_getVariablesFromLiteral1 :: Bool 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 #
isQuotedAlternativeReference :: Token -> Bool Source #
supportsArrays :: Shell -> Bool Source #
isBashLike :: Parameters -> Bool Source #
isTrueAssignmentSource :: DataType -> Bool Source #
modifiesVariable :: Parameters -> Token -> String -> Bool Source #