Completed
Pull Request — master (#1109)
by Abdeali
01:32
created

bears.natural_language.ProseLintBear   A

Complexity

Total Complexity 1

Size/Duplication

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 1
1
import re
2
3
from coalib.bearlib.abstractions.Lint import Lint
4
from coalib.bears.LocalBear import LocalBear
5
6
7
class ProseLintBear(LocalBear, Lint):
8
    executable = 'proselint'
9
    output_regex = re.compile(
10
        r'.+?:(?P<line>\d+):(?P<column>\d+): (?P<code>\S*) (?P<message>.+)')
11
12
    def run(self, filename, file):
13
        '''
14
        Checks the markdown file with Alex - Catch insensitive,
15
        inconsiderate writing.
16
        '''
17
        return self.lint(filename)
18