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

Match copyright templates with differing whitespace #160

Merged
merged 1 commit into from
Jul 26, 2019
Merged

Conversation

cottsay
Copy link
Contributor

@cottsay cottsay commented Jul 24, 2019

This change makes the template matching tolerant to more whitespace differences. In particular, it makes it tolerant in the presence of tabs, consecutive spaces (such as indentation) and EOL differences.

@cottsay cottsay added enhancement New feature or request in review Waiting for review (Kanban column) labels Jul 24, 2019
@cottsay cottsay self-assigned this Jul 24, 2019
Copy link
Contributor

@dirk-thomas dirk-thomas left a comment

Choose a reason for hiding this comment

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

LGTM with CI demonstrating it passes for the two intended input strings.

This change makes the template matching tolerant to more whitespace
differences. In particular, it makes it tolerant in the presence of
tabs, consecutive spaces (such as indentation) and EOL differences.

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay
Copy link
Contributor Author

cottsay commented Jul 25, 2019

I went ahead and added some tests to the ament_copyright package directly to show that this is working.

CI: Build Status

@cottsay cottsay changed the title Match templates which differ only by whitespace Match copyright templates which differ only by whitespace Jul 25, 2019
@cottsay cottsay changed the title Match copyright templates which differ only by whitespace Match copyright templates differing only by whitespace Jul 25, 2019
@cottsay cottsay changed the title Match copyright templates differing only by whitespace Match copyright templates with differing whitespace Jul 25, 2019
@cottsay
Copy link
Contributor Author

cottsay commented Jul 26, 2019

Build looks OK - no warnings related to ament_copyright. Thanks for the review.

@cottsay cottsay merged commit 3d1d667 into master Jul 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the whitespace branch July 26, 2019 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants