Skip to content

Comments

refactor(linter): add output formatter#8436

Merged
Boshen merged 3 commits intooxc-project:mainfrom
Sysix:refactor-linter-add-output-formatter
Jan 12, 2025
Merged

refactor(linter): add output formatter#8436
Boshen merged 3 commits intooxc-project:mainfrom
Sysix:refactor-linter-add-output-formatter

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Jan 11, 2025

I want to start grouping all the different Formats for action X, Y and Z into own place.
This is the first step and probably not the best one to be honest :)

I prefer that the OutputFormatter is a part of oxlint and not oxc_linter
but all use create::rules::RULES is not public from outside.
EDIT: I pushed a commit with this changes can easily be reverted and move back to oxc_linter

Also their is a crate oxc_diagnostics which has already the concept too but only for the lint part of oxlint and not for the other parts. The next goal would be splitting the DiagnosticService with its reporters to oxlint.

@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 11, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Jan 11, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 11, 2025

CodSpeed Performance Report

Merging #8436 will not alter performance

Comparing Sysix:refactor-linter-add-output-formatter (6abc40a) with main (01722f3)

Summary

✅ 29 untouched benchmarks

@Sysix Sysix marked this pull request as ready for review January 11, 2025 17:55
@Boshen Boshen merged commit 43ed3e1 into oxc-project:main Jan 12, 2025
29 checks passed
Boshen added a commit that referenced this pull request Jan 13, 2025
## [0.15.6] - 2025-01-13

### Features

- 457aa31 linter: Implement `no-lone-blocks` rule (#8145) (Yuichiro
Yamashita)

### Refactor

- aea9551 ast: Simplify `get_identifier_reference` of `TSType` and
`TSTypeName` (#8273) (Dunqing)
- 43ed3e1 linter: Add output formatter (#8436) (Alexander S.)
- 4e05e66 linter: Remove glob for windows (#8390) (Alexander S.)
- b19d809 linter: Split `unicorn/prefer-spread` and
`eslint/prefer-spread` into own rules (#8329) (Alexander S.)
- 3c534ae linter: Refactor `LintBuilder` to prep for nested configs
(#8034) (camc314)
- 2f9fab9 linter: Remove remapping for plugin name in diagnostics
(#8223) (Alexander S.)

### Testing

- b6c1546 linter: Use plugin name instead of category for finding rule
(#8353) (Alexander S.)

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants