| Total Complexity | 1 | 
| Total Lines | 16 | 
| Duplicated Lines | 0 % | 
| 1 | import re  | 
            ||
| 8 | class CSharpLintBear(LocalBear, Lint):  | 
            ||
| 9 | executable = 'mcs'  | 
            ||
| 10 | output_regex = re.compile(  | 
            ||
| 11 | r'(?P<filename>.+\.cs)\((?P<line>\d+),(?P<col>\d+)\): '  | 
            ||
| 12 | r'(?P<severity>error|warning) (?P<severity_code>\w+): (?P<message>.+)'  | 
            ||
| 13 | )  | 
            ||
| 14 | use_stderr = True  | 
            ||
| 15 |     severity_map = { | 
            ||
| 16 | "warning": RESULT_SEVERITY.NORMAL,  | 
            ||
| 17 | "error": RESULT_SEVERITY.MAJOR}  | 
            ||
| 18 | |||
| 19 | def run(self, filename, file):  | 
            ||
| 20 | '''  | 
            ||
| 21 | Checks the code with `mcs` on each file separately.  | 
            ||
| 22 | '''  | 
            ||
| 23 | return self.lint(filename)  | 
            ||
| 24 |