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