Skip to content

refactor(linter): pass paths to TsGoLintState.lint method#13131

Merged
graphite-app[bot] merged 1 commit intomainfrom
08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method
Aug 16, 2025
Merged

refactor(linter): pass paths to TsGoLintState.lint method#13131
graphite-app[bot] merged 1 commit intomainfrom
08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Aug 15, 2025

The language server does need to hold all paths. It will lint when the client is requesting a file

@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 Aug 15, 2025
Copy link
Member Author

Sysix commented Aug 15, 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.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Sysix Sysix force-pushed the 08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method branch from 43b1899 to e1d58c4 Compare August 15, 2025 21:15
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 15, 2025

CodSpeed Instrumentation Performance Report

Merging #13131 will not alter performance

Comparing 08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method (8459a12) with main (0dd7908)1

Summary

✅ 34 untouched benchmarks

Footnotes

  1. No successful run was found on main (8459a12) during the generation of this report, so 0dd7908 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@Sysix Sysix marked this pull request as ready for review August 15, 2025 21:17
@Sysix Sysix requested a review from camc314 as a code owner August 15, 2025 21:17
@camc314 camc314 requested a review from Copilot August 15, 2025 22:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the TsGoLintState struct to remove the lifetime parameter by moving paths from the constructor to the lint method. This change supports a language server architecture where files are linted on-demand when requested by the client, rather than storing all paths upfront.

  • Removes lifetime parameter 'a from TsGoLintState struct
  • Moves paths parameter from constructor to lint method
  • Updates call site in apps/oxlint/src/lint.rs to match new API

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/oxc_linter/src/tsgolint.rs Removes lifetime parameter and paths field from TsGoLintState, adds paths parameter to lint method
apps/oxlint/src/lint.rs Updates TsGoLintState usage to match new constructor and lint method signatures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Aug 15, 2025
Copy link
Contributor

camc314 commented Aug 15, 2025

Merge activity

  • Aug 15, 10:14 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 15, 10:14 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Aug 15, 10:19 PM UTC: The Graphite merge queue removed this pull request due to downstack failures on PR #13127.
  • Aug 15, 10:19 PM UTC: The Graphite merge queue removed this pull request due to downstack failures on PR #13127.
  • Aug 15, 10:19 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 15, 10:19 PM UTC: The merge label '0-merge' was removed. This PR will no longer be merged by the Graphite merge queue
  • Aug 16, 2:41 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 16, 2:41 AM UTC: Boshen added this pull request to the Graphite merge queue.
  • Aug 16, 2:46 AM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 15, 2025
@graphite-app graphite-app bot changed the base branch from 08-15-refactor_linter_pass_cwd_instead_of_lintserviceoptions_ to graphite-base/13131 August 15, 2025 22:20
@graphite-app graphite-app bot force-pushed the 08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method branch from e1d58c4 to 31d3d0f Compare August 15, 2025 22:30
@graphite-app graphite-app bot force-pushed the graphite-base/13131 branch from e065911 to f0a517f Compare August 15, 2025 22:30
@graphite-app graphite-app bot changed the base branch from graphite-base/13131 to main August 15, 2025 22:31
@graphite-app graphite-app bot force-pushed the 08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method branch from 31d3d0f to 53057b9 Compare August 15, 2025 22:31
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Aug 16, 2025
The language server does need to hold all paths. It will lint when the client is requesting a file
@graphite-app graphite-app bot force-pushed the 08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method branch from 53057b9 to 8459a12 Compare August 16, 2025 02:41
@graphite-app graphite-app bot merged commit 8459a12 into main Aug 16, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 08-15-refactor_linter_pass_paths_to_tsgolintstate.lint_method branch August 16, 2025 02:46
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 16, 2025
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.

4 participants