pages-server/.woodpecker/lint.yml

31 lines
705 B
YAML
Raw Normal View History

when:
- event: pull_request
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
lint:
depends_on: []
chore(deps): update golangci/golangci-lint docker tag to v1.62.0 (#402) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [golangci/golangci-lint](https://github.com/golangci/golangci-lint) | minor | `v1.61.0` -> `v1.62.0` | --- ### Release Notes <details> <summary>golangci/golangci-lint (golangci/golangci-lint)</summary> ### [`v1.62.0`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1620) [Compare Source](https://github.com/golangci/golangci-lint/compare/v1.61.0...v1.62.0) 1. New linters - Add `recvcheck` linter https://github.com/raeperd/recvcheck - Add `iface` linter https://github.com/uudashr/iface 2. Updated linters - ⚠️ `execinquery`: deprecation step 2 - ⚠️ `gomnd`: deprecation step 2 (replaced by `mnd`) - `bidichk`: from 0.2.7 to 0.3.2 (important performance improvement) - `canonicalheader`: from 1.1.1 to 1.1.2 - `cyclop`: from 1.2.1 to 1.2.3 - `dupword`: from 0.1.1 to 0.1.3 - `errcheck`: from 1.7.0 to 1.8.0 - `errchkjson`: from 0.3.6 to 0.4.0 - `errname`: from 0.1.13 to 1.0.0 - `ginkgolinter`: from 0.17.0 to 0.18.0 (new option: `force-succeed`) - `go-check-sumtype`: from 0.1.4 to 0.2.0 (new option: `default-signifies-exhaustive`) - `go-critic`: from 0.11.4 to 0.11.5 - `go-printf-func-name`: from [`7558a9e`](https://github.com/golangci/golangci-lint/commit/7558a9eaa5af) to v0.1.0 - `godot`: from 1.4.17 to 1.4.18 - `gosec`: from 2.21.2 to 2.21.4 - `intrange`: from 0.2.0 to 0.2.1 - `loggercheck`: from 0.9.4 to 0.10.1 (`log/slog` support) - `musttag`: from 0.12.2 to 0.13.0 - `nakedret`: from 2.0.4 to 2.0.5 - `nilnil`: from 0.1.9 to 1.0.0 (new option: `detect-opposite`) - `noctx`: from 0.0.2 to 0.1.0 - `protogetter`: from 0.3.6 to 0.3.8 - `revive`: from 1.3.9 to 1.5.0 (new rules: `filename-format`, and `file-length-limit`) - `tenv`: from 1.10.0 to 1.12.1 (handle dot import) - `testifylint`: from 1.4.3 to 1.5.0 (new checkers: `contains`, `encoded-compare`, `regexp`) 3. Misc. - Type sizing when cross-compiling (32-bit). - code-climate: add check_name field - Improve Go version detection - Fix Go version propagation 4. Documentation - Adds a section about `exclude-dirs-use-default` - Improve 'install from sources' section - Improve FAQ about Go versions - Improve linter/rule/check docs - Improve new linter section - Improve `forbidigo` pattern examples for built-in functions </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/402 Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org> Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-11-25 12:26:54 +00:00
image: golangci/golangci-lint:v1.62.0
commands:
- go version
- go install mvdan.cc/gofumpt@latest
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
- golangci-lint run --timeout 5m --build-tags integration
editor-config:
depends_on: []
image: mstruebing/editorconfig-checker:v3.0.3
yamllint:
chore(deps): update pipelinecomponents/yamllint docker tag to v0.32.1 (#389) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [pipelinecomponents/yamllint](https://gitlab.com/pipeline-components/yamllint) | minor | `0.31.3` -> `0.32.1` | --- ### Release Notes <details> <summary>pipeline-components/yamllint (pipelinecomponents/yamllint)</summary> ### [`v0.32.1`](https://gitlab.com/pipeline-components/yamllint/compare/v0.32.0...v0.32.1) [Compare Source](https://gitlab.com/pipeline-components/yamllint/compare/v0.32.0...v0.32.1) ### [`v0.32.0`](https://gitlab.com/pipeline-components/yamllint/compare/v0.31.3...v0.32.0) [Compare Source](https://gitlab.com/pipeline-components/yamllint/compare/v0.31.3...v0.32.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/389 Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org> Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-09-29 20:50:14 +00:00
image: pipelinecomponents/yamllint:0.32.1
depends_on: []
commands:
- yamllint .
prettier:
chore(deps): update docker.io/woodpeckerci/plugin-prettier docker tag to v0.2.0 (#385) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [docker.io/woodpeckerci/plugin-prettier](https://github.com/woodpecker-ci/plugin-prettier) | minor | `0.1.0` -> `0.2.0` | --- ### Release Notes <details> <summary>woodpecker-ci/plugin-prettier (docker.io/woodpeckerci/plugin-prettier)</summary> ### [`v0.2.0`](https://github.com/woodpecker-ci/plugin-prettier/blob/HEAD/CHANGELOG.md#020---2024-08-26) [Compare Source](https://github.com/woodpecker-ci/plugin-prettier/compare/0.1.0...0.2.0) ##### ❤️ Thanks to all contributors! ❤️ [@&#8203;6543](https://github.com/6543), [@&#8203;qwerty287](https://github.com/qwerty287) ##### 📈 Enhancement - Allow to read version from lockfile \[[#&#8203;20](https://github.com/woodpecker-ci/plugin-prettier/pull/20)] ##### Misc - Update pipeline conf \[[#&#8203;41](https://github.com/woodpecker-ci/plugin-prettier/pull/41)] - \[pre-commit.ci] pre-commit autoupdate \[[#&#8203;40](https://github.com/woodpecker-ci/plugin-prettier/pull/40)] - Update woodpeckerci/plugin-ready-release-go Docker tag to v1.2.0 \[[#&#8203;39](https://github.com/woodpecker-ci/plugin-prettier/pull/39)] - Update woodpeckerci/plugin-docker-buildx Docker tag to v4.2.0 \[[#&#8203;38](https://github.com/woodpecker-ci/plugin-prettier/pull/38)] - Update woodpeckerci/plugin-docker-buildx Docker tag to v4.1.0 \[[#&#8203;37](https://github.com/woodpecker-ci/plugin-prettier/pull/37)] - Update pre-commit hook igorshubovych/markdownlint-cli to v0.41.0 \[[#&#8203;34](https://github.com/woodpecker-ci/plugin-prettier/pull/34)] - Update woodpeckerci/plugin-ready-release-go Docker tag to v1.1.2 \[[#&#8203;33](https://github.com/woodpecker-ci/plugin-prettier/pull/33)] - Update woodpeckerci/plugin-docker-buildx Docker tag to v4 \[[#&#8203;32](https://github.com/woodpecker-ci/plugin-prettier/pull/32)] - Update pre-commit hook igorshubovych/markdownlint-cli to v0.40.0 \[[#&#8203;30](https://github.com/woodpecker-ci/plugin-prettier/pull/30)] - Update woodpeckerci/plugin-ready-release-go Docker tag to v1.1.1 \[[#&#8203;29](https://github.com/woodpecker-ci/plugin-prettier/pull/29)] - Update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0 \[[#&#8203;28](https://github.com/woodpecker-ci/plugin-prettier/pull/28)] - Update woodpeckerci/plugin-docker-buildx Docker tag to v3.2.1 \[[#&#8203;27](https://github.com/woodpecker-ci/plugin-prettier/pull/27)] - Update woodpeckerci/plugin-docker-buildx Docker tag to v3.2.0 \[[#&#8203;26](https://github.com/woodpecker-ci/plugin-prettier/pull/26)] - Update woodpeckerci/plugin-docker-buildx Docker tag to v3.1.0 \[[#&#8203;25](https://github.com/woodpecker-ci/plugin-prettier/pull/25)] - \[pre-commit.ci] pre-commit autoupdate \[[#&#8203;24](https://github.com/woodpecker-ci/plugin-prettier/pull/24)] - Update woodpeckerci/plugin-docker-buildx Docker tag to v3.0.1 \[[#&#8203;23](https://github.com/woodpecker-ci/plugin-prettier/pull/23)] - Update woodpeckerci/plugin-ready-release-go Docker tag to v1.1.0 \[[#&#8203;22](https://github.com/woodpecker-ci/plugin-prettier/pull/22)] </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/385 Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org> Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2024-09-29 20:49:56 +00:00
image: docker.io/woodpeckerci/plugin-prettier:0.2.0
depends_on: []
settings:
version: 3.2.5