| Conditions | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import re |
||
| 15 | def run(self, |
||
| 16 | filename, |
||
| 17 | file, |
||
| 18 | perlcritic_config: str=""): |
||
| 19 | ''' |
||
| 20 | Checks the code with perlcritic. This will run perlcritic over |
||
| 21 | each of the files seperately |
||
| 22 | |||
| 23 | :param perlcritic_config: Location of the perlcriticrc config file. |
||
| 24 | ''' |
||
| 25 | |||
| 26 | if perlcritic_config: |
||
| 27 | self.arguments += (" --config " |
||
| 28 | + escape_path_argument(perlcritic_config)) |
||
| 29 | |||
| 30 | return self.lint(filename) |
||
| 31 |