diff --git a/.golangci.yml b/.golangci.yml index 823aa15..ce6e950 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,10 +9,16 @@ linters: - gocognit - gocyclo - gosec + - ireturn - nolintlint - paralleltest - revive + - testifylint + - thelper + - usetesting settings: + errcheck: + check-blank: true gocognit: min-complexity: 15 gocyclo: @@ -23,6 +29,11 @@ linters: revive: rules: - name: package-comments + - name: var-naming + - name: receiver-naming + - name: context-as-argument + - name: error-return + - name: flag-parameter - name: exported - name: argument-limit arguments: [3] diff --git a/.ls-lint.yml b/.ls-lint.yml index 388b34f..7d41203 100644 --- a/.ls-lint.yml +++ b/.ls-lint.yml @@ -9,6 +9,11 @@ ls: <<: *files .dir: regex:[a-z0-9]+ + # Directories named after what they hold, never pkg, util or common. + # Matches such a directory at any depth even when it holds only files (verified). + "**/{pkg,util,common}": + .dir: exists:0 + ignore: - .git - .direnv