Skip to content

[Merged by Bors] - feat: lint on isolated where and leading by#13420

Closed
grunweg wants to merge 4 commits intomasterfrom
MR-lint-trailing-by-where
Closed

[Merged by Bors] - feat: lint on isolated where and leading by#13420
grunweg wants to merge 4 commits intomasterfrom
MR-lint-trailing-by-where

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented May 31, 2024

Extend the style linter with two tiny features:


Open in Gitpod

@grunweg grunweg added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) awaiting-review labels May 31, 2024
@grunweg grunweg force-pushed the MR-lint-trailing-by-where branch from 53d21be to 60baf6d Compare May 31, 2024 17:36
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jun 1, 2024
@grunweg grunweg force-pushed the MR-lint-trailing-by-where branch from d79a64f to ec2e6fd Compare June 7, 2024 21:39
@grunweg grunweg added the t-linter Linter label Jun 7, 2024
@grunweg grunweg changed the title chore: lint on isolated where and leading by feat: lint on isolated where and leading by Jun 7, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 7, 2024

PR summary a0b54d8996

Import changes

No significant changes to the import graph


Declarations diff

No declarations were harmed in the making of this PR! 🐙

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

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

@ghost ghost added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) and removed blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Jun 7, 2024
@robertylewis
Copy link
Copy Markdown
Member

This looks reasonable to me, thanks! Delegating in case there are any errors introduced since the last update.

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 19, 2024

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jun 19, 2024
@grunweg grunweg force-pushed the MR-lint-trailing-by-where branch from 380c92d to a0b54d8 Compare June 19, 2024 10:56
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jun 19, 2024

Thank you for the review! There was one new occurrence, which I have just auto-fixed.
bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jun 19, 2024
Extend the style linter with two tiny features:
- lint on "isolated where": all occurrences were already fixed in #12991 and #13202.
- lint on "leading by": if one line starts with `by ` but the previous line ends with `:=`, according to the style guide the `by` should move to the previous line. For now, we only lint if the `by` fits on the previous line (fixed in #13618 and predecessors): there about other 28 cases in mathlib which don't have an obvious fix.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 19, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: lint on isolated where and leading by [Merged by Bors] - feat: lint on isolated where and leading by Jun 19, 2024
@mathlib-bors mathlib-bors bot closed this Jun 19, 2024
@mathlib-bors mathlib-bors bot deleted the MR-lint-trailing-by-where branch June 19, 2024 11:58
AntoineChambert-Loir pushed a commit that referenced this pull request Jun 20, 2024
Extend the style linter with two tiny features:
- lint on "isolated where": all occurrences were already fixed in #12991 and #13202.
- lint on "leading by": if one line starts with `by ` but the previous line ends with `:=`, according to the style guide the `by` should move to the previous line. For now, we only lint if the `by` fits on the previous line (fixed in #13618 and predecessors): there about other 28 cases in mathlib which don't have an obvious fix.
grunweg added a commit that referenced this pull request Jun 20, 2024
Extend the style linter with two tiny features:
- lint on "isolated where": all occurrences were already fixed in #12991 and #13202.
- lint on "leading by": if one line starts with `by ` but the previous line ends with `:=`, according to the style guide the `by` should move to the previous line. For now, we only lint if the `by` fits on the previous line (fixed in #13618 and predecessors): there about other 28 cases in mathlib which don't have an obvious fix.
kbuzzard pushed a commit that referenced this pull request Jun 26, 2024
Extend the style linter with two tiny features:
- lint on "isolated where": all occurrences were already fixed in #12991 and #13202.
- lint on "leading by": if one line starts with `by ` but the previous line ends with `:=`, according to the style guide the `by` should move to the previous line. For now, we only lint if the `by` fits on the previous line (fixed in #13618 and predecessors): there about other 28 cases in mathlib which don't have an obvious fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants