Skip to content

Commit

Permalink
Update ktlint.version from 0.39.0 to 0.41.0
Browse files Browse the repository at this point in the history
### What's done:
* Updates ktlint.version from 0.39.0 to 0.41.0
  • Loading branch information
Cheshiriks committed Apr 5, 2021
1 parent 90beb06 commit 5b70a0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ To run diktat in **only-check** mode use command `$ mvn diktat:check@diktat`.
To run diktat in **autocorrect** mode use command `$ mvn diktat:fix@diktat`.

## Run with Gradle using diktat-gradle-plugin
Requires a gradle version no lower than 5.3.

This plugin is available since version 0.1.5. You can see how the plugin is configured in our examples: [build.gradle.kts](examples/gradle-kotlin-dsl/build.gradle.kts).
Add this plugin to your `build.gradle.kts`:
```kotlin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class DiktatGradlePluginFunctionalTest {
@Test
fun `should execute diktatCheck with gradle older than 6_4`() {
val result = runDiktat(testProjectDir, shouldSucceed = false, arguments = listOf("--info")) {
withGradleVersion("5.0")
withGradleVersion("5.3")
}

val diktatCheckBuildResult = result.task(":$DIKTAT_CHECK_TASK")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import sun.reflect.ReflectionFactory
/**
* A class that wraps kotlin compiler's code parser and converts source code into AST
*/
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR")
class KotlinParser {
private val project: Project by lazy {
val compilerConfiguration = CompilerConfiguration()
Expand Down

0 comments on commit 5b70a0f

Please sign in to comment.