Skip to content

Add style checks. #886

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 6 commits into from
Oct 6, 2020
Merged

Add style checks. #886

merged 6 commits into from
Oct 6, 2020

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Sep 15, 2020

This extends the stable-checker to do more style checks:

  • #![feature] nightly features.
  • CR linefeeds.
  • Tab characters.
  • Trailing whitespace.
  • Missing newline at end of file.
  • Non-md or html files.
  • Broken link references.
  • Indented code blocks (should use fenced code blocks).
  • Code blocks without a language.

And includes the associated fixes.

There is some risk this can add frustration to contributing, but I think it is worthwhile. The rust-lang/rust repository already has most of these checks, and I don't think it has been too bad there.

@ehuss ehuss mentioned this pull request Sep 15, 2020
Copy link
Contributor

@Havvy Havvy left a comment

Choose a reason for hiding this comment

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

I haven't done a proper review for this, but the code only affects management of this repo, none of the code could possibly affect anything else, and I trust @ehuss to have thought about this enough, I'm going to approve.

@Havvy Havvy merged commit 2a6a5ad into rust-lang:master Oct 6, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 14, 2020
Update books

## reference

5 commits in 56a13c082ee90736c08d6abdcd90462517b703d3..1b78182e71709169dc0f1c3acdc4541b6860e1c4
2020-09-14 23:20:16 -0700 to 2020-10-11 13:53:47 -0700
- Specify that SSE4.1 includes SSSE3 instead of SSE3 (rust-lang/reference#892)
- Fix mutable expressions that can be dereferenced (rust-lang/reference#890)
- Fix grammar in memory model (rust-lang/reference#889)
- Add style checks. (rust-lang/reference#886)
- Add description for LUB Coercion (rust-lang/reference#808)

## book

1 commits in cb28dee95e5e50b793e6ba9291c5d1568d3ad72e..451a1e30f2dd137aa04e142414eafb8d05f87f84
2020-09-09 10:06:00 -0500 to 2020-10-05 09:11:18 -0500
- clarify description of when ? can be used (rust-lang/book#2471)

## rust-by-example

1 commits in 7d3ff1c12db08a847a57a054be4a7951ce532d2d..152475937a8d8a1f508d8eeb57db79139bc803d9
2020-09-28 15:54:25 -0300 to 2020-10-09 09:29:50 -0300
- Add 1.45.0 cast documentation (rust-lang/rust-by-example#1384)

## embedded-book

2 commits in dd310616308e01f6cf227f46347b744aa56b77d9..79ab7776929c66db83203397958fa7037d5d9a30
2020-09-26 08:54:08 +0000 to 2020-10-12 08:00:05 +0000
- llvm-objdump: Use two hyphens in flags to objdump  (rust-embedded/book#270)
- Start/hardware: clarify which file needs tweaking  (rust-embedded/book#266)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants