Conversation
…tential naming collisions in golanglint-ci namespace + renames the folder and files under `pkg/golinters`. + renames the directives in test file accordingly. + downgrades the test module Go version to 1.24 as by the submission requirements eg. golangci#6303 (comment). + updates the name in linter config in testdata. + updates the name `lintersdb` entry. + updates `go.mod` and `go.sum` + reorders list entries by alphabetically.
|
Hey, thank you for opening your first Pull Request ! |
|
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements.
Pull Request Description
Base RequirementsThese requirements are not declarative; the team will verify them.
Linter
The Linter Tests Inside Golangci-lint
|
|
I didn't check you linter for now, but please remove |
… the test folder
|
I repeat remove any changes not related directly to your analyzer (ex: the unrelated changes inside the config reference). For the integration tests, add this on top of the Go test file: //golangcitest:args -Egolisticsand remove Also, each push produces a notification, so please limit the number of push. |
This comment was marked as off-topic.
This comment was marked as off-topic.
… `disable` lists" This reverts commit 404f052.
…e `enabled` and `disabled` lists
…used and unexported struct field which is necessary for testing linter
…g stdlib package `unexpected diagnostic: could not import image/color (Config.Importer.Import(image/color) returned nil but no error)`
|
I'm pushing commits at once for all changes this time, hoping to resolve all. Addressed those as you pointed:
Also did:
Checked the branch diff to make sure the same mistake won't repeat again :) |
|
Hi, I came back to check if there is anything I missed and I should do before the review. Please let me know if there is any. |


This PR adds Golistics to golangci-lint. Golistics is a linter to warn developer when a "holistic" method miss a field. Holistic methods are those methods that need to access all fields of the receiver to stay valid such as validators, comparators and serializers.
https://github.com/ufukty/golistics
Control list
fieldsand could not find something similar.analysistestbased test.golistics:directives in method doc-comments.I am currently working on the integration tests. If it is not too much of an inconvenience I would be grateful for getting directions.
Thanks,