Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data GitIssueRef = GitIssueRef {}
- data GitServer
- data Localized t = Localized {
- getLocation :: SourcePos
- unLocalized :: t
- checkText :: MonadKrank m => FilePath -> ByteString -> m [Violation]
- extractIssues :: FilePath -> ByteString -> [Localized GitIssueRef]
- gitRepoRe :: Regex
- serverDomain :: GitServer -> Text
- extractIssuesOnALine :: ByteString -> [(Int, GitIssueRef)]
Documentation
data GitIssueRef Source #
Instances
Show GitIssueRef Source # | |
Defined in Krank.Checkers.IssueTracker showsPrec :: Int -> GitIssueRef -> ShowS # show :: GitIssueRef -> String # showList :: [GitIssueRef] -> ShowS # | |
Eq GitIssueRef Source # | |
Defined in Krank.Checkers.IssueTracker (==) :: GitIssueRef -> GitIssueRef -> Bool # (/=) :: GitIssueRef -> GitIssueRef -> Bool # |
Represents a localized chunk of information in a file
Localized | |
|
checkText :: MonadKrank m => FilePath -> ByteString -> m [Violation] Source #
:: FilePath | Path of the file |
-> ByteString | Content of the file |
-> [Localized GitIssueRef] |
Extract all issues correctly localized
Note: we use ByteString
internally. This way we do not have to
care about the possible encoding of the input files.
In programming world, we mostly use ascii variants. This gives a
few performance improvement compared to initially converting
everything to Text
and search on it.
serverDomain :: GitServer -> Text Source #
extractIssuesOnALine :: ByteString -> [(Int, GitIssueRef)] Source #
Extract all issues on one line and returns a list of the raw text associated with an issue