| Conditions | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import re |
||
| 27 | def run(self, |
||
| 28 | filename, |
||
| 29 | file, |
||
| 30 | jshint_config: str=""): |
||
| 31 | ''' |
||
| 32 | Checks the code with jshint. This will run jshint over each file |
||
| 33 | separately. |
||
| 34 | |||
| 35 | :param jshint_config: The location of the jshintrc config file. |
||
| 36 | ''' |
||
| 37 | if jshint_config: |
||
| 38 | self.arguments += (" --config " |
||
| 39 | + escape_path_argument(jshint_config)) |
||
| 40 | |||
| 41 | return self.lint(filename) |
||
| 42 |