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

tools: add namespace_check_excluded_paths arg to formatter #7211

Merged

Conversation

rebello95
Copy link
Contributor

@rebello95 rebello95 commented Jun 7, 2019

Adds a namespace_check_excluded_paths argument to the check_format.py script which allows for specifying file paths to ignore from the namespace check.

This is useful for running the formatter against a file or folder that doesn't require namespaces in order to avoid having to add NOLINT(namespace) to each file.

Signed-off-by: Michael Rebello [email protected]

Risk Level: None
Testing: Tested locally

rebello95 added 2 commits June 7, 2019 15:27
Adds a `namespace_check_excluded_paths` argument to the `check_format.py` script which allows for specifying file paths to ignore from the namespace check.

This is useful for running the formatter against a file or folder that doesn't require namespaces in order to avoid having to add `NOLINT(namespace)` to each file.

Signed-off-by: Michael Rebello <[email protected]>
Signed-off-by: Michael Rebello <[email protected]>
rebello95 added a commit to envoyproxy/envoy-mobile that referenced this pull request Jun 7, 2019
`clang-format` can be used for auto-formatting Java files the same way it is for Objective-C and C++.

2 spaces were selected for spacing to maintain parity with upstream.

Depends on:
envoyproxy/envoy#7210
envoyproxy/envoy#7211

Signed-off-by: Michael Rebello <[email protected]>
@lizan lizan requested a review from jmarantz June 8, 2019 06:12
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!

@mattklein123 mattklein123 merged commit 2a59bb3 into envoyproxy:master Jun 8, 2019
@rebello95 rebello95 deleted the namespace_check_excluded_paths branch June 8, 2019 21:05
rebello95 added a commit to envoyproxy/envoy-mobile that referenced this pull request Jun 10, 2019
`clang-format` can be used for auto-formatting Java files the same way it is for Objective-C and C++.

2 spaces were selected for spacing to maintain parity with upstream.

Depends on:
envoyproxy/envoy#7210
envoyproxy/envoy#7211

Signed-off-by: Michael Rebello <[email protected]>
rebello95 added a commit to envoyproxy/envoy-mobile that referenced this pull request Jun 10, 2019
`clang-format` can be used for auto-formatting Java files the same way it is for Objective-C and C++.

2 spaces were selected for spacing to maintain parity with upstream.

Depends on:
envoyproxy/envoy#7210
envoyproxy/envoy#7211

Signed-off-by: Michael Rebello <[email protected]>

update envoy sha

Signed-off-by: Michael Rebello <[email protected]>

reformat after rebasing

Signed-off-by: Michael Rebello <[email protected]>
rebello95 added a commit to envoyproxy/envoy-mobile that referenced this pull request Jun 10, 2019
`clang-format` can be used for auto-formatting Java files the same way it is for Objective-C and C++.

2 spaces were selected for spacing to maintain parity with upstream.

Depends on:
envoyproxy/envoy#7210
envoyproxy/envoy#7211

#55

Signed-off-by: Michael Rebello <[email protected]>
jpsim pushed a commit that referenced this pull request Nov 28, 2022
`clang-format` can be used for auto-formatting Java files the same way it is for Objective-C and C++.

2 spaces were selected for spacing to maintain parity with upstream.

Depends on:
#7210
#7211

envoyproxy/envoy-mobile#55

Signed-off-by: Michael Rebello <[email protected]>
Signed-off-by: JP Simard <[email protected]>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
`clang-format` can be used for auto-formatting Java files the same way it is for Objective-C and C++.

2 spaces were selected for spacing to maintain parity with upstream.

Depends on:
#7210
#7211

envoyproxy/envoy-mobile#55

Signed-off-by: Michael Rebello <[email protected]>
Signed-off-by: JP Simard <[email protected]>
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.

3 participants