Adding upstream version 0.19.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9b31168df6
commit
528df549e3
111 changed files with 2058 additions and 1676 deletions
|
@ -1,5 +1,5 @@
|
|||
from gitlint.rules import CommitRule, RuleViolation, ConfigurationRule
|
||||
from gitlint.options import IntOption, StrOption, ListOption
|
||||
from gitlint.options import IntOption, ListOption, StrOption
|
||||
from gitlint.rules import CommitRule, ConfigurationRule, RuleViolation
|
||||
|
||||
|
||||
class GitContextRule(CommitRule):
|
||||
|
@ -64,9 +64,9 @@ class ConfigurableCommitRule(CommitRule):
|
|||
|
||||
def validate(self, _):
|
||||
violations = [
|
||||
RuleViolation(self.id, f"int-öption: {self.options[u'int-öption'].value}", line_nr=1),
|
||||
RuleViolation(self.id, f"str-öption: {self.options[u'str-öption'].value}", line_nr=1),
|
||||
RuleViolation(self.id, f"list-öption: {self.options[u'list-öption'].value}", line_nr=1),
|
||||
RuleViolation(self.id, f"int-öption: {self.options['int-öption'].value}", line_nr=1),
|
||||
RuleViolation(self.id, f"str-öption: {self.options['str-öption'].value}", line_nr=1),
|
||||
RuleViolation(self.id, f"list-öption: {self.options['list-öption'].value}", line_nr=1),
|
||||
]
|
||||
|
||||
return violations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue