From ca4078250e977ece38db7ea1d93561557e6c5aa0 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 26 Oct 2018 15:10:46 -0400 Subject: [PATCH] [components] Add an .editorconfig file to fix ktlint If an .editorconfig file exists in any parent directory of the checkout directory, ktlint will fail because it uses those settings to determine what the indentation should be. This creates an .editorconfig that ktlint will "stop" at, effectively getting the .editorconfig defaults. It should only be necessary to add settings to this file if we want to override the defaults. --- mobile/android/android-components/.editorconfig | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mobile/android/android-components/.editorconfig diff --git a/mobile/android/android-components/.editorconfig b/mobile/android/android-components/.editorconfig new file mode 100644 index 000000000000..dfa6a72200e0 --- /dev/null +++ b/mobile/android/android-components/.editorconfig @@ -0,0 +1,8 @@ +# This is an .editorconfig that ktlint will "stop" at. + +# If an .editorconfig file exists in any parent directory of the checkout +# directory, ktlint will fail because it uses those settings to determine what +# the indentation should be. + +root = True +