Commit Graph

3 Commits

Author SHA1 Message Date
Matthieu MOREL df76f818b3
enable gocritic, gosec, gosimple, govet unconvert, unparam, unused and whitespace linters (#72)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2023-03-27 09:41:34 -07:00
Matthieu MOREL 364b2a2cb9
ci(lint): enable errcheck, errorlint, gci, misspell, nonamedreturns and staticcheck linters (#71)
Enable the following linters:
  - errcheck
  - errorlint
  - gci
  - misspell
  - nonamedreturns
  - staticcheck

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2023-03-25 17:04:45 -07:00
Sebastiaan van Stijn 1104d961a9 gha: add golangci-lint
Linting is disabled on Windows, as the current build-tags do not
properly exclude non-unix platforms;

    level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 1.0348ms"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:28:18: Stat_t not declared by package unix"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:29:17: Fstat not declared by package unix"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:32:17: Fstat not declared by package unix"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:43:13: Stat_t not declared by package unix"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:44:17: Fstat not declared by package unix"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:56:13: Stat_t not declared by package unix"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:57:17: Fstat not declared by package unix"
    Error: level=error msg="[linters_context] typechecking error: D:\\a\\netns\\netns\\netns.go:71:17: Close not declared by package unix"

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-18 13:02:58 -08:00