()
| 236 | |
| 237 | def golangci_lint(golangci_lint_path: str) -> None: |
| 238 | def get_gopath() -> Tuple[Path, Path]: |
| 239 | go = find_command('go', msg='go is required for testing') |
| 240 | gopath = run_pipe(go, 'env', 'GOPATH').read().strip() |
| 241 | bindir = Path(gopath).absolute() / 'bin' |
| 242 | binpath = bindir / 'golangci-lint' |
| 243 | return bindir, binpath |
| 244 | |
| 245 | def get_syspath(sys_path: str) -> Tuple[str, str]: |
| 246 | golangci_command = find_command(sys_path, msg="golangci-lint is required") |
no test coverage detected