| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| 1 | from bears.go.GoLintBear import GoLintBear |
||
| 12 | import _ "fmt" |
||
| 13 | |||
| 14 | import ( |
||
| 15 | "os" |
||
| 16 | _ "path" |
||
| 17 | ) |
||
| 18 | |||
| 19 | var _ os.File // for "os" |
||
| 20 | """.split("\n") |
||
| 21 | |||
| 22 | |||
| 23 | bad_file = """ |
||
| 24 | // Test that blank imports in library packages are flagged. |
||
| 25 | |||
| 26 | // Package foo ... |
||
| 27 | package foo |
||
| 28 | |||
| 29 | // The instructions need to go before the imports below so they will not be |
||
| 30 | // mistaken for documentation. |
||
| 31 | |||
| 76 |