-
Notifications
You must be signed in to change notification settings - Fork 132
all: rename gocritic to go-critic #1482
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
|
CC @ldez |
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.
Pull Request Overview
This PR renames all occurrences of "gocritic" to "go-critic" to align with the new naming convention for the project's binary and documentation. The changes include updating inline comments, configuration flags, documentation files, test references, and release script filenames.
- Update inline comments and configuration options in linter/linter.go and cmd/gocritic/* files.
- Introduce new files in cmd/go-critic/* and update tests, documentation, and release scripts accordingly.
Reviewed Changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| linter/linter.go | Updated comments to reference go-critic instead of gocritic. |
| docs/manifest.md | Updated manifest text for go-critic naming. |
| cmd/gocritic/main.go | Updated executable name from gocritic to go-critic. |
| cmd/gocritic/doc.go | Updated flag set name to go-critic. |
| cmd/gocritic/check.go | Updated flag set name to go-critic. |
| cmd/go-critic/main.go | New main package implementation for go-critic. |
| cmd/go-critic/doc.go | New documentation command implementation for go-critic. |
| cmd/go-critic/check_test.go | Updated integration test to build the renamed executable. |
| cmd/go-critic-analysis/go-critic-analysis.go | New analysis command file for go-critic. |
| checkers/checkers_test.go | Updated test references from cmd/gocritic to cmd/go-critic. |
| checkers/checkers.go | Updated package documentation comment for go-critic. |
| checkers/analyzer/analyzer.go | Updated debug initialization message for go-critic. |
| _scripts/release.go | Updated release script to use go-critic filenames and archive names. |
| README.md | Updated usage instructions and installation commands for go-critic. |
Files not reviewed (1)
- Makefile: Language not supported
|
Thank you for the CC. Inside golangci-lint, the name will continue to be |
|
From what I know |
|
yes it's safe |
|
Have you thought of a different file structure: move the go install -v github.com/go-critic/go-critic@latestinstead of go install -v github.com/go-critic/go-critic/cmd/go-critic@latest |
Update invocations and docs to use/reference `go-critic` to match upstream rename. * go-critic/go-critic#1482
Update invocations and docs to use/reference `go-critic` to match upstream rename. * go-critic/go-critic#1482
In release notes we will mention that we've changed
gocriticin path togo-critic. And after 1-2 releases we will drop it.Fixes #1481
CC: @quasilyte @mcandre