-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-1722: [C++] Add linting script to find C++/CLI incompatibilities #2225
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
Conversation
…ze they are being installed
|
I opened https://issues.apache.org/jira/browse/ARROW-2810 -- I was surprised to find Plasma installs its generated Flatbuffers files |
Codecov Report
@@ Coverage Diff @@
## master #2225 +/- ##
==========================================
+ Coverage 84.1% 84.14% +0.03%
==========================================
Files 288 288
Lines 43865 43933 +68
==========================================
+ Hits 36892 36966 +74
+ Misses 6942 6940 -2
+ Partials 31 27 -4
Continue to review full report at Codecov.
|
xhochy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except a small comment
cpp/build-support/lint_cpp_cli.py
Outdated
| exclude = False | ||
| for exclusion in EXCLUSIONS: | ||
| if exclusion in full_path: | ||
| # print('Skipping excluded header: {0}'.format(filename)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove or replace with logger.debug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
kou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
I'll merge this.
| arguments = parser.parse_args() | ||
|
|
||
|
|
||
| _STRIP_COMMENT_REGEX = re.compile('(.+)?(?=//)') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'(.+?)?(?=//)' will be better for a // b // c case but it's too trivial. We will never write such code :-)
This also fixes some issues that the script found