From 51500a30e8c97faa19b85d20f37653741d7dc5be Mon Sep 17 00:00:00 2001 From: Yigit Boyar Date: Sat, 13 Mar 2021 16:39:45 -0800 Subject: This PR integrates ktlint with the project It is a fork of what androidX does with minor modifications. There are 3 new tasks: rootProject:ktlintApplyToIdea -> Applied ktlint configuration to the current .idea project folder :ktlint -> Runs ktlint checks :ktlintFormat -> Fixes formatting for the project. Note that this may not be able to handle all violations. I've not modified the CI files to run this since it fails right now. One of the core maintaners should run the format tasks to come to a clean slate then we can add it to CI. I've not added a baseline file since they are very brittle. --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .editorconfig (limited to '.editorconfig') diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..09fdf0aa --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*.{kt,kts}] +indent_size=4 +insert_final_newline=true +max_line_length=120 +disabled_rules=no-wildcard-imports -- cgit v1.2.3