Failed Conditions
Pull Request — master (#1128)
by Lasse
01:44
created

bears.natural_language.MarkdownBear   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %
Metric Value
dl 0
loc 11
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 2
1
from coalib.bearlib.abstractions.CorrectionBasedBear import CorrectionBasedBear
2
3
4
class MarkdownBear(CorrectionBasedBear):
5
    BINARY = 'mdast'
6
    RESULT_MESSAGE = "The text does not comply to the set style."
7
8
    def run(self, filename, file):
9
        """
10
        Raises issues against style violations on markdown files.
11
        """
12
        cli = r'-s "bullet: \"*\", fences: true"'
13
        for result in self.retrieve_results(filename, file, cli_options=cli):
14
            yield result
15