Skip to content

[Merged by Bors] - chore: normalise copyright headers#13212

Closed
grunweg wants to merge 3 commits intomasterfrom
MR-normalise-copyright-headers
Closed

[Merged by Bors] - chore: normalise copyright headers#13212
grunweg wants to merge 3 commits intomasterfrom
MR-normalise-copyright-headers

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented May 25, 2024

Re-implementing the copyright header linter in #13199, I made the checker stricter in a few places. This was not intentional, but happened since I wasn't aiming at bug-for-bug compatibility: the old algorithm feels somewhat complicated for me.

This led me to perform a few normalisations on the existing copyright headers: let me know if these are desired or not

  • normalise the copyright symbol in the first line (a few files had a different one)
  • add a dot in before the "All rights reserved" (again, only in a few files)
  • four manual tweaks

Open in Gitpod

grunweg added 3 commits May 25, 2024 18:35
… we want

Implementing a stricter linter exposed these, so why not just fix them?
I don't care which one is used; make them all equal makes linting easier
@jcommelin
Copy link
Copy Markdown
Member

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels May 25, 2024
mathlib-bors bot pushed a commit that referenced this pull request May 25, 2024
Re-implementing the copyright header linter in #13199, I made the checker stricter in a few places. This was not intentional, but happened since I wasn't aiming at bug-for-bug compatibility: the old algorithm feels somewhat complicated for me.

This led me to perform a few normalisations on the existing copyright headers: let me know if these are desired or not
- normalise the copyright symbol in the first line (a few files had a different one)
- add a dot in before the "All rights reserved" (again, only a few different ones)
- three manual tweaks
@grunweg grunweg changed the title RFC: normalise copyright headers chore: normalise copyright headers May 25, 2024
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented May 25, 2024

Thank you for the fast review!

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 25, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: normalise copyright headers [Merged by Bors] - chore: normalise copyright headers May 25, 2024
@mathlib-bors mathlib-bors bot closed this May 25, 2024
@mathlib-bors mathlib-bors bot deleted the MR-normalise-copyright-headers branch May 25, 2024 21:12
callesonne pushed a commit that referenced this pull request Jun 4, 2024
Re-implementing the copyright header linter in #13199, I made the checker stricter in a few places. This was not intentional, but happened since I wasn't aiming at bug-for-bug compatibility: the old algorithm feels somewhat complicated for me.

This led me to perform a few normalisations on the existing copyright headers: let me know if these are desired or not
- normalise the copyright symbol in the first line (a few files had a different one)
- add a dot in before the "All rights reserved" (again, only a few different ones)
- three manual tweaks
js2357 pushed a commit that referenced this pull request Jun 18, 2024
Re-implementing the copyright header linter in #13199, I made the checker stricter in a few places. This was not intentional, but happened since I wasn't aiming at bug-for-bug compatibility: the old algorithm feels somewhat complicated for me.

This led me to perform a few normalisations on the existing copyright headers: let me know if these are desired or not
- normalise the copyright symbol in the first line (a few files had a different one)
- add a dot in before the "All rights reserved" (again, only a few different ones)
- three manual tweaks
mathlib-bors bot pushed a commit that referenced this pull request Jun 23, 2024
This is one in a series of PRs rewriting most checks from `lint-style.py` in Lean.
This PR moves the check for copyright headers and authors: the check has been rewritten anew (and is hopefully simpler to understand now); this has made it stricter in various places. The necessary adjustments have been made in #13212 and #13247.

This PR also adds a `nolints` file for text-based linters.
kbuzzard pushed a commit that referenced this pull request Jun 26, 2024
This is one in a series of PRs rewriting most checks from `lint-style.py` in Lean.
This PR moves the check for copyright headers and authors: the check has been rewritten anew (and is hopefully simpler to understand now); this has made it stricter in various places. The necessary adjustments have been made in #13212 and #13247.

This PR also adds a `nolints` file for text-based linters.
dagurtomas pushed a commit that referenced this pull request Jul 2, 2024
This is one in a series of PRs rewriting most checks from `lint-style.py` in Lean.
This PR moves the check for copyright headers and authors: the check has been rewritten anew (and is hopefully simpler to understand now); this has made it stricter in various places. The necessary adjustments have been made in #13212 and #13247.

This PR also adds a `nolints` file for text-based linters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants