Skip to content
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

lints: Add a set_root_type helper #1147

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Conversation

cgwalters
Copy link
Collaborator

@cgwalters cgwalters commented Feb 26, 2025

We have two patterns to initialize a lint:

  • Bare struct init
  • A helper function

This changes to just one path: A helper function, plus setters for the optional fields.

Prep for adding a new lint option, which would otherwise require changes to everything using the bare struct init.

We have two patterns to initialize a lint:

- Bare struct init
- A helper function

This changes to just one path: A helper function, plus setters
for the optional fields.

Prep for adding a new lint option, which would otherwise
require changes to everything using the bare struct init.

Signed-off-by: Colin Walters <[email protected]>
@jeckersb jeckersb enabled auto-merge February 26, 2025 22:11
@jeckersb jeckersb merged commit 73de2a8 into bootc-dev:main Feb 26, 2025
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants