Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 20988f6446c6ad3ea416044712e634d3ed85ee53 Author: selfhoster1312 <selfhoster1312@kl.netlib.re> Date: Tue Nov 25 13:20:24 2025 +0000 ci: Add CI for incremental cleanup of old codebase There's so many warnings produced by the linter in the old codebase, that so far we only errored on new errors introduced. Here's, we slowly reenable specific linter plugins across the entire codebase. diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 926fddc..c1afee9 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -276 +2711 @@ jobs: # Only compare with previous commit when pushing, # and with base branch when in PR. only-new-issues: true + - name: golangci-lint (entire codebase) + uses: golangci/golangci-lint-action@v8 + with: + version: v2.1 + args: --config=.golangci-incremental.yaml   test: strategy: matrix: diff --git a/.golangci-incremental.yaml b/.golangci-incremental.yaml new file mode 100644 index 0000000..d95542a --- /dev/null +++ b/.golangci-incremental.yaml @@ -00 +140 @@ +# For full documentation of the configuration options please +# see: https://golangci-lint.run/docs/configuration/file/ +version: "2" + +# options for analysis running +run: + go: "1.24" + + # which dirs to skip: they won't be analyzed; + # can use regexp here: generated.*, regexp is applied on full path; + # default value is empty list, but next dirs are always skipped independently + # from this option's value: + # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ + # skip-dirs: gateway/bridgemap$ + +# output configuration options +output: + # colored-line-number|line-number|json|tab|checkstyle, default is "colored-line-number" + formats: + text: + path: stdout + colors: true + +# linters that we should / shouldn't run +linters: + default: none + enable: + - staticcheck + settings: + staticcheck: + checks: [ "QF1004" ] + +formatters: + settings: + gofmt: + # simplify code: gofmt with `-s` option, true by default + simplify: true + goimports: + # put imports beginning with prefix after 3rd-party packages; + local-prefixes: [ "github.com" ] \ No newline at end of file