[Merged by Bors] - style: remove last isolated where#13202
Closed
[Merged by Bors] - style: remove last isolated where#13202
Conversation
mathlib-bors bot
pushed a commit
that referenced
this pull request
May 25, 2024
Discovered when tweaking the rewritten style linter in #13199.
Contributor
|
Pull request successfully merged into master. Build succeeded: |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discovered when tweaking the rewritten style linter in #13199.
Continuing the work started by @Komyyy.