Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/indentation-inside-string-templates(#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aktsay6 authored Feb 16, 2021
2 parents b0531b4 + 19932b6 commit dbf65c7
Show file tree
Hide file tree
Showing 16 changed files with 94 additions and 25 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ Main features of diktat are the following:
# another option is "brew install ktlint"
```

2. Load diKTat manually: [here](https://github.com/cqfn/diKTat/releases/download/v0.4.0/diktat.jar)
2. Load diKTat manually: [here](https://github.com/cqfn/diKTat/releases/download/v0.4.1/diktat.jar)

**OR** use curl:
```bash
$ curl -sSLO https://github.com/cqfn/diKTat/releases/download/v0.4.0/diktat-0.4.0.jar
$ curl -sSLO https://github.com/cqfn/diKTat/releases/download/v0.4.1/diktat-0.4.1.jar
```

3. Finally, run KTlint (with diKTat injected) to check your `*.kt` files in `dir/your/dir`:
Expand Down Expand Up @@ -110,7 +110,7 @@ This plugin is available since version 0.1.5. You can see how the plugin is conf
Add this plugin to your `build.gradle.kts`:
```kotlin
plugins {
id("org.cqfn.diktat.diktat-gradle-plugin") version "0.4.0"
id("org.cqfn.diktat.diktat-gradle-plugin") version "0.4.1"
}
```

Expand All @@ -121,7 +121,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("org.cqfn.diktat:diktat-gradle-plugin:0.4.0")
classpath("org.cqfn.diktat:diktat-gradle-plugin:0.4.1")
}
}
Expand Down Expand Up @@ -194,7 +194,7 @@ spotless {
```kotlin
spotless {
kotlin {
diktat("0.4.0").configFile("full/path/to/diktat-analysis.yml")
diktat("0.4.1").configFile("full/path/to/diktat-analysis.yml")
}
}
```
Expand Down Expand Up @@ -225,7 +225,7 @@ Diktat can be run via spotless-maven-plugin since version 2.8.0

```xml
<diktat>
<version>0.4.0</version> <!-- optional -->
<version>0.4.1</version> <!-- optional -->
<configFile>full/path/to/diktat-analysis.yml</configFile> <!-- optional, configuration file path -->
</diktat>
```
Expand Down
2 changes: 1 addition & 1 deletion diktat-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.cqfn.diktat</groupId>
<artifactId>diktat-parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion diktat-gradle-plugin/gradle-plugin-marker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>diktat-gradle-plugin</artifactId>
<groupId>org.cqfn.diktat</groupId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion diktat-gradle-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>diktat-parent</artifactId>
<groupId>org.cqfn.diktat</groupId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion diktat-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>diktat-parent</artifactId>
<groupId>org.cqfn.diktat</groupId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion diktat-rules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.cqfn.diktat</groupId>
<artifactId>diktat-parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion diktat-ruleset/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.cqfn.diktat</groupId>
<artifactId>diktat-parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion diktat-test-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.cqfn.diktat</groupId>
<artifactId>diktat-parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion examples/gradle-groovy-dsl/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "org.cqfn.diktat.diktat-gradle-plugin" version "0.4.0"
id "org.cqfn.diktat.diktat-gradle-plugin" version "0.4.1"
}

repositories {
Expand Down
27 changes: 25 additions & 2 deletions examples/gradle-groovy-dsl/diktat-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
domainName: your.name.here
testDirs: test
disabledChapters: ""
kotlinVersion: "1.4.21"
kotlinVersion: 1.4
# Checks that the Class/Enum/Interface name does not match Pascal case
- name: CLASS_NAME_INCORRECT
enabled: true
Expand Down Expand Up @@ -181,6 +181,9 @@
# Checks that properties with comments are separated by a blank line
- name: BLANK_LINE_BETWEEN_PROPERTIES
enabled: true
# Checks top level order
- name: TOP_LEVEL_ORDER
enabled: true
# Checks that non-empty code blocks with braces follow the K&R style (1TBS or OTBS style)
- name: BRACES_BLOCK_STRUCTURE_ERROR
enabled: true
Expand Down Expand Up @@ -227,7 +230,27 @@
# If the number of parameters on one line is more than this threshold, all parameters will be placed on separate lines.
maxParametersInOneLine: 2
# 3 by default.
# maxCallsInOneLine: 3
maxCallsInOneLine: 3
# Checks trailing comma
- name: TRAILING_COMMA
enabled: true
configuration:
# VALUE_ARGUMENT
valueArgument: false
# VALUE_PARAMETER
valueParameter: false
# REFERENCE_EXPRESSION
indices: false
# WHEN_CONDITION_WITH_EXPRESSION
whenConditions: false
# STRING_TEMPLATE
collectionLiteral: false
# TYPE_PROJECTION
typeArgument: false
# TYPE_PARAMETER
typeParameter: false
# DESTRUCTURING_DECLARATION_ENTRY
destructuringDeclaration: false
# Checks that there are not too many consecutive spaces in line
- name: TOO_MANY_CONSECUTIVE_SPACES
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion examples/gradle-kotlin-dsl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("org.cqfn.diktat.diktat-gradle-plugin") version "0.4.0"
id("org.cqfn.diktat.diktat-gradle-plugin") version "0.4.1"
}

repositories {
Expand Down
27 changes: 25 additions & 2 deletions examples/gradle-kotlin-dsl/diktat-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
domainName: your.name.here
testDirs: test
disabledChapters: ""
kotlinVersion: "1.4.21"
kotlinVersion: 1.4
# Checks that the Class/Enum/Interface name does not match Pascal case
- name: CLASS_NAME_INCORRECT
enabled: true
Expand Down Expand Up @@ -181,6 +181,9 @@
# Checks that properties with comments are separated by a blank line
- name: BLANK_LINE_BETWEEN_PROPERTIES
enabled: true
# Checks top level order
- name: TOP_LEVEL_ORDER
enabled: true
# Checks that non-empty code blocks with braces follow the K&R style (1TBS or OTBS style)
- name: BRACES_BLOCK_STRUCTURE_ERROR
enabled: true
Expand Down Expand Up @@ -227,7 +230,27 @@
# If the number of parameters on one line is more than this threshold, all parameters will be placed on separate lines.
maxParametersInOneLine: 2
# 3 by default.
# maxCallsInOneLine: 3
maxCallsInOneLine: 3
# Checks trailing comma
- name: TRAILING_COMMA
enabled: true
configuration:
# VALUE_ARGUMENT
valueArgument: false
# VALUE_PARAMETER
valueParameter: false
# REFERENCE_EXPRESSION
indices: false
# WHEN_CONDITION_WITH_EXPRESSION
whenConditions: false
# STRING_TEMPLATE
collectionLiteral: false
# TYPE_PROJECTION
typeArgument: false
# TYPE_PARAMETER
typeParameter: false
# DESTRUCTURING_DECLARATION_ENTRY
destructuringDeclaration: false
# Checks that there are not too many consecutive spaces in line
- name: TOO_MANY_CONSECUTIVE_SPACES
enabled: true
Expand Down
27 changes: 25 additions & 2 deletions examples/maven/diktat-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
domainName: your.name.here
testDirs: test
disabledChapters: ""
kotlinVersion: "1.4.21"
kotlinVersion: 1.4
# Checks that the Class/Enum/Interface name does not match Pascal case
- name: CLASS_NAME_INCORRECT
enabled: true
Expand Down Expand Up @@ -181,6 +181,9 @@
# Checks that properties with comments are separated by a blank line
- name: BLANK_LINE_BETWEEN_PROPERTIES
enabled: true
# Checks top level order
- name: TOP_LEVEL_ORDER
enabled: true
# Checks that non-empty code blocks with braces follow the K&R style (1TBS or OTBS style)
- name: BRACES_BLOCK_STRUCTURE_ERROR
enabled: true
Expand Down Expand Up @@ -227,7 +230,27 @@
# If the number of parameters on one line is more than this threshold, all parameters will be placed on separate lines.
maxParametersInOneLine: 2
# 3 by default.
# maxCallsInOneLine: 3
maxCallsInOneLine: 3
# Checks trailing comma
- name: TRAILING_COMMA
enabled: true
configuration:
# VALUE_ARGUMENT
valueArgument: false
# VALUE_PARAMETER
valueParameter: false
# REFERENCE_EXPRESSION
indices: false
# WHEN_CONDITION_WITH_EXPRESSION
whenConditions: false
# STRING_TEMPLATE
collectionLiteral: false
# TYPE_PROJECTION
typeArgument: false
# TYPE_PARAMETER
typeParameter: false
# DESTRUCTURING_DECLARATION_ENTRY
destructuringDeclaration: false
# Checks that there are not too many consecutive spaces in line
- name: TOO_MANY_CONSECUTIVE_SPACES
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion examples/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<version>1.0.0-SNAPSHOT</version>

<properties>
<diktat.version>0.4.0</diktat.version>
<diktat.version>0.4.1</diktat.version>
</properties>

<build>
Expand Down
2 changes: 1 addition & 1 deletion info/buildSrc/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.4.1-SNAPSHOT
version=0.4.2-SNAPSHOT
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.cqfn.diktat</groupId>
<artifactId>diktat-parent</artifactId>
<version>0.4.1-SNAPSHOT</version>
<version>0.4.2-SNAPSHOT</version>
<packaging>pom</packaging>

<name>diktat</name>
Expand Down Expand Up @@ -50,7 +50,7 @@
<guava.version>30.0-jre</guava.version>
<slf4j.version>1.7.30</slf4j.version>
<commons-cli.version>1.4</commons-cli.version>
<diktat-check.version>0.4.0</diktat-check.version>
<diktat-check.version>0.4.1</diktat-check.version>
<kotlinpoet.version>1.7.1</kotlinpoet.version>
<detekt.version>1.15.0</detekt.version>
<dokka.version>1.4.20</dokka.version>
Expand Down

0 comments on commit dbf65c7

Please sign in to comment.