Skip to content

[Merged by Bors] - style: remove last isolated where#13202

Closed
grunweg wants to merge 1 commit intomasterfrom
MR-remove-isolated-where
Closed

[Merged by Bors] - style: remove last isolated where#13202
grunweg wants to merge 1 commit intomasterfrom
MR-remove-isolated-where

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented May 25, 2024

Discovered when tweaking the rewritten style linter in #13199.


Continuing the work started by @Komyyy.

Open in Gitpod

@grunweg grunweg added awaiting-review easy < 20s of review time. See the lifecycle page for guidelines. labels May 25, 2024
Copy link
Copy Markdown
Contributor

@dupuisf dupuisf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

bors r+

@ghost ghost 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
Discovered when tweaking the rewritten style linter in #13199.
@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 style: remove last isolated where [Merged by Bors] - style: remove last isolated where May 25, 2024
@mathlib-bors mathlib-bors bot closed this May 25, 2024
@mathlib-bors mathlib-bors bot deleted the MR-remove-isolated-where branch May 25, 2024 14:09
callesonne pushed a commit that referenced this pull request Jun 4, 2024
Discovered when tweaking the rewritten style linter in #13199.
js2357 pushed a commit that referenced this pull request Jun 18, 2024
Discovered when tweaking the rewritten style linter in #13199.
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.
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

easy < 20s of review time. See the lifecycle page for guidelines. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants