-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
objective-c: run clang-format on Objective-C files (#54)
- Replace the `.clang-format` symlink to upstream Envoy with a custom file for this repository - Rules in this `.clang-format` file mirror upstream and add Objective-C rules. 2 spaces were selected in order to match upstream's C++ formatting - Update the format check script to ignore `Envoy.framework` and start linting Objective-C - Run the formatter against Objective-C files envoyproxy/envoy-mobile#53 Signed-off-by: Michael Rebello <mrebello@lyft.com> Signed-off-by: JP Simard <jp@jpsim.com>
- Loading branch information
Showing
5 changed files
with
109 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
Language: Cpp | ||
AccessModifierOffset: -2 | ||
ColumnLimit: 100 | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
SortIncludes: false | ||
... | ||
|
||
--- | ||
Language: ObjC | ||
AccessModifierOffset: -2 | ||
ColumnLimit: 100 | ||
DerivePointerAlignment: false | ||
IndentWidth: 2 | ||
ObjCBlockIndentWidth: 2 | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: true | ||
PointerAlignment: Left | ||
SortIncludes: false | ||
... | ||
|
||
--- | ||
Language: Proto | ||
ColumnLimit: 100 | ||
SpacesInContainerLiterals: false | ||
AllowShortFunctionsOnASingleLine: false | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
// NOLINT(namespace-envoy) | ||
|
||
@interface AppDelegate : UIResponder <UIApplicationDelegate> | ||
|
||
@property (strong, nonatomic) UIWindow *window; | ||
@property (strong, nonatomic) UIWindow* window; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface ViewController: UITableViewController | ||
// NOLINT(namespace-envoy) | ||
|
||
@interface ViewController : UITableViewController | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters