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

refactor(core): register rules using visitor pattern #3483

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

ematipico
Copy link
Member

Summary

This PR is just a refactor to make the linting code more DRY. It uses the RegistryVisitor pattern, it accepts the LintParams type and emits the enabled/disabled rules based on the configuration.

I will attempt to make the code more DRY with other PRs.

Test Plan

The current tests should pass

@ematipico ematipico requested review from a team July 21, 2024 17:19
@github-actions github-actions bot added A-Project Area: project A-Linter Area: linter labels Jul 21, 2024
Copy link

codspeed-hq bot commented Jul 21, 2024

CodSpeed Performance Report

Merging #3483 will not alter performance

Comparing refactor/lint-rules-visitor (214d1b6) with main (8ed14cd)

Summary

✅ 104 untouched benchmarks

@ematipico ematipico force-pushed the refactor/lint-rules-visitor branch from 8b729f8 to c907590 Compare July 23, 2024 07:36
@ematipico ematipico requested a review from Conaclos July 23, 2024 08:05
@ematipico ematipico merged commit fe09cab into main Jul 23, 2024
15 checks passed
@ematipico ematipico deleted the refactor/lint-rules-visitor branch July 23, 2024 12:00
@Conaclos Conaclos added the A-Changelog Area: changelog label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Linter Area: linter A-Project Area: project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants