krank-0.2.0: Krank checks your code source comments for important markers

Safe HaskellNone
LanguageHaskell2010

Krank.Checkers.IssueTracker

Synopsis

Documentation

data GitIssue Source #

Constructors

GitIssue 

Fields

Instances
Eq GitIssue Source # 
Instance details

Defined in Krank.Checkers.IssueTracker

Show GitIssue Source # 
Instance details

Defined in Krank.Checkers.IssueTracker

data GitServer Source #

Constructors

Github 
Gitlab GitlabHost 
Instances
Eq GitServer Source # 
Instance details

Defined in Krank.Checkers.IssueTracker

Show GitServer Source # 
Instance details

Defined in Krank.Checkers.IssueTracker

data Localized t Source #

Represents a localized chunk of information in a file

Constructors

Localized 
Instances
Eq t => Eq (Localized t) Source # 
Instance details

Defined in Krank.Types

Methods

(==) :: Localized t -> Localized t -> Bool #

(/=) :: Localized t -> Localized t -> Bool #

Show t => Show (Localized t) Source # 
Instance details

Defined in Krank.Types

extractIssues Source #

Arguments

:: 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.

gitRepoRe :: Regex Source #

This regex represents a github/gitlab issue URL

extractIssuesOnALine :: ByteString -> [(Int, GitIssue)] Source #

Extract all issues on one line and returns a list of the raw text associated with an issue