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

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

Closed
wants to merge 8 commits into from

Conversation

grunweg
Copy link
Collaborator

@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.
Copy link

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
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 <[email protected]>
@grunweg
Copy link
Collaborator Author

grunweg commented Jul 13, 2024

Thank you for the fast review!

@mathlib-bors
Copy link
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