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(linter): split up fixer code into separate files #4222

Conversation

DonIsaac
Copy link
Collaborator

refactor(linter): split up fixer code into separate files

refactor: mark Fix as non_exhaustive

Copy link

graphite-app bot commented Jul 12, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

Copy link
Collaborator Author

DonIsaac commented Jul 12, 2024

Copy link

codspeed-hq bot commented Jul 12, 2024

CodSpeed Performance Report

Merging #4222 will create unknown performance changes

Comparing don/07-11-refactor_linter_split_up_fixer_code_into_separate_files (7089a3d) with main (d7ab0b8)

Summary

🆕 32 new benchmarks

Benchmarks breakdown

Benchmark main don/07-11-refactor_linter_split_up_fixer_code_into_separate_files Change
🆕 codegen[checker.ts] N/A 18.4 ms N/A
🆕 codegen_sourcemap[checker.ts] N/A 74.2 ms N/A
🆕 isolated-declarations[vue-id.ts] N/A 375.5 ms N/A
🆕 lexer[RadixUIAdoptionSection.jsx] N/A 22.4 µs N/A
🆕 lexer[antd.js] N/A 20.1 ms N/A
🆕 lexer[cal.com.tsx] N/A 5 ms N/A
🆕 lexer[checker.ts] N/A 12 ms N/A
🆕 lexer[pdf.mjs] N/A 3.2 ms N/A
🆕 linter[cal.com.tsx] N/A 774.4 ms N/A
🆕 linter[checker.ts] N/A 1.4 s N/A
🆕 minifier[antd.js] N/A 349.7 ms N/A
🆕 minifier[react.development.js] N/A 4 ms N/A
🆕 minifier[typescript.js] N/A 647.6 ms N/A
🆕 prepass[antd.js] N/A 15.7 ms N/A
🆕 prepass[react.development.js] N/A 206.2 µs N/A
🆕 prepass[typescript.js] N/A 27.7 ms N/A
🆕 parser[RadixUIAdoptionSection.jsx] N/A 76.9 µs N/A
🆕 parser[antd.js] N/A 104 ms N/A
🆕 parser[cal.com.tsx] N/A 24 ms N/A
🆕 parser[checker.ts] N/A 52.4 ms N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@DonIsaac DonIsaac marked this pull request as ready for review July 12, 2024 05:23
@DonIsaac DonIsaac requested a review from mysteryven July 12, 2024 15:05
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jul 13, 2024
Copy link

graphite-app bot commented Jul 13, 2024

Merge activity

  • Jul 12, 10:10 PM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jul 12, 10:10 PM EDT: Boshen added this pull request to the Graphite merge queue.
  • Jul 12, 10:32 PM EDT: Boshen merged this pull request with the Graphite merge queue.

refactor(linter): split up fixer code into separate files

refactor: mark Fix as non_exhaustive
@Boshen Boshen force-pushed the don/07-11-refactor_linter_split_up_fixer_code_into_separate_files branch from 881648d to 7089a3d Compare July 13, 2024 02:26
@graphite-app graphite-app bot merged commit 7089a3d into main Jul 13, 2024
27 checks passed
@graphite-app graphite-app bot deleted the don/07-11-refactor_linter_split_up_fixer_code_into_separate_files branch July 13, 2024 02:32
@github-actions github-actions bot mentioned this pull request Jul 17, 2024
Boshen added a commit that referenced this pull request Jul 17, 2024
## [0.6.1] - 2024-07-17

### Features

- 83c2c62 codegen: Add option for choosing quotes; remove slow
`choose_quot` method (#4219) (Boshen)
- 1f8968a linter: Add eslint-plugin-promise rules: avoid-new,
no-new-statics, params-names (#4293) (Jelle van der Waa)
- a4dc56c linter: Add fixer for
unicorn/no_useless_promise_resolve_reject (#4244) (Burlin)
- 6fb808f linter: Add typescript-eslint/no-confusing-non-null-assertion
(#4224) (Jaden Rodriguez)
- 126b66c linter: Support eslint-plugin-vitest/valid-describe-callback
(#4185) (cinchen)
- 05b9a73 linter: Support eslint-plugin-vitest/valid-expect (#4183)
(cinchen)
- 3e56b2b linter: Support eslint-plugin-vitest/no-test-prefixes (#4182)
(cinchen)
- 3016f03 linter: Let fixer functions return a `None` fix (#4210)
(DonIsaac)
- bbe6137 linter: Implement unicorn/no-useless-undefined (#4079)
(Burlin)
- 20cdb1f semantic: Align class scope with typescript (#4195) (Dunqing)

### Bug Fixes

- 9df60da linter: Correct find first non whitespace logic in
@typescript-eslint/consistent-type-imports (#4198) (mysteryven)
- 67240dc linter: Not ignore adjacent spans when fixing (#4217)
(mysteryven)
- dd07a54 linter: Global variables should always check the builtin
variables (#4209) (Jelle van der Waa)
- 351ecf2 semantic: Incorrect resolve references for `TSTypeQuery`
(#4310) (Dunqing)
- 1108f2a semantic: Resolve references to the incorrect symbol (#4280)
(Dunqing)

### Performance

- 0fdc88b linter: Optimize no-dupe-keys (#4292) (lucab)

### Refactor

- 2c7bb9f ast: Pass final `ScopeFlags` into `visit_function` (#4283)
(overlookmotel)
- aa22073 codegen: Improve print API (#4196) (Boshen)
- b5a8f3c linter: Use get_first_parameter_name from unicorn utils
(#4255) (Jelle van der Waa)
- 7089a3d linter: Split up fixer code into separate files (#4222)
(DonIsaac)
- ace4f1f semantic: Update the order of `visit_function` and `Visit`
fields in the builder to be consistent (#4248) (Dunqing)
- 7f1addd semantic: Correct scope in CatchClause (#4192) (Dunqing)

Co-authored-by: Boshen <Boshen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue A-linter Area - Linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants