Skip to content

[Merged by Bors] - refactor: improvements to lint_style#14676

Closed
grunweg wants to merge 8 commits intomasterfrom
MR-refactor-lint-style
Closed

[Merged by Bors] - refactor: improvements to lint_style#14676
grunweg wants to merge 8 commits intomasterfrom
MR-refactor-lint-style

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Jul 12, 2024

To prepare for #14273; pulled out for easy of reviewing.
Commits can be reviewed individually.


Open in Gitpod

grunweg added 4 commits July 12, 2024 13:35
it forgot to mention style exceptions files
When updating style exceptions, we want to batch all modules to lint:
this prepares the code accordingly, and is also slightly cleaner as
it moves the parsing of import-only files to the script itself.
This will be useful for re-generating the style exceptions file.

chore: also parse the particular error message with the copyright,
since we can (and have these in the nolints file).

Also avoid normalising the current size for file length errors.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 12, 2024

PR summary 009289ca5b

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ lintModules
- lintAllFiles

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

@grunweg grunweg added the t-linter Linter label Jul 12, 2024
It's debatable whether we want the normalisation at all; but let's rather use
none than an empty string (which prints the wrong out).
and the number of characters in the long line warning.

Both information is necessary for regenerating the style exceptions file.
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Jul 13, 2024

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Jul 13, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jul 13, 2024
To prepare for #14273; pulled out for easy of reviewing.
Commits can be reviewed individually.



Co-authored-by: Kim Morrison <kim@tqft.net>
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jul 13, 2024

Thank you for the fast review!

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 13, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor: improvements to lint_style [Merged by Bors] - refactor: improvements to lint_style Jul 13, 2024
@mathlib-bors mathlib-bors bot closed this Jul 13, 2024
@mathlib-bors mathlib-bors bot deleted the MR-refactor-lint-style branch July 13, 2024 14:36
@adomani adomani mentioned this pull request Aug 1, 2024
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