Skip to content

Commit 374f794

Browse files
author
Oleksandr Dzhychko
authored
Merge pull request #717 from modelix/MODELIX-793_Configure-the-IntelliJ-detekt-plugin-and-commit-the-configuration-files
chore: configure the detekt IntelliJ plugin
2 parents 48aa04b + 57e9a16 commit 374f794

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.idea/detekt.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,25 @@ added 72 packages, removed 98 packages, changed 203 packages, and audited 654 pa
3838
...
3939
```
4040

41+
### detekt
42+
43+
We use [detekt](https://detekt.dev/) as a Kotlin linter.
44+
detekt is integrated in the Gradle build process.
45+
Manually, it can be triggered with:
46+
47+
```console
48+
$ ./gradlew detektMain detektTest detektJsMain detektJsTest detektJvmMain detektJvmTest
49+
...
50+
```
51+
52+
The project contains a configuration for the [IntelliJ detekt plugin](https://plugins.jetbrains.com/plugin/10761-detekt).
53+
If you install this plugin, you should get detekt annotations inline in IntelliJ.
54+
Unfortunately, the plugin [does not support detekt rules requiring type resolution](https://github.com/detekt/detekt-intellij-plugin/issues/499).
55+
Therefore, some annotations can only be obtained by running detekt through Gradle.
56+
57+
detekt results are also reported on the GitHub project using GitHub's code scanning feature.
58+
In PRs, detekt finding will be provided as annotations on the PR.
59+
4160
# Authors
4261

4362
Development of modelix is supported by [itemis](https://itemis.com)

0 commit comments

Comments
 (0)