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(analyzer): severity in metadata #4634

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

ematipico
Copy link
Member

Summary

Part of #4626

This PR:

  • adds severity to the RuleMeta
  • adds a custom severity to only recommended rules. The reason why I did this refactor was because we don't know yet which rules will be an error, a warning or an information, but as for now all the recommended rules we have, are supposed to raise an error, this isn't, technically, a breaking change

Of course, this is just a facade change because severity isn't used yet. We will follow up with another PR to change the codegen

Test Plan

Current CI should pass

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages L-CSS Language: CSS L-JSON Language: JSON and super languages labels Nov 25, 2024
@ematipico ematipico force-pushed the refactor/severity-via-metadata branch from 408531e to 31c58bc Compare November 25, 2024 10:54
Copy link

codspeed-hq bot commented Nov 25, 2024

CodSpeed Performance Report

Merging #4634 will not alter performance

Comparing refactor/severity-via-metadata (31c58bc) with next (24ab360)

Summary

✅ 97 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-CSS Language: CSS L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant