You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add kotlin linter plugin to and update all the code
This code introduces a koltin linter, in particular a plugin called kotlinter, and it is available on https://github.com/jeremymailen/kotlinter-gradle
This commit adds the support in all the app and also in the Github cli, so now all the commit need to pass also the kotlin format check.
To make easy the support of the guideline a .editorconfig is added but an additional configuration of Android studio is needed.
The Android Studio configuration that is needed is
Settings -> Editor -> CodeStyle -> Kotlin -> import -> enable Use single name import.
Signed-off-by: Vincenzo Palazzo <[email protected]>
# Defines the imports layout. The layout can be composed by the following symbols:
12
+
# "*" - wildcard. There must be at least one entry of a single wildcard to match all other imports. Matches anything after a specified symbol/import as well.
13
+
# "|" - blank line. Supports only single blank lines between imports. No blank line is allowed in the beginning or end of the layout.
14
+
# "^" - alias import, e.g. "^android.*" will match all android alias imports, "^" will match all other alias imports.
15
+
# import paths - these can be full paths, e.g. "java.util.List.*" as well as wildcard paths, e.g. "kotlin.**"
16
+
# Examples (we use ij_kotlin_imports_layout to set an imports layout for both ktlint and IDEA via a single property):
17
+
# ij_kotlin_imports_layout=* # alphabetical with capital letters before lower case letters (e.g. Z before a), no blank lines
18
+
# ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,^ # default IntelliJ IDEA style, same as alphabetical, but with "java", "javax", "kotlin" and alias imports in the end of the imports list
0 commit comments