| Conditions | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import re |
||
| 14 | def run(self, |
||
| 15 | filename, |
||
| 16 | file, |
||
| 17 | golint_cli_options: str=""): |
||
| 18 | ''' |
||
| 19 | Checks the code using `golint`. This will run golint over each file |
||
| 20 | seperately. |
||
| 21 | |||
| 22 | :param golint_cli_options: Any other flags you wish to pass to golint |
||
| 23 | can be passed. |
||
| 24 | ''' |
||
| 25 | if golint_cli_options: |
||
| 26 | self.arguments += " " + golint_cli_options |
||
| 27 | |||
| 28 | return self.lint(filename) |
||
| 29 |