762 B
762 B
Analysis API Code Style
This is a code style for Analysis API modules which are located in analysis directory
- Please, follow official Kotlin code style.
- 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
itparameter when:- The lambda is multi-line, so includes multiple statements
- The
itparameter is used multiple times inside lambda
- Do not overuse
let,also,applyand 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.