Skip to content

chore: add basic linter rules #137

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

Merged
merged 1 commit into from
Jul 21, 2025
Merged

chore: add basic linter rules #137

merged 1 commit into from
Jul 21, 2025

Conversation

miparnisari
Copy link
Contributor

@miparnisari miparnisari commented Jul 19, 2025

Testing

golangci-lint run -v --fix -c .golangci.yaml ./...

@github-actions github-actions bot added area/core area/tooling Affects the dev or user toolchain labels Jul 19, 2025
@@ -182,7 +182,7 @@ type PreFilter struct {

// LookupMatchingResources is a template defining a LookupResources request to filter on.
// The resourceID must be set to `$`.
LookupMatchingResources *StringOrTemplate `json:"lookupMatchingResources,optional" validate:"omitempty"`
LookupMatchingResources *StringOrTemplate `json:"lookupMatchingResources,omitempty" validate:"omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SA5008: unknown JSON option "optional" (staticcheck)

Copy link
Contributor

@vroldanbet vroldanbet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please follow up by adding a new mage command to run golanci lint

@vroldanbet vroldanbet merged commit b92a440 into main Jul 21, 2025
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/core area/tooling Affects the dev or user toolchain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants