Safe Haskell | None |
---|---|
Language | Haskell98 |
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 #
data DataSource Source #
defaultSpec :: Token -> AnalysisSpec Source #
makeComment :: Severity -> Id -> Code -> String -> TokenComment Source #
addComment :: MonadWriter [t] m => t -> 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 #
containsSetE :: Token -> Bool Source #
containsLastpipe :: Token -> Bool Source #
determineShell :: Token -> Shell Source #
executableFromShebang :: String -> String Source #
getClosestCommandM :: MonadReader Parameters m => Token -> m (Maybe Token) Source #
getPathM :: MonadReader Parameters m => Token -> m [Token] Source #
pathTo :: MonadReader Parameters m => Token -> m [Token] Source #
tokenIsJustCommandOutput :: Token -> Bool Source #
getVariableFlow :: Parameters -> Token -> [StackData] Source #
isClosingFileOp :: Token -> Bool Source #
getIndexReferences :: String -> [String] Source #
getOffsetReferences :: String -> [String] Source #
dataTypeFrom :: (DataSource -> DataType) -> Token -> DataType Source #
isConfusedGlobRegex :: String -> Bool Source #
isVariableStartChar :: Char -> Bool Source #
isVariableChar :: Char -> Bool Source #
isVariableName :: [Char] -> Bool Source #
getVariablesFromLiteralToken :: Token -> [String] Source #
getVariablesFromLiteral :: String -> [String] Source #
getBracedReference :: [Char] -> [Char] Source #
getBracedModifier :: [Char] -> [Char] Source #
potentially :: Monad m => Maybe (m ()) -> m () Source #
headOrDefault :: t -> [t] -> t Source #
whenShell :: (Foldable t, MonadReader Parameters m) => t Shell -> m () -> m () Source #
filterByAnnotation :: AnalysisSpec -> Parameters -> [TokenComment] -> [TokenComment] Source #
isCountingReference :: Token -> Bool Source #