-
Notifications
You must be signed in to change notification settings - Fork 25
Add markerscope linter #161
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
Open
nayuta723
wants to merge
26
commits into
kubernetes-sigs:main
Choose a base branch
from
nayuta723:add-markerscope-linter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
4057248
initial commit for markerscope linter
nayuta723 9e2a498
Add ScopeViolation
nayuta723 1ed3baf
Add TypeViolation
nayuta723 ae5012e
add custom marker rule setting
nayuta723 853918d
Add custom marker rules and validation logic.
nayuta723 b65c448
Enhance marker scope validation by introducing allowDangerousTypes fl…
nayuta723 330da8d
Refactor error handling in marker scope validation by introducing cus…
nayuta723 222cd0d
refactor(markerscope): fix linters and add test golden files
nayuta723 f400cf4
docs(markerscope): document strictTypeConstraint and scope exclusions
nayuta723 09b2fb5
refactor(markerscope): convert config to PascalCase values and named …
nayuta723 7945f60
refactor(markerscope): separate overrideMarkers and customMarkers wit…
nayuta723 963973e
feat(markerscope): add default config and enhance documentation
nayuta723 75e9afb
refactor(markerscope): remove support for float/number types
nayuta723 2c2f8cb
refactor(markerscope): replace StrictTypeConstraint with NamedTypeCon…
nayuta723 1d2abb9
refactor(markers): remove Kubebuilder prefix from SSA topology marker…
nayuta723 c4f233b
refactor(markerscope): improve error handling and code organization
nayuta723 ada18fb
refactor(markerscope): simplify getBasicTypeSchema with nolint:exhaus…
nayuta723 c5167b4
refactor(markerscope): update scope handling to support multiple scop…
nayuta723 566ee2d
refactor(markerscope): rename and update NamedTypeConstraint values f…
nayuta723 d493f6c
refactor(markerscope): update default policy and improve documentatio…
nayuta723 a5274f9
refactor(markerscope): update scope definitions and enhance error mes…
nayuta723 504f6ec
refactor(markerscope): consolidate marker validation logic and enhanc…
nayuta723 9d95b17
refactor(utils): enhance type unwrapping and extraction to include ma…
nayuta723 76a70e9
refactor(markerscope): remove general markers and enhance field-or-ty…
nayuta723 60333a1
refactor(markerscope): improve code organization and enhance schema t…
nayuta723 f15461b
refactor(markerscope): streamline type constraint validation and enha…
nayuta723 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we need separate lists here? Or shall we just assume anything in the custom list that matches a built-in config overrides it?
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.
overrideMarkersare designed to define overrides for built-in markers, whilecustomMarkersare for adding new user-defined markers.I believe this explicit separation is necessary to prevent accidental or missing overrides of built-in configurations.