Skip to content

Conversation

@ljunkie
Copy link
Member

@ljunkie ljunkie commented Nov 28, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 28, 2025 23:03
@ljunkie ljunkie self-assigned this Nov 28, 2025
Copy link

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 pull request adds two new formatting options (specificKeywordCaseOverride and specificTypeCaseOverride) that allow users to specify exact casing for individual keywords and types, and refactors the insertSpaceAroundParameterAssignment logic to use AST walking instead of token-based iteration.

Key Changes

  • Added specificKeywordCaseOverride and specificTypeCaseOverride options to allow granular control over keyword/type casing with custom strings
  • Refactored insertSpaceAroundParameterAssignment formatting from a token-based approach to an AST-based approach using FunctionParameterExpression
  • Reorganized test suite structure for better organization and maintainability

Reviewed changes

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

Show a summary per file
File Description
src/formatters/KeywordCaseFormatter.ts Adds logic to check for and apply specific keyword/type case overrides before applying general case rules
src/formatters/KeywordCaseFormatter.spec.ts Adds comprehensive tests for the new specific case override features including edge cases
src/formatters/InteriorWhitespaceFormatter.ts Refactors parameter assignment spacing logic into a dedicated AST-based method and adds FunctionParameterExpression import
src/formatters/InteriorWhitespaceFormatter.spec.ts Reorganizes tests into nested describe blocks and moves parameter assignment tests into a dedicated section
src/FormattingOptions.ts Adds TypeScript interface definitions for the two new formatting options with JSDoc comments
bsfmt.schema.json Adds JSON schema definitions for the new formatting options with examples
README.md Updates documentation to include the new options in the table and adds detailed sections explaining their usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 28, 2025 23:15
Copy link

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

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 28, 2025 23:21
Copy link

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

No more brittle logic by tying into FunctionParameterExpression which
also handles anonymous functions properly.
@ljunkie ljunkie force-pushed the rob/specific-casing-and-fix-insertSpaceAroundParameterAssignment branch from 2cfa7cb to 7a18082 Compare November 28, 2025 23:28
@ljunkie ljunkie requested a review from Copilot November 28, 2025 23:38
Copy link

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

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 28, 2025 23:45
Copy link

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ljunkie ljunkie force-pushed the rob/specific-casing-and-fix-insertSpaceAroundParameterAssignment branch from 33d5df2 to 5245606 Compare November 28, 2025 23:49
@ljunkie ljunkie merged commit bd88a98 into xelp/main Nov 28, 2025
3 checks passed
@ljunkie ljunkie deleted the rob/specific-casing-and-fix-insertSpaceAroundParameterAssignment branch November 28, 2025 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants