-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
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>
de43938
to
ba9676c
Compare
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"); | ||
} |
There was a problem hiding this comment.
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.
Thanks! |
@bors r+ |
📌 Commit ba9676c has been approved by |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13 |
Signed-off-by: Yuki Okushi jtitor@2k36.org