All Versions
95
Latest Version
Avg Release Cycle
79 days
Latest Release
213 days ago
Changelog History
Page 4
Changelog History
Page 4
-
v0.37.0 Changes
June 02, 2020๐ Thank you to Tapchicoma and romtsn for all their hard work on this release!
โ Added
- ๐ Gradle wrapper validation (#684)
- ๐ Experimental
SpacingAroundDoubleColonrule (#722) - ๐ Experimental
SpacingBetweenDeclarationsWithCommentsRuleandSpacingBetweenDeclarationsWithAnnotationsRule. Fixes (#721) kotlin_imports_layoutconfig for.editorconfigfile so that import ordering is configurable. Fixes (#527)
๐ Changed
- โก๏ธ Kotlin was updated to 1.3.70 version
- ๐ Loading properties from
.editorconfigwas fully delegated to ec4j library. This fixes ability to override
๐ properties for specific files/directories (#742) - ๐ Promote experimental "indent" rule to standard one, old standard "indent" rule is removed
- ๐ Functions to calculate line/column are now public so they can be used by 3rd party tools (#725)
- ๐
AnnotationRulenow handles file annotations as well (#714)
๐ Fixed
- ๐ Ignore keywords in KDoc comments (#671)
- ๐ Allow multiple spaces in KDoc comments (#706)
- ๐ Trailing comment no longer reported as incorrect indentation (#710)
- ๐ Annotated function types no longer reported as an error (#737)
- ๐
FinalNewlineRuleno longer reports error for empty files (#723) - ๐ EOL comments will no longer cause
AnnotationRuleto report an error (#736) - ๐ Formatter will no longer break class declaration with trailing comment (#728)
- ๐ Formatting for single line if/else statements (#174)
- ๐ Exception in
NoLineBreakBeforeAssignmentRule(#693)
โ Removed
- โ Removed Maven; builds all run under Gradle (#445)
- Old standard
IndentRule
-
v0.36.0 Changes
December 03, 2019โ Added
- ๐ HTML reporter (#641)
- ๐ Experimental rule to lint enum entry names (#638)
- ๐
@Suppress("RemoveCurlyBracesFromTemplate")now respected (#263)
โฌ๏ธ Upgraded
๐ Fixed
- ๐
.gitdirectory now discovered instead of hardcoded (#623) - ๐ Several bugs with the experimental annotation rule (#628) (#642) (#654) (#624)
- ๐ Allow newline after lambda return type (#643)
- ๐ Allow empty first line in a function that returns an anonymous object (#655)
- ๐ Indentation with lambda argument (#627)
- ๐ ktlint can now lint UTF-8 files with BOM (#630
- ๐ Indentation with newline before return type (#663)
- ๐ Build/tests on Windows (#640)
- ๐ Allow whitespace after
(followed by a comment (#664)
-
v0.35.0 Changes
October 12, 2019โ Added
- ๐ Support for specifying color for output via
--color-namecommand line flag. (#585) - ๐ Support for custom rulesets and providers on Java 9+ (#573)
๐ Deprecated
- ๐
--apply-to-ideaflag; useapplyToIDEAsubcommand instead (#554) - ๐
--apply-to-idea-projectflag; useapplyToIDEAProjectsubcommand instead (#593) - ๐
0.0.0-SNAPSHOTbuilds; snapshot builds are now versioned, e.g. 0.35.0-SNAPSHOT (#588)- Note: When using the new snapshot builds, you may need to add an explicit dependency on
kotlin-compiler-embeddableto your ruleset project.
- Note: When using the new snapshot builds, you may need to add an explicit dependency on
โ Removed
- ๐ Support for loading 3rd party rulesets via Maven (#566)
โฌ๏ธ Upgraded
๐ Fixed
- ๐ Bugs with spacing in experimental
AnnotationRule(#552) (#601 - ๐ Brackets would be removed from empty companion object (#600)
- ๐ Bugs with experimental
IndentationRule(#597) (#599) - ๐ Erroneous space between
}and](#596) - ๐ Spacing around multiplication sign in lambdas (#598)
- ๐
--versionoutput with gradle-built JAR (#613)
- ๐ Support for specifying color for output via
-
v0.34.2 Changes
July 23, 2019๐ Minor bugfix release for 0.34.0. (Note: 0.34.1 deprecated/deleted due to regression in disabled_flags .editorconfig support.)
โ Added
- ๐ Support for globally disabling rules via
--disabled_rulescommand line flag. (#534)
๐ Fixed
- ๐ Support for globally disabling rules via
-
v0.34.1
July 17, 2019 -
v0.34.0 Changes
July 15, 2019โ Added
- ๐ Support for Kotlin 1.3.41
- ๐ Support for globally disabling rules via custom
disabled_rulesproperty in.editorconfig(#503) - ๐
experimental:no-empty-first-line-in-method-block(#474) - โ Unit tests for ruleset providers
โฌ๏ธ Upgraded
- ๐ AssertJ from 3.9.0 to 3.12.2 (#520)
Enabled
- ๐ Final newline by default (#446)
no-wildcard-import(Re-enabled after temporarily disabling in 0.33.0)- ๐
experimental:annotation(#509) experimental:multiline-if-else(no autocorrection)- ๐ฆ
experimental:package-name(currently only disallows underscores in package names)
๐ Deprecated
- ๐
MavenDependencyResolver. Scheduled to be removed in 0.35.0 ([#468])(#468) - ๐
--install-git-pre-commit-hookflag; useinstallGitPreCommitHooksubcommand instead (#487) - ๐
--print-astflag; useprintASTsubcommand instead (#500)
โ Removed
- ๐ Support for
--ruleset-repositoryand--ruleset-updateflags
๐ Fixed
-
v0.33.0 Changes
May 28, 2019โ Added
- ๐ Support for Kotlin 1.3.31
Disabled
- ๐ No wildcard imports rule (#48). Developers wishing to still enforce this rule should add the code into a custom ruleset.
๐ Fixed
-
v0.32.0 Changes
April 22, 2019๐ Note: This release will not be updated in the
homebrew-ktlinttap; we will be opening a PR to makektlintpart of the core Homebrew formulae.โ Added
- ๐
experimental/import-orderingrule (#189).
๐ Usektlint --experimentalto enabled. - ๐ Support for Kotlin 1.3.30
- ๐ Build now compatible with jitpack
๐ Fixed
- ๐ Incorrectly flagging a missing newline for functions with no parameters (#327).
- ๐ Semicolons now allowed in KDocs (#362).
- ๐ Spaces now disallowed after
super(#369). - ๐ Annotations in function parameters now checked for indentation (#374]
๐ Changed
- ๐ฆ Code now lives in
com.pinterestpackage - groupId now
com.pinterest - ๐ Custom ruleset
META-INF.servicesfile must be renamed tocom.pinterest.ktlint.core.RuleSetProvider
- ๐
-
v0.31.0 Changes
April 16, 2019โ Added
- ๐
dot-spacingrule (#293). - ๐
experimental/indentrule (#338).
Usektlint --experimentalto enable.
๐ Fixed
- Spacing check around
<&>operators.
๐ Changed
- ๐
no-multi-spacesrule (horizontal alignment of comments is no longer allowed) (#269). colon-spacingrule (:must not appear at the beginning of the line).- ๐
package-namerule (disabled until #208 is resolved). - ๐
--print-astto output com.pinterest.ktlint.core.ast.ElementType.* asnode.elementType, e.g. ``` $ echo 'fun f() {}' | ./ktlint/target/ktlint --print-ast --color --stdin 1: ~.psi.KtFile (FILE) 1: ~.psi.KtPackageDirective (PACKAGE_DIRECTIVE) "" 1: ~.psi.KtImportList (IMPORT_LIST) "" 1: ~.psi.KtScript (SCRIPT) 1: ~.psi.KtBlockExpression (BLOCK) 1: ~.psi.KtNamedFunction (FUN) 1: ~.c.i.p.impl.source.tree.LeafPsiElement (FUN_KEYWORD) "fun" 1: ~.c.i.p.impl.source.tree.PsiWhiteSpaceImpl (WHITE_SPACE) " " 1: ~.c.i.p.impl.source.tree.LeafPsiElement (IDENTIFIER) "f" 1: ~.psi.KtParameterList (VALUE_PARAMETER_LIST) 1: ~.c.i.p.impl.source.tree.LeafPsiElement (LPAR) "(" 1: ~.c.i.p.impl.source.tree.LeafPsiElement (RPAR) ")" 1: ~.c.i.p.impl.source.tree.PsiWhiteSpaceImpl (WHITE_SPACE) " " 1: ~.psi.KtBlockExpression (BLOCK) 1: ~.c.i.p.impl.source.tree.LeafPsiElement (LBRACE) "{" 1: ~.c.i.p.impl.source.tree.LeafPsiElement (RBRACE) "}" 1: ~.c.i.p.impl.source.tree.PsiWhiteSpaceImpl (WHITE_SPACE) "\n"
format: <node.psi::class> () "" legend: ~ = org.jetbrains.kotlin, c.i.p = com.intellij.psi
- `kotlin-compiler` version to 1.3.21 (from 1.3.20). ### โ Removed - ๐ Dependency on JCenter ([#349](https://github.com/shyiko/ktlint/issues/349)). - ๐
-
v0.31.0-SNAPSHOT Changes
April 16, 2019๐ Snapshot release which includes Kotlin 1.3.30 support.