capsule-proxy
capsule-proxy copied to clipboard
chore(deps): update dependency golangci/golangci-lint to v2
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| golangci/golangci-lint | major | v1.64.8 -> v2.0.2 |
Release Notes
golangci/golangci-lint (golangci/golangci-lint)
v2.0.2
- Misc.
- Fixes flags parsing for formatters
- Fixes the filepath used by the exclusion
sourceoption
- Documentation
- Adds a section about flags migration
- Cleaning pages with v1 options
v2.0.1
- Linters/formatters bug fixes
golines: fix settings during linter load
- Misc.
- Validates the
versionfield before the configuration forbidigo: fix migration
- Validates the
v2.0.0
- Enhancements
- ๐ New
golangci-lint fmtcommand with dedicated formatter configuration (https://golangci-lint.run/welcome/quick-start/#formatting) - โป๏ธ New
golangci-lint migratecommand to help migration from v1 to v2 (cf. Migration guide) - โ ๏ธ New default values (cf. Migration guide)
- โ ๏ธ No exclusions by default (cf. Migration guide)
- โ ๏ธ New default sort order (cf. Migration guide)
- ๐ New option
run.relative-path-mode(cf. Migration guide) - ๐ New linters configuration (cf. Migration guide)
- ๐ New output format configuration (cf. Migration guide)
- ๐ New
--fast-onlyflag (cf. Migration guide) - ๐ New option
linters.exclusions.warn-unusedto log a warning if an exclusion rule is unused.
- ๐ New
- New linters/formatters
- Add
golinesformatter https://github.com/segmentio/golines
- Add
- Linters new features
- โ ๏ธ Merge
staticcheck,stylecheck,gosimpleinto one linter (staticcheck) (cf. Migration guide) go-critic: from 0.12.0 to 0.13.0gomodguard: from 1.3.5 to 1.4.1 (block explicit indirect dependencies)nilnil: from 1.0.1 to 1.1.0 (new option:only-two)perfsprint: from 0.8.2 to 0.9.1 (checker name in the diagnostic message)staticcheck: newquickfixset of rulestestifylint: from 1.5.2 to 1.6.0 (new options:equal-values,suite-method-signature,require-string-msg)wsl: from 4.5.0 to 4.6.0 (new option:allow-cuddle-used-in-block)
- โ ๏ธ Merge
- Linters bug fixes
bidichk: from 0.3.2 to 0.3.3errchkjson: from 0.4.0 to 0.4.1errname: from 1.0.0 to 1.1.0funlen: fixignore-commentsoptiongci: from 0.13.5 to 0.13.6gosmopolitan: from 1.2.2 to 1.3.0inamedparam: from 0.1.3 to 0.2.0intrange: from 0.3.0 to 0.3.1protogetter: from 0.3.9 to 0.3.12unparam: from8a5130cto0df0534
- Misc.
- ๐งน Configuration options renaming (cf. Migration guide)
- ๐งน Remove options (cf. Migration guide)
- ๐งน Remove flags (cf. Migration guide)
- ๐งน Remove alternative names (cf. Migration guide)
- ๐งน Remove or replace deprecated elements (cf. Migration guide)
- Adds an option to display some commands as JSON:
golangci-lint config path --jsongolangci-lint help linters --jsongolangci-lint help formatters --jsongolangci-lint linters --jsongolangci-lint formatters --jsongolangci-lint version --json
- Documentation
Configuration
๐ Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 0.00%. Comparing base (
a72caa5) to head (385b754). Report is 24 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #673 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 1 1
Lines 287 287
=====================================
Misses 287 287
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
โ ๏ธ Warning: custom changes will be lost.
This pull request has been marked as stale because it has been inactive for more than 30 days. Please update this pull request or it will be automatically closed in 7 days.