Synchronization with Detekt (Kotlin)

Detekt is a parser for Kotlin code. You can use Detekt in embedded mode.

Embedded analysis in Themis

To delegate to Themis the analysis of your Kotlin code at Detekt, you must first configure the embedded linters mode for your source. You must then add a sub-plugin for Detekt.

Themis uses the default configuration of Detekt in a file in Yaml format. You can edit the contents of this file at any time. The default content of the configuration file is available on this page.

In case you already have a configuration file on your source code repository, you can configure Themis to use this configuration. To do this, you must specify the combination of the following 2 parameters :

  • Use a configuration file on your repository (true / false) : Specify true to use your configuration file.
  • Relative path of the configuration file on your repository : Enter here the relative path on your source code repository of the configuration file. Example: src/detekt.json.

If you enable the use of your own configuration file, the parameter "Configuration file" is not taken into account in the analysis. It also does not reflect the contents of the configuration file on your source code repository.

Information and installed versions

Website : https://github.com/arturbosch/detekt/

Extensions of analyzed files : .kt

Version de Themis Version de Detekt
2.6.0 1.0.0.RC9.2
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.