chore: document Scala 2.13/3 syntax compatibility requirements in CLAUDE.md#3198
Open
He-Pin wants to merge 1 commit into
Open
chore: document Scala 2.13/3 syntax compatibility requirements in CLAUDE.md#3198He-Pin wants to merge 1 commit into
He-Pin wants to merge 1 commit into
Conversation
Motivation: Ensure consistent code style across the codebase by explicitly disabling Scala 3 specific syntax features that could lead to inconsistent formatting. Modification: - Add allowQuestionMarkPlaceholder = false to dialectOverride - Add allowMatchAsExpr = false to dialectOverride - Document Scala 3 syntax restrictions in CLAUDE.md Result: scalafmt now enforces restrictions on Scala 3 specific syntax including significant indentation, as import rename, * wildcard import, postfix * vararg splices, ? placeholder, and match as expression. Tests: Not run - configuration only References: None - code style configuration
98eb231 to
7c0b29f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Document the Scala 2.13 and Scala 3 syntax compatibility requirements in CLAUDE.md to ensure consistent code style.
Modification
asfor import rename,*for wildcard import, postfix*for vararg splices.scalafmt.confdialectOverridealready enforces these restrictionsResult
CLAUDE.md now explicitly documents the Scala 2.13/3 syntax compatibility requirement, matching the existing
.scalafmt.confconfiguration.Tests
Not run - documentation only
References
None - code style configuration