Docs: change analysis docs structure

This commit is contained in:
Ilya Kirillov
2022-01-28 17:21:24 +01:00
parent d584cfc31d
commit 5e6827e65e
7 changed files with 4 additions and 4 deletions
@@ -0,0 +1,11 @@
# Analysis API Code Style
This is a code style for Analysis API modules which are located in [analysis directory](../../../analysis)
* Please, follow [official Kotlin code style](https://kotlinlang.org/docs/coding-conventions.html).
* IntelliJ IDEA is set up for these coding guidelines and the default formatter will help you a lot.
* Consider using introducing explicit lambda parameter instead of implicit `it` parameter when:
* The lambda is multi-line, so includes multiple statements
* The `it` parameter is used multiple times inside lambda
* Do not overuse `let`, `also`, `apply` and similar functions.
It seems cool to write a complex multiline function as a single expression but please, do not sacrifice code readability because of that.