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

Fix multiline boilerplates #1544

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

cblecker
Copy link
Contributor

Description of the change:
Go permits multiline, block-style comments. It's common for boilerplates to utilize these for licences (e.g. Apache-2.0's standard boilerplate).

This PR removes the line-by-line stripping of whitespace, and adds a test for it.

Motivation for the change:
Allow existing projects with compliant, multiline boilerplates to use them.

Go permits multiline, block-style comments. It's common for boilerplates
to utilize these for licences (e.g. Apache-2.0's standard boilerplate).

This PR removes the line-by-line stripping of whitespace, and adds a test for
it.
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 11, 2019
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

/lgtm

@cblecker thanks for the PR!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 11, 2019
@cblecker
Copy link
Contributor Author

@estroz Thanks for the review. Anything else required to merge?

@estroz
Copy link
Member

estroz commented Jun 13, 2019

@cblecker just waiting on more reviews.

/cc @joelanford @lilic @shawn-hurley @theishshah

Copy link
Member

@lilic lilic left a comment

Choose a reason for hiding this comment

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

Good to know, thanks for your PR!

lgtm

@lilic lilic merged commit ebf771e into operator-framework:master Jun 13, 2019
@cblecker cblecker deleted the fix-boilerplate-multiline branch June 13, 2019 07:38
estroz pushed a commit to estroz/operator-sdk that referenced this pull request Jul 17, 2019
Go permits multiline, block-style comments. It's common for boilerplates
to utilize these for licences (e.g. Apache-2.0's standard boilerplate).

This PR removes the line-by-line stripping of whitespace, and adds a test for
it.
estroz added a commit to estroz/operator-sdk that referenced this pull request Jul 17, 2019
estroz pushed a commit that referenced this pull request Jul 18, 2019
* Fix multiline boilerplates (#1544)

Go permits multiline, block-style comments. It's common for boilerplates
to utilize these for licences (e.g. Apache-2.0's standard boilerplate).

This PR removes the line-by-line stripping of whitespace, and adds a test for
it.

* CHANGELOG.md: add #1544
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants