mirror of
https://github.com/signalapp/Signal-iOS.git
synced 2025-12-05 01:10:41 +00:00
This should have no direct user impact. We currently have two ways of sorting `#import` and `#include` statements: 1. With our precommit script 2. With `clang-format` (via `git-clang-format`) It *looks* like we aren't using `clang-format` (because of the `SortIncludes: false` option in `.clang-format`) but we are, which you can see by running `clang-format --dump-config`. As a separate issue, it seems like we're not picking up the `clang-format` configuration file (`clang-format --style=file:.clang-format --dump-config` gives different results). I've run into situations where the two of them "fight", so I think the best thing to do is pick one. After some discussion, we decided to pick `clang-format`.
18 lines
392 B
YAML
18 lines
392 B
YAML
---
|
|
BasedOnStyle: WebKit
|
|
AllowShortEnumsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: false
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
ColumnLimit: 120
|
|
IndentCaseLabels: true
|
|
MaxEmptyLinesToKeep: 2
|
|
ObjCSpaceAfterProperty: true
|
|
ObjCSpaceBeforeProtocolList: true
|
|
PointerBindsToType: false
|
|
SpacesBeforeTrailingComments: 1
|
|
TabWidth: 8
|
|
UseTab: Never
|
|
SortIncludes: CaseSensitive
|
|
...
|