Skip to content

Commit

Permalink
Teach clang-format the right import statement order.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marstj committed Nov 15, 2022
1 parent 14fed44 commit 26aae41
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 26aae41

Please sign in to comment.