Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objective-c: run clang-format on Objective-C files #54

Merged
merged 4 commits into from
Jun 7, 2019
Merged

Conversation

rebello95
Copy link
Contributor

  • 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

#53

Signed-off-by: Michael Rebello mrebello@lyft.com

Signed-off-by: Michael Rebello <mrebello@lyft.com>
Signed-off-by: Michael Rebello <mrebello@lyft.com>
Signed-off-by: Michael Rebello <mrebello@lyft.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! One small TODO request. Thanks.

@@ -1,8 +1,10 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

// NOLINT(namespace-envoy)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should fix the upstream formatter to make this configurable so we can ignore this check on particular paths. Can you add a TODO in check_format.sh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, done

Signed-off-by: Michael Rebello <mrebello@lyft.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rebello95 rebello95 merged commit ff7c72e into master Jun 7, 2019
@rebello95 rebello95 deleted the objc-clang branch June 7, 2019 21:41
@Augustyniak Augustyniak mentioned this pull request Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants