Skip to content

[skip changelog] Bump golangci/golangci-lint-action from 6 to 7 #2872

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 25, 2025

Bumps golangci/golangci-lint-action from 6 to 7.

Release notes

Sourced from golangci/golangci-lint-action's releases.

v7.0.0

What's Changed

Changes

Documentation

Dependencies

New Contributors

Full Changelog: golangci/golangci-lint-action@v6.5.2...v7.0.0

v6.5.2

What's Changed

Changes

Dependencies

Full Changelog: golangci/golangci-lint-action@v6.5.1...v6.5.2

v6.5.1

What's Changed

Changes

Documentation

Dependencies

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the topic: infrastructure Related to project infrastructure label Mar 25, 2025
@cmaglie cmaglie self-assigned this Mar 31, 2025
dependabot bot and others added 2 commits March 31, 2025 17:32
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v6...v7)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@cmaglie cmaglie force-pushed the dependabot/github_actions/golangci/golangci-lint-action-7 branch from 022c94d to 0441aa9 Compare March 31, 2025 15:33
@cmaglie cmaglie requested a review from a team March 31, 2025 15:33
cmaglie added 6 commits March 31, 2025 17:39
commands/service_compile.go:162:5: QF1001: could apply De Morgan's law (staticcheck)
        if !(keychainProp == signProp && signProp == encryptProp) {
commands/service_compile.go:248:16: ST1023: should omit type logger.Verbosity from declaration; it will be inferred from the right-hand side (staticcheck)
        var verbosity logger.Verbosity = logger.VerbosityNormal
                      ^
commands/service_compile.go:356:4: QF1012: Use fmt.Fprintf(...) instead of Write([]byte(fmt.Sprintf(...))) (staticcheck)
                        outStream.Write([]byte(fmt.Sprintf("Could not normalize FQBN: %s\n", err)))
                        ^
commands/service_compile.go:359:3: QF1012: Use fmt.Fprintf(...) instead of Write([]byte(fmt.Sprintf(...))) (staticcheck)
                outStream.Write([]byte(fmt.Sprintf("FQBN: %s\n", normalizedFQBN)))
                ^
commands/service_upload.go:508:4: QF1012: Use fmt.Fprintln(...) instead of Write([]byte(fmt.Sprintln(...))) (staticcheck)
                        outStream.Write([]byte(fmt.Sprintln(i18n.Tr("Skipping 1200-bps touch reset: no serial port selected!"))))
                        ^
commands/service_upload.go:515:6: QF1012: Use fmt.Fprintln(...) instead of Write([]byte(fmt.Sprintln(...))) (staticcheck)
                                        outStream.Write([]byte(fmt.Sprintln(i18n.Tr("Performing 1200-bps touch reset on serial port %s", portAddress))))
                                        ^
commands/service_upload.go:521:6: QF1012: Use fmt.Fprintln(...) instead of Write([]byte(fmt.Sprintln(...))) (staticcheck)
                                        outStream.Write([]byte(fmt.Sprintln(i18n.Tr("Waiting for upload port..."))))
                                        ^
internal/arduino/builder/internal/preprocessor/ctags.go:68:3: QF1012: Use fmt.Fprintf(...) instead of WriteString(fmt.Sprintf(...)) (staticcheck)
                stderr.WriteString(fmt.Sprintf("%s: %s",
                ^
internal/mock_serial_monitor/main.go:146:4: QF1012: Use fmt.Fprintf(...) instead of Write([]byte(fmt.Sprintf(...))) (staticcheck)
                        d.mockedSerialPort.Write([]byte(
                        ^
commands/service_upload.go:532:7: QF1012: Use fmt.Fprintln(...) instead of Write([]byte(fmt.Sprintln(...))) (staticcheck)
                                                outStream.Write([]byte(fmt.Sprintln(i18n.Tr("Upload port found on %s", portAddress))))
                                                ^
commands/service_upload.go:534:7: QF1012: Use fmt.Fprintln(...) instead of Write([]byte(fmt.Sprintln(...))) (staticcheck)
                                                outStream.Write([]byte(fmt.Sprintln(i18n.Tr("No upload port found, using %s as fallback", actualPort.Address))))
                                                ^
commands/service_upload.go:544:4: QF1012: Use fmt.Fprintln(...) instead of Write([]byte(fmt.Sprintln(...))) (staticcheck)
                        errStream.Write([]byte(fmt.Sprintln(i18n.Tr("Cannot perform port reset: %s", err))))
                        ^
commands/service_upload.go:731:3: QF1012: Use fmt.Fprintln(...) instead of Write([]byte(fmt.Sprintln(...))) (staticcheck)
                outStream.Write([]byte(fmt.Sprintln(cmdLine)))
                ^
internal/arduino/builder/internal/utils/utils.go:85:25: QF1004: could use strings.ReplaceAll instead (staticcheck)
                rows := strings.Split(strings.Replace(depFile, "\r\n", "\n", -1), "\n")
                                      ^
@cmaglie
Copy link
Member

cmaglie commented Mar 31, 2025

This PR required also:

  • to migrate golanci-lint config file to v2 (because the new action only supports v2)
  • to fix the new linter warnings

cmaglie added 2 commits March 31, 2025 19:53
internal/arduino/cores/packagemanager/loader.go:368:6: QF1006: could lift into loop condition (staticcheck)
                                        if !board.Properties.ContainsKey(fmt.Sprintf("upload_port.%d.vid", i)) {
                                        ^
internal/cli/lib/check_deps.go:117:2: QF1003: could use tagged switch on dep.VersionInstalled (staticcheck)
        if dep.VersionInstalled == "" {
        ^
@cmaglie cmaglie force-pushed the dependabot/github_actions/golangci/golangci-lint-action-7 branch from 6c51f8b to f69bff3 Compare March 31, 2025 17:54
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 67.88%. Comparing base (d0655a7) to head (f69bff3).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
commands/service_compile.go 50.00% 1 Missing and 1 partial ⚠️
commands/service_upload.go 85.71% 1 Missing ⚠️
internal/cli/lib/check_deps.go 75.00% 1 Missing ⚠️
internal/mock_serial_monitor/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2872   +/-   ##
=======================================
  Coverage   67.87%   67.88%           
=======================================
  Files         238      238           
  Lines       22412    22410    -2     
=======================================
  Hits        15212    15212           
+ Misses       6005     6004    -1     
+ Partials     1195     1194    -1     
Flag Coverage Δ
unit 67.88% <75.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cmaglie cmaglie merged commit e390ed3 into master Apr 3, 2025
197 checks passed
@cmaglie cmaglie deleted the dependabot/github_actions/golangci/golangci-lint-action-7 branch April 3, 2025 08:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
topic: infrastructure Related to project infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants