Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data GitIssue = GitIssue {}
- data GitServer
- data Localized t = Localized {
- getLocation :: SourcePos
- unLocalized :: t
- checkText :: MonadKrank m => FilePath -> ByteString -> m [Violation]
- extractIssues :: FilePath -> ByteString -> [Localized GitIssue]
- gitRepoRe :: Regex
- serverDomain :: GitServer -> Text
- extractIssuesOnALine :: ByteString -> [(Int, GitIssue)]
Documentation
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 GitIssue] |
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, GitIssue)] Source #
Extract all issues on one line and returns a list of the raw text associated with an issue