Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Do not trim spaces at the beginning in copyright header comment #285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akihikodaki
Copy link

The copyright header rule trims spaces at the begginings of code comment lines. However, it does not perform the same operation for raw texts. That difference makes the rule think a code comment line and a raw text line different even if they are same. Such a raw text including a line beginning with spaces include Apache-2.0's copyright notice.

This change fixes the problem by removing the code trimming spaces. Additionally, this change takes spaces added when introducing new copyright headers into account.

The copyright header rule trims spaces at the begginings of code comment
lines. However, it does not perform the same operation for raw texts. That
difference makes the rule think a code comment line and a raw text line
different even if they are same. Such a raw text including a line
beginning with spaces include Apache-2.0's copyright notice.

This change fixes the problem by removing the code trimming spaces.
Additionally, this change takes spaces added when introducing new copyright
headers into account.
Base automatically changed from master to main March 11, 2021 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant