Age | Commit message (Collapse) | Author |
|
Co-authored-by: TBSten <TBSten@users.noreply.github.com>
|
|
Co-authored-by: Paul Dingemans <paul-dingemans@users.noreply.github.com>
|
|
expression (#2653)
For example an expression wrapped in `!(<some-binary-expression>)` should check/fix spacing around the operator in the inner binary expression.
Fixes #2652
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
`lineLengthWithoutNewlinePrefix` (#2644)
|
|
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
(#2642)
Closes #2639
|
|
Allows API consumers like the 'ktlint-intellij-plugin' to format a block of code inside the given code (for example a file) without autocorrect the given code entirely.
The start offset of the node on which a rule can detect a lint violation should be inside the range which is to be formatted. This has some unexpected side effects for some rules. In most cases it is to be expected that the user won't notice those side effects. And if it happens, the most likely way the user responds is widening the range which is to be formatted, and try to format again.
For example, the given code might contain the when-statement below:
```
// code with lint violations
when(foobar) {
FOO -> "Single line"
BAR ->
"""
Multi line
""".trimIndent()
else -> null
}
// more code with lint violations
```
The `blank-line-between-when-conditions` rule requires blank lines to be added between the conditions. If the when-keyword above is included in the range which is to be formatted then the blank lines before the conditions are added. If only the when-conditions itself are selected, but not the when-keyword, then the blank lines are not added.
This unexpected behavior is a side effect of the way the partial formatting is implemented currently. The side effects can be prevented by delaying the decision to autocorrect as late as possible and the exact offset of the error is known. This however would cause a breaking change, and needs to wait until Ktlint V2.x.
Closes #2629
|
|
`PrivatePropertyName` (#2643)
When Intellij IDEA suppressions `ObjectPropertyName` or `PrivatePropertyName` are used, then also suppress ktlint `property-naming` rule.
Closes #2612
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Command used:
```
codespell --skip="**/build/*" --ignore-words-list afterall,testng,optin --write-changes
```
See https://pypi.org/project/codespell/
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
list (#2630)
Co-authored-by: Paul Dingemans <paul-dingemans@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
* Update gradle/wrapper-validation-action action to v3
* Replace gradle/wrapper-validation-action@v3 with gradle/actions/wrapper-validation@v3
https://github.com/gradle/wrapper-validation-action/releases/tag/v3.3.0
Co-authored-by: Zongle Wang <wangzongler@gmail.com>
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paul Dingemans <paul-dingemans@users.noreply.github.com>
Co-authored-by: Zongle Wang <wangzongler@gmail.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Due to incorrect construction of the string template, it could happen that an import is removed as it was falsely flagged as unused as the "$" was added as prefix in the identifier.
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
https://docs.gradle.com/enterprise/gradle-plugin/legacy/#develocity_migration
|
|
Fixes #2621
Co-authored-by: Paul Dingemans <paul-dingemans@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
preceded on the same line by a block comment containing a newline character (#2607)
Function `leavesOnLine` calls function `getFirstLeafOnLineOrSelf` which finds the first leaf on the line by looking for newline character. A block comment containing a newline character resulted in considering that block comment to be the first element on the line, even in case it was preceded by other elements on the same line.
Due to this change, the `max-line-length` rule failed, which has been resolved by refactoring the calculation of the line length.
Closes #2601
|
|
Closes #2602
|
|
followed by a comma (#2598)
Closes #2597
|
|
function signature (#2609)
Closes #2592
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
Closes #2577
|
|
Fix reference in documentation
|
|
Closes #2594
|
|
pinterest/renovate/org.jetbrains.dokka-dokka-gradle-plugin-1.x
Update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.9.20
|
|
|
|
Finish 1.2.1 release
|
|
|
|
Updated refs to latest (1.2.1) release
|
|
|
|
Prepare 1.2.1 release
|
|
|
|
Add missing import
|
|
|
|
2576 reporter
|
|
Fix null byte as default value for "--pattern-from-stdin"
|
|
* Mark new rules as experimental
Closes #2575
|
|
Closes #2576
|