-
Notifications
You must be signed in to change notification settings - Fork 721
feat: add golangci-lint for Go code quality #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
should_protect_path will always be available as it comes from common.sh. This check adds a lot of overhead as it runs on every file.
… make support section collapsible
…munity love sections.
…on with new sponsorship and contribution information.
Use single quotes, otherwise this expands now rather than when signalled.
…tar size/margin, and text positioning.
…rkflow and README.
…Ds, and correct README image source path.
…in contributor workflow.
…r margin in contributor workflow.
…or the update contributors workflow.
…-command-check chore: Do not check if should_protect_path exists
…-trap fix: Use single quotes in trap
… add a contributors section.
… installer display names by stripping hash prefixes.
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 5 to 7. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](stefanzweifel/git-auto-commit-action@v5...v7) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…nzweifel/git-auto-commit-action-7
Fixes tw93#263 - Change regex from \.\. to (^|/)\.\.(/|$) to only match path components - Firefox uses ..files suffix in IndexedDB dirs (e.g., name..files) - Still blocks actual traversal: /tmp/../etc - Added test cases for Firefox compatibility - All 16 tests passing
- Add .golangci.yml configuration enabling govet, staticcheck, errcheck, gosimple, ineffassign, unused, gofmt, and goimports linters - Update scripts/check.sh to run golangci-lint with go vet fallback - Update CI workflow to install golangci-lint in both format and quality jobs - Add golangci-lint to CONTRIBUTING.md setup instructions Sensible exclusions configured for test files and common patterns (os.Remove, deferred Close calls).
|
@anonymort It seems that the code you submitted has some historical issues. Try submitting only the code you have modified. It should be that the code needs to be synchronized to the latest first, and then submitted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration file targets Golangci-lint v1, which is deprecated and incompatible with v2. We should use the latest version (v2.7.2) instead. See https://golangci-lint.run/
Did you intend to tag me? |
|
@JackPhallen sorry 😞 I made a mistake |
|
I recently made some modifications myself, thank you for submitting the contribution code. |
Summary
.golangci.ymlconfiguration enabling govet, staticcheck, errcheck, gosimple, ineffassign, unused, gofmt, and goimports lintersscripts/check.shto run golangci-lint with go vet fallbackChanges
.golangci.ymlscripts/check.sh.github/workflows/check.ymlCONTRIBUTING.mdDetails
go vetif golangci-lint is not installed locallyTest plan
./scripts/check.shruns without errors