Skip to content

Commit

Permalink
chore: make sure all text files end with a newline (#312)
Browse files Browse the repository at this point in the history
The [POSIX standard
says](https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline)
all text files should end with a newline.

Not that the standard matters that much, but git's diff output is a bit
nicer without the `\ No newline at end of file` warning, and some
command line tools work better if all lines terminate with a newline.
Similar for github's diff view.

If you are curious, you can use ripgrep (or a similar tool) to find all
offending files:

```bash
rg --files-with-matches --multiline '[^\n]\z'
```

Co-authored-by: Ming <[email protected]>
  • Loading branch information
matthiasgoergens and hero78119 authored Oct 4, 2024
1 parent e02c819 commit f526d5d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ceno_emul/tests/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
cd ceno_rt
cargo build --release --examples
cp ../target/riscv32im-unknown-none-elf/release/examples/ceno_rt_{mini,panic,mem,alloc} ../ceno_emul/tests/data/
```
```
2 changes: 1 addition & 1 deletion mpcs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ harness = false

[[bench]]
name = "utils"
harness = false
harness = false
2 changes: 1 addition & 1 deletion singer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ name = "add"
harness = false

[profile.bench]
opt-level = 0
opt-level = 0
2 changes: 1 addition & 1 deletion sumcheck/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ name = "devirgo_sumcheck"
harness = false

[features]
non_pow2_rayon_thread = [ ]
non_pow2_rayon_thread = [ ]
2 changes: 1 addition & 1 deletion transcript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ goldilocks.workspace = true
halo2curves.workspace = true
poseidon.workspace = true
rayon.workspace = true
serde.workspace = true
serde.workspace = true

0 comments on commit f526d5d

Please sign in to comment.