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

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

Merged
merged 2 commits into from
Jun 13, 2022

Conversation

JohnTitor
Copy link
Member

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

@rust-highfive
Copy link

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 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
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
Copy link
Contributor

asomers commented Jun 12, 2022

Thanks!

@Amanieu
Copy link
Member

Amanieu commented Jun 13, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Jun 13, 2022

📌 Commit ba9676c has been approved by Amanieu

@bors
Copy link
Contributor

bors commented Jun 13, 2022

⌛ Testing commit ba9676c with merge eecb648...

@bors
Copy link
Contributor

bors commented Jun 13, 2022

☀️ 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