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

Kotlin version #730

Merged
merged 17 commits into from
Feb 1, 2021
1 change: 1 addition & 0 deletions diktat-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# put your package name here - it will be autofixed and checked
domainName: org.cqfn.diktat
# testDirs: test
kentr0w marked this conversation as resolved.
Show resolved Hide resolved
kotlinVerstion: ""
kentr0w marked this conversation as resolved.
Show resolved Hide resolved
# Checks that the Class/Enum/Interface name does not match Pascal case
- name: CLASS_NAME_INCORRECT
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ data class CommonConfiguration(private val configuration: Map<String, String>?)
configuration?.get("domainName")
}

/**
* Get version of kotlin from configuration
*/
val kotlinVersion: String? by lazy {
petertrr marked this conversation as resolved.
Show resolved Hide resolved
configuration?.get("kotlinVersion")
}

/**
* False if configuration has been read from config file, true if defaults are used
*/
Expand Down
1 change: 1 addition & 0 deletions diktat-rules/src/main/resources/diktat-analysis-huawei.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# put your package name here - it will be autofixed and checked
domainName: com.huawei
# testDirs: test
kotlinVerstion: ""
# Checks that the Class/Enum/Interface name does not match Pascal case
- name: CLASS_NAME_INCORRECT
enabled: true
Expand Down
1 change: 1 addition & 0 deletions diktat-rules/src/main/resources/diktat-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# put your package name here - it will be autofixed and checked
domainName: your.name.here
testDirs: test
kotlinVerstion: ""
# Checks that the Class/Enum/Interface name does not match Pascal case
- name: CLASS_NAME_INCORRECT
enabled: true
Expand Down