diff options
author | 2022-11-08 21:05:31 +0000 | |
---|---|---|
committer | 2022-11-15 16:18:11 +0000 | |
commit | 26aae41141f8b81474d2a42c28ae5543d8aaa30f (patch) | |
tree | 36b333ac26b390c61843bbeb6d1ea896b6374ecc | |
parent | 14fed442be10fa2a1d26397edac060b935e52b79 (diff) |
Teach clang-format the right import statement order.
Taken from
https://source.android.com/docs/setup/contribute/code-style#order-import-statements.
#codehealth
Test: clang-format on http://ag/20333208
Change-Id: I1378293bbc0a6b7a3482f9bd0beb71f95e11809d
-rw-r--r-- | .clang-format | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 03af56d64062..d60d33c08f3f 100644 --- a/.clang-format +++ b/.clang-format @@ -9,5 +9,17 @@ CommentPragmas: NOLINT:.* ConstructorInitializerIndentWidth: 6 ContinuationIndentWidth: 8 IndentWidth: 4 +JavaImportGroups: +- android +- androidx +- com.android +- dalvik +- libcore +- com +- junit +- net +- org +- java +- javax PenaltyBreakBeforeFirstCallParameter: 100000 SpacesBeforeTrailingComments: 1 |