-
Notifications
You must be signed in to change notification settings - Fork 97
Comparing changes
Open a pull request
base repository: facebook/ktfmt
base: v0.56
head repository: facebook/ktfmt
compare: v0.57
- 17 commits
- 43 files changed
- 3 contributors
Commits on Jun 26, 2025
-
Summary: Version bump to 0.57-SNAPSHOT Reviewed By: cortinico Differential Revision: D77304039 fbshipit-source-id: 7a0ebad038de0a5084b08170569452f11a4b7415
Configuration menu - View commit details
-
Copy full SHA for b0ce097 - Browse repository at this point
Copy the full SHA b0ce097View commit details -
Summary: Now that we have successfully validated the gradle publish flow (both 0.55 and 0.56 were published with it), we can retire the mvn build files. Reviewed By: cortinico Differential Revision: D77373562 fbshipit-source-id: 86fd896e6715924c18c168a0cc7dc19aa0d83300
Configuration menu - View commit details
-
Copy full SHA for 81277c3 - Browse repository at this point
Copy the full SHA 81277c3View commit details
Commits on Jul 24, 2025
-
xplat/ktfmt/core/src/main/java/com/facebook/ktfmt/format/KotlinInputA…
…stVisitor.kt Reviewed By: drhill-meta Differential Revision: D78883775 fbshipit-source-id: 0325db5032811ce26b0c14c8c18a9541dae1dab1
Configuration menu - View commit details
-
Copy full SHA for 5e06669 - Browse repository at this point
Copy the full SHA 5e06669View commit details
Commits on Aug 7, 2025
-
Adjusted fat jar reference in website
Summary: We changed the name starting on v0.55, the classifier went from `jar-with-dependencies` to `with-dependencies`, but we forgot to update things here. Fixed now! Differential Revision: D79772885 fbshipit-source-id: 735034daa07b3e50c964eb979b4dd8110b7a4ffd
Configuration menu - View commit details
-
Copy full SHA for cedc196 - Browse repository at this point
Copy the full SHA cedc196View commit details
Commits on Aug 11, 2025
-
Create TrailingCommaManagementStrategy which allows option for only a…
Configuration menu - View commit details
-
Copy full SHA for f767ee8 - Browse repository at this point
Copy the full SHA f767ee8View commit details
Commits on Aug 12, 2025
-
Trailing comma strategy support for IJ plugin + minor issues
Summary: Added support for all trailing comma strategies to the IJ plugin. Also fixing the following errors and warnings: ``` e: KtfmtConfigurable.kt:178:42 Cannot access 'val manageTrailingCommas: Boolean': it is internal in 'com/facebook/ktfmt/format/FormattingOptions'. e: KtfmtSettings.kt:134:79 Cannot access 'val manageTrailingCommas: Boolean': it is internal in 'com/facebook/ktfmt/format/FormattingOptions'. e: KtfmtSettings.kt:141:54 Cannot access 'val manageTrailingCommas: Boolean': it is internal in 'com/facebook/ktfmt/format/FormattingOptions'. w: KotlinInputAstVisitor.kt:1440:25 'val leftParenthesis: PsiElement?' is deprecated. Deprecated in Java. w: KotlinInputAstVisitor.kt:1444:25 'val rightParenthesis: PsiElement?' is deprecated. Deprecated in Java. w: KotlinInputAstVisitor.kt:1950:17 Identity-sensitive operation on an instance of value type 'Optional<String!>!' may cause unexpected behavior or errors. w: KotlinInputAstVisitor.kt:1950:40 Identity-sensitive operation on an instance of value type 'Optional<String>' may cause unexpected behavior or errors. w: FormatterTest.kt:5492:13 'constructor(maxWidth: Int, blockIndent: Int, continuationIndent: Int, manageTrailingCommas: Boolean = ..., removeUnusedImports: Boolean = ..., debuggingPrintOpsAfterFormatting: Boolean = ...): FormattingOptions' is deprecated. Here just for retrocompatibility reasons. Will be removed on 1.0.0. ``` Differential Revision: D80024619 fbshipit-source-id: 86da94918856c6d734fc83208d521ad9697e6fe5
Configuration menu - View commit details
-
Copy full SHA for cf3fba5 - Browse repository at this point
Copy the full SHA cf3fba5View commit details
Commits on Aug 13, 2025
-
Trailing commas for Meta style
Summary: As discussed in [this post](https://fb.workplace.com/groups/ktfmt/posts/2286361675144702) Differential Revision: D80116948 fbshipit-source-id: 27e244dc7cd8fa23e582f58dc2533048164e5b9b
Configuration menu - View commit details
-
Copy full SHA for 79e985c - Browse repository at this point
Copy the full SHA 79e985cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06c1254 - Browse repository at this point
Copy the full SHA 06c1254View commit details
Commits on Aug 14, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 0f6ccd3 - Browse repository at this point
Copy the full SHA 0f6ccd3View commit details
Commits on Aug 15, 2025
-
Codemod format for trailing commas incoming change [10/n]
Summary: Adding trailing commas. Differential Revision: D80174963 fbshipit-source-id: 32c63ebdf5f5d53930aa060a3457be75bcc6d604
Configuration menu - View commit details
-
Copy full SHA for c974608 - Browse repository at this point
Copy the full SHA c974608View commit details -
trimMargin and trimIndent formatting
Summary: Just because it's a multiline string it doesn't mean it doesn't have to be properly formatted. Following the popular opinion from here https://fb.workplace.com/groups/ktfmt/posts/2287111725069697 Reviewed By: cortinico Differential Revision: D79772886 fbshipit-source-id: 77241b451e36b336cf43d1652fca3d6e228c41c8
Configuration menu - View commit details
-
Copy full SHA for e14d99c - Browse repository at this point
Copy the full SHA e14d99cView commit details -
Apply formatting to ktfmt code
Summary: This is here to showcase the changes from the previous diff in action Differential Revision: D79772884 fbshipit-source-id: c2200e1e198aa032bb76963dcc68dbfb349f4d7c
Configuration menu - View commit details
-
Copy full SHA for 0a754f8 - Browse repository at this point
Copy the full SHA 0a754f8View commit details
Commits on Aug 18, 2025
-
Handle special case in trimMargin
Summary: While formatting the codebase I stumbled upon this issue here where the string gets broken as we add an extra `|` like this: ``` """|my string """.trimMargin() // becomes """ ||my string """ .trimMargin() ``` Here we fix that issue Reviewed By: cortinico Differential Revision: D80388090 fbshipit-source-id: d14f2a6214e7169a71100a8a330a2f78d6951e86Configuration menu - View commit details
-
Copy full SHA for 9029a50 - Browse repository at this point
Copy the full SHA 9029a50View commit details -
Do not add margin to multiline expressions in trimMargin
Summary: While formatting the codebase I stumbled upon this issue here where we add `|` inside of expressions in case they are multiline like this: ``` """ |my math = ${ "}" + (1 + 2) .toString() } | string |""" .trimMargin() // becomes """ |my math = ${ | "}" + (1 + 2) | .toString() | } | string |""" .trimMargin() ``` Here we fix that issue but ignoring any strings that contain that abomination Differential Revision: D80388985 fbshipit-source-id: beeeccdc7d378425ab24ee6343b2e54f964c994bConfiguration menu - View commit details
-
Copy full SHA for ec1154f - Browse repository at this point
Copy the full SHA ec1154fView commit details -
Only use '|' as margin character if it's the first non-space character
Summary: While formatting the codebase I stumbled upon this issue here: ``` """ ${specBody.lines().map { "|$it" }.joinToString("\n")} """ .trimMargin() // becomes """ |$it" }.joinToString("\n")} """ .trimMargin() ``` Here we fix that issue Differential Revision: D80430949 fbshipit-source-id: 2d61d730c71b8860bd293ef0af3e3d4670e3a2f3Configuration menu - View commit details
-
Copy full SHA for 9ad5595 - Browse repository at this point
Copy the full SHA 9ad5595View commit details
Commits on Aug 19, 2025
-
set intellijPlatform projectName to ktfmt_idea_plugin (#554)
Configuration menu - View commit details
-
Copy full SHA for 52b4118 - Browse repository at this point
Copy the full SHA 52b4118View commit details -
Summary: Version bump to 0.57 Reviewed By: cortinico Differential Revision: D80478993 fbshipit-source-id: d23fe2b5eafb004048ea3774eb0cc5808d168b1a
Configuration menu - View commit details
-
Copy full SHA for 55a407f - Browse repository at this point
Copy the full SHA 55a407fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.56...v0.57