test(linter/plugins): shorten code in SourceCode test fixture#16498
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
There was a problem hiding this comment.
Pull request overview
This PR refactors test fixture code to improve readability by extracting context.sourceCode into a local variable, reducing repetition throughout the file. The refactoring is purely cosmetic and doesn't change test behavior.
Key changes:
- Extracted
sourceCodefromcontextinto local variables to reduce repetitivecontext.sourceCodereferences - Applied the refactoring consistently across both
createRuleandcreateOnceRuletest fixtures
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
Pure refactor of tests. Shorten code by putting `sourceCode` in a local var, rather than repeating `context.sourceCode` over and over.
a015894 to
a9b9298
Compare
207ae5b to
2a9d7e9
Compare
…project#16498) Pure refactor of tests. Shorten code by putting `sourceCode` in a local var, rather than repeating `context.sourceCode` over and over.

Pure refactor of tests. Shorten code by putting
sourceCodein a local var, rather than repeatingcontext.sourceCodeover and over.