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