Skip to content

Don't check typedefs in impls in style checker#2824

Merged
bors merged 2 commits into
rust-lang:masterfrom
JohnTitor:style-check-fix
Jun 13, 2022
Merged

Don't check typedefs in impls in style checker#2824
bors merged 2 commits into
rust-lang:masterfrom
JohnTitor:style-check-fix

Conversation

@JohnTitor

Copy link
Copy Markdown
Member

Signed-off-by: Yuki Okushi jtitor@2k36.org

@rust-highfive

Copy link
Copy Markdown

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
@JohnTitor JohnTitor changed the title Don't check typedefs in impls Don't check typedefs in impls in style checker Jun 12, 2022
Comment thread ci/style.rs
Comment on lines -111 to -127
if line == "" {
if prev_blank {
err.error(path, i, "double blank line");
}
prev_blank = true;
} else {
prev_blank = false;
}
if line != line.trim_end() {
err.error(path, i, "trailing whitespace");
}
if line.contains("\t") {
err.error(path, i, "tab character");
}
if line.len() > 100 && !(line.contains("https://") || line.contains("http://")) {
err.error(path, i, "line longer than 100 chars");
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Removed some checks as rustfmt would validate them.

@asomers

asomers commented Jun 12, 2022

Copy link
Copy Markdown
Contributor

Thanks!

@Amanieu

Amanieu commented Jun 13, 2022

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jun 13, 2022

Copy link
Copy Markdown
Contributor

📌 Commit ba9676c has been approved by Amanieu

@bors

bors commented Jun 13, 2022

Copy link
Copy Markdown
Contributor

⌛ Testing commit ba9676c with merge eecb648...

@bors

bors commented Jun 13, 2022

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: Amanieu
Pushing eecb648 to master...

@bors bors merged commit eecb648 into rust-lang:master Jun 13, 2022
@JohnTitor JohnTitor deleted the style-check-fix branch June 13, 2022 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants