Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ktlint.version from 0.45.2 to 0.46.1 #473

Merged
merged 2 commits into from
Jun 26, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 25, 2022

Bumps ktlint.version from 0.45.2 to 0.46.1.
Updates ktlint from 0.45.2 to 0.46.1

Release notes

Sourced from ktlint's releases.

0.46.1

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

0.46.0

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

... (truncated)

Changelog

Sourced from ktlint's changelog.

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

Property Ktlint.DISABLED has been removed. The property value can now be retrieved as follows:

... (truncated)

Commits
  • c5b97a0 Prep 0.46.1 release (#1515)
  • 21f6feb Do not remove space before a comment in a parameter list (#1514)
  • ba8c040 A delegate property which starts on the same line as the property declaration...
  • 1cce447 Improve readability and maintainability (follow-up on #1508) (#1511)
  • 4c42555 Account for separating spaces when parsing the disabled rules. (#1508)
  • ec71b86 Fix the typo of the trailling-comma rule (#1507)
  • 60d412a Use stable Kotlin compiler frontend (#1506)
  • 95f32d3 Setup publication of documentation with mkdocs-material to github pages (#1501)
  • 972ccc0 update to 0.47.0-SNAPSHOT (#1505)
  • ddda58e Updated refs to latest (0.46.0) release (#1504)
  • Additional commits viewable in compare view

Updates ktlint-core from 0.45.2 to 0.46.1

Release notes

Sourced from ktlint-core's releases.

0.46.1

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

0.46.0

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

... (truncated)

Changelog

Sourced from ktlint-core's changelog.

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

Property Ktlint.DISABLED has been removed. The property value can now be retrieved as follows:

... (truncated)

Commits
  • c5b97a0 Prep 0.46.1 release (#1515)
  • 21f6feb Do not remove space before a comment in a parameter list (#1514)
  • ba8c040 A delegate property which starts on the same line as the property declaration...
  • 1cce447 Improve readability and maintainability (follow-up on #1508) (#1511)
  • 4c42555 Account for separating spaces when parsing the disabled rules. (#1508)
  • ec71b86 Fix the typo of the trailling-comma rule (#1507)
  • 60d412a Use stable Kotlin compiler frontend (#1506)
  • 95f32d3 Setup publication of documentation with mkdocs-material to github pages (#1501)
  • 972ccc0 update to 0.47.0-SNAPSHOT (#1505)
  • ddda58e Updated refs to latest (0.46.0) release (#1504)
  • Additional commits viewable in compare view

Updates ktlint-reporter-checkstyle from 0.45.2 to 0.46.1

Release notes

Sourced from ktlint-reporter-checkstyle's releases.

0.46.1

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

0.46.0

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

... (truncated)

Changelog

Sourced from ktlint-reporter-checkstyle's changelog.

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

Property Ktlint.DISABLED has been removed. The property value can now be retrieved as follows:

... (truncated)

Commits
  • c5b97a0 Prep 0.46.1 release (#1515)
  • 21f6feb Do not remove space before a comment in a parameter list (#1514)
  • ba8c040 A delegate property which starts on the same line as the property declaration...
  • 1cce447 Improve readability and maintainability (follow-up on #1508) (#1511)
  • 4c42555 Account for separating spaces when parsing the disabled rules. (#1508)
  • ec71b86 Fix the typo of the trailling-comma rule (#1507)
  • 60d412a Use stable Kotlin compiler frontend (#1506)
  • 95f32d3 Setup publication of documentation with mkdocs-material to github pages (#1501)
  • 972ccc0 update to 0.47.0-SNAPSHOT (#1505)
  • ddda58e Updated refs to latest (0.46.0) release (#1504)
  • Additional commits viewable in compare view

Updates ktlint-reporter-json from 0.45.2 to 0.46.1

Release notes

Sourced from ktlint-reporter-json's releases.

0.46.1

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

0.46.0

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

... (truncated)

Changelog

Sourced from ktlint-reporter-json's changelog.

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

Property Ktlint.DISABLED has been removed. The property value can now be retrieved as follows:

... (truncated)

Commits
  • c5b97a0 Prep 0.46.1 release (#1515)
  • 21f6feb Do not remove space before a comment in a parameter list (#1514)
  • ba8c040 A delegate property which starts on the same line as the property declaration...
  • 1cce447 Improve readability and maintainability (follow-up on #1508) (#1511)
  • 4c42555 Account for separating spaces when parsing the disabled rules. (#1508)
  • ec71b86 Fix the typo of the trailling-comma rule (#1507)
  • 60d412a Use stable Kotlin compiler frontend (#1506)
  • 95f32d3 Setup publication of documentation with mkdocs-material to github pages (#1501)
  • 972ccc0 update to 0.47.0-SNAPSHOT (#1505)
  • ddda58e Updated refs to latest (0.46.0) release (#1504)
  • Additional commits viewable in compare view

Updates ktlint-reporter-plain from 0.45.2 to 0.46.1

Release notes

Sourced from ktlint-reporter-plain's releases.

0.46.1

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

0.46.0

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

... (truncated)

Changelog

Sourced from ktlint-reporter-plain's changelog.

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

Property Ktlint.DISABLED has been removed. The property value can now be retrieved as follows:

... (truncated)

Commits
  • c5b97a0 Prep 0.46.1 release (#1515)
  • 21f6feb Do not remove space before a comment in a parameter list (#1514)
  • ba8c040 A delegate property which starts on the same line as the property declaration...
  • 1cce447 Improve readability and maintainability (follow-up on #1508) (#1511)
  • 4c42555 Account for separating spaces when parsing the disabled rules. (#1508)
  • ec71b86 Fix the typo of the trailling-comma rule (#1507)
  • 60d412a Use stable Kotlin compiler frontend (#1506)
  • 95f32d3 Setup publication of documentation with mkdocs-material to github pages (#1501)
  • 972ccc0 update to 0.47.0-SNAPSHOT (#1505)
  • ddda58e Updated refs to latest (0.46.0) release (#1504)
  • Additional commits viewable in compare view

Updates ktlint-ruleset-experimental from 0.45.2 to 0.46.1

Release notes

Sourced from ktlint-ruleset-experimental's releases.

0.46.1

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

0.46.0

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

... (truncated)

Changelog

Sourced from ktlint-ruleset-experimental's changelog.

[0.46.1] - 2022-06-21

Minor release to address some regressions introduced in 0.46.0

Fixed

  • Remove experimental flag -Xuse-k2 as it forces API Consumers to compile their projects with this same flag (#1506).
  • Account for separating spaces when parsing the disabled rules (#1508).
  • Do not remove space before a comment in a parameter list (#1509).
  • A delegate property which starts on the same line as the property declaration should not have an extra indentation indent (#1510)

[0.46.0] - 2022-06-18

Promoting experimental rules to standard

The rules below are promoted from the experimental ruleset to the standard ruleset.

  • annotation
  • annotation-spacing
  • argument-list-wrapping
  • double-colon-spacing
  • enum-entry-name-case
  • multiline-if-else
  • no-empty-first-line-in-method-block
  • package-name
  • trailing-comma
  • spacing-around-angle-brackets
  • spacing-between-declarations-with-annotations
  • spacing-between-declarations-with-comments
  • unary-op-spacing

Note that as a result of moving the rules that the prefix experimental: has to be removed from all references to this rule. Check references in:

  • The .editorconfig setting disabled_rules.
  • KtLint disable and enable directives.
  • The VisitorModifier.RunAfterRule.

If your project did not run with the experimental ruleset enabled before, you might expect new lint violations to be reported. Please note that rules can be disabled via the the .editorconfig in case you do not want the rules to be applied on your project.

API Changes & RuleSet providers

If you are not an API user nor a RuleSet provider, then you can safely skip this section. Otherwise, please read below carefully and upgrade your usage of ktlint. In this and coming releases, we are changing and adapting important parts of our API in order to increase maintainability and flexibility for future changes. Please avoid skipping a releases as that will make it harder to migrate.

Lint and formatting functions

The lint and formatting changes no longer accept parameters of type Params but only ExperimentalParams. Also, the VisitorProvider parameter has been removed. Because of this, your integration with KtLint breaks. Based on feedback with ktlint 0.45.x, we now prefer to break at compile time instead of trying to keep the interface backwards compatible. Please raise an issue, in case you help to convert to the new API.

Use of ".editorconfig" properties & userData

The interface UsesEditorConfigProperties provides method getEditorConfigValue to retrieve a named .editorconfig property for a given ASTNode. When implementing this interface, the value editorConfigProperties needs to be overridden. Previously it was not checked whether a retrieved property was actually recorded in this list. Now, retrieval of unregistered properties results in an exception.

Property Ktlint.DISABLED has been removed. The property value can now be retrieved as follows:

... (truncated)

Commits
  • c5b97a0 Prep 0.46.1 release (#1515)
  • 21f6feb Do not remove space before a comment in a parameter list (#1514)
  • ba8c040 A delegate property which starts on the same line as the property declaration...
  • 1cce447 Improve readability and maintainability (follow-up on #1508) (#1511)

Bumps `ktlint.version` from 0.45.2 to 0.46.1.

Updates `ktlint` from 0.45.2 to 0.46.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@0.45.2...0.46.1)

Updates `ktlint-core` from 0.45.2 to 0.46.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@0.45.2...0.46.1)

Updates `ktlint-reporter-checkstyle` from 0.45.2 to 0.46.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@0.45.2...0.46.1)

Updates `ktlint-reporter-json` from 0.45.2 to 0.46.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@0.45.2...0.46.1)

Updates `ktlint-reporter-plain` from 0.45.2 to 0.46.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@0.45.2...0.46.1)

Updates `ktlint-ruleset-experimental` from 0.45.2 to 0.46.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@0.45.2...0.46.1)

Updates `ktlint-ruleset-standard` from 0.45.2 to 0.46.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@0.45.2...0.46.1)

---
updated-dependencies:
- dependency-name: com.pinterest:ktlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.pinterest.ktlint:ktlint-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.pinterest.ktlint:ktlint-reporter-checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.pinterest.ktlint:ktlint-reporter-json
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.pinterest.ktlint:ktlint-reporter-plain
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.pinterest.ktlint:ktlint-ruleset-experimental
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.pinterest.ktlint:ktlint-ruleset-standard
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies java Pull requests that update Java code labels Jun 25, 2022
ktlint 0.46.1 had breaking API changes.
@codecov
Copy link

codecov bot commented Jun 26, 2022

Codecov Report

Merging #473 (4551903) into master (202ec8f) will decrease coverage by 0.57%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##             master     #473      +/-   ##
============================================
- Coverage     86.26%   85.69%   -0.58%     
  Complexity       88       88              
============================================
  Files            16       16              
  Lines           597      601       +4     
  Branches         74       76       +2     
============================================
  Hits            515      515              
- Misses           34       36       +2     
- Partials         48       50       +2     
Impacted Files Coverage Δ
...ven/plugin/ktlint/internal/AbstractCheckSupport.kt 79.52% <66.66%> (-1.28%) ⬇️
...ub/gantsign/maven/plugin/ktlint/internal/Format.kt 77.94% <66.66%> (-2.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 202ec8f...4551903. Read the comment docs.

@freemanjp freemanjp merged commit 62f64ef into master Jun 26, 2022
@freemanjp freemanjp deleted the dependabot/maven/ktlint.version-0.46.1 branch June 26, 2022 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant