Skip to content

feat: enhance gormlint to enforce context usage in GORM methods#3

Open
iBakuman wants to merge 2 commits into
mainfrom
gorm-x
Open

feat: enhance gormlint to enforce context usage in GORM methods#3
iBakuman wants to merge 2 commits into
mainfrom
gorm-x

Conversation

@iBakuman
Copy link
Copy Markdown
Contributor

No description provided.

Updated the gormlint linter to enforce that the first call on a gorm.DB instance must use WithContext or Session with a valid context parameter. Added new test cases to validate the enforcement of this rule, ensuring better adherence to context management practices in GORM usage.
Bumped the Go version and toolchain in the go.mod file to 1.24.0 to ensure compatibility with the latest features and improvements.
@theplant-ci
Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants