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