Skip to content

Commit 267abb2

Browse files
authored
Merge pull request #9309 from cakebaker/bump_markdownlint_cli2_action
Bump `markdownlint_cli2_action` & fix warnings
2 parents 29ec8f3 + e82cc75 commit 267abb2

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

.github/workflows/CICD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
shell: bash
150150
run: |
151151
RUSTDOCFLAGS="-Dwarnings" cargo doc ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-deps --workspace --document-private-items
152-
- uses: DavidAnson/markdownlint-cli2-action@v20
152+
- uses: DavidAnson/markdownlint-cli2-action@v21
153153
with:
154154
fix: "true"
155155
globs: |

docs/src/platforms.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Platform support
22

3-
<!-- markdownlint-disable MD033 -->
3+
<!-- markdownlint-disable MD033 MD060 -->
44

55
uutils aims to be as "universal" as possible, meaning that we try to support
66
many platforms. However, it is infeasible for us to guarantee that every
@@ -19,13 +19,13 @@ platform support, with different guarantees. We support two tiers of platforms:
1919

2020
The platforms in tier 1 and the platforms that we test in CI are listed below.
2121

22-
| Operating system | Tested targets |
23-
| ---------------- | -------------- |
22+
| Operating system | Tested targets |
23+
| ---------------- | ------------------------ |
2424
| **Linux** | `x86_64-unknown-linux-gnu` <br> `x86_64-unknown-linux-musl` <br> `arm-unknown-linux-gnueabihf` <br> `i686-unknown-linux-gnu` <br> `aarch64-unknown-linux-gnu` |
25-
| **macOS** | `x86_64-apple-darwin` |
25+
| **macOS** | `x86_64-apple-darwin` |
2626
| **Windows** | `i686-pc-windows-msvc` <br> `x86_64-pc-windows-gnu` <br> `x86_64-pc-windows-msvc` |
2727
| **FreeBSD** | `x86_64-unknown-freebsd` |
28-
| **Android** | `i686-linux-android` |
28+
| **Android** | `i686-linux-android` |
2929

3030
The platforms in tier 2 are more vague, but include:
3131

src/uu/join/BENCHMARKING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
The amount of time spent in which part of the code can vary depending on the files being joined and the flags used.
88
A benchmark with `-j` and `-i` shows the following time:
99

10-
| Function/Method | Fraction of Samples | Why? |
11-
| ---------------- | ------------------- | ---- |
12-
| `Line::new` | 27% | Linear search for field separators, plus some vector operations. |
13-
| `read_until` | 22% | Mostly libc reading file contents, with a few vector operations to represent them. |
14-
| `Input::compare` | 20% | ~2/3 making the keys lowercase, ~1/3 comparing them. |
15-
| `print_fields` | 11% | Writing to and flushing the buffer. |
16-
| Other | 20% | |
17-
| libc | 25% | I/O and memory allocation. |
10+
| Function/Method | Fraction of Samples | Why? |
11+
| ---------------- | ------------------- | ---------------------------------------------------------------------------------- |
12+
| `Line::new` | 27% | Linear search for field separators, plus some vector operations. |
13+
| `read_until` | 22% | Mostly libc reading file contents, with a few vector operations to represent them. |
14+
| `Input::compare` | 20% | ~2/3 making the keys lowercase, ~1/3 comparing them. |
15+
| `print_fields` | 11% | Writing to and flushing the buffer. |
16+
| Other | 20% | |
17+
| libc | 25% | I/O and memory allocation. |
1818

1919
More detailed profiles can be obtained via [flame graphs](https://github.com/flamegraph-rs/flamegraph):
2020

src/uu/wc/BENCHMARKING.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ suitable, and that if a file is given as its input directly (as in
2929
### Counting lines and UTF-8 characters
3030

3131
If the flags set are a subset of `-clm` then the input doesn't have to be decoded. The
32-
input is read in chunks and the `bytecount` crate is used to count the newlines (`-l` flag)
32+
input is read in chunks and the `bytecount` crate is used to count the newlines (`-l` flag)
3333
and/or UTF-8 characters (`-m` flag).
3434

3535
It's useful to vary the line length in the input. GNU wc seems particularly
@@ -83,16 +83,16 @@ performance. For example, `hyperfine 'wc somefile' 'uuwc somefile'`.
8383

8484
If you want to get fancy and exhaustive, generate a table:
8585

86-
| | moby64.txt | odyssey256.txt | 25Mshortlines | /usr/bin/docker |
87-
|------------------------|--------------|------------------|-----------------|-------------------|
88-
| `wc <FILE>` | 1.3965 | 1.6182 | 5.2967 | 2.2294 |
89-
| `wc -c <FILE>` | 0.8134 | 1.2774 | 0.7732 | 0.9106 |
86+
| | moby64.txt | odyssey256.txt | 25Mshortlines | /usr/bin/docker |
87+
|-------------------------|--------------|------------------|-----------------|-------------------|
88+
| `wc <FILE>` | 1.3965 | 1.6182 | 5.2967 | 2.2294 |
89+
| `wc -c <FILE>` | 0.8134 | 1.2774 | 0.7732 | 0.9106 |
9090
| `uucat <FILE> \| wc -c` | 2.7760 | 2.5565 | 2.3769 | 2.3982 |
91-
| `wc -l <FILE>` | 1.1441 | 1.2854 | 2.9681 | 1.1493 |
92-
| `wc -L <FILE>` | 2.1087 | 1.2551 | 5.4577 | 2.1490 |
93-
| `wc -m <FILE>` | 2.7272 | 2.1704 | 7.3371 | 3.4347 |
94-
| `wc -w <FILE>` | 1.9007 | 1.5206 | 4.7851 | 2.8529 |
95-
| `wc -lwcmL <FILE>` | 1.1687 | 0.9169 | 4.4092 | 2.0663 |
91+
| `wc -l <FILE>` | 1.1441 | 1.2854 | 2.9681 | 1.1493 |
92+
| `wc -L <FILE>` | 2.1087 | 1.2551 | 5.4577 | 2.1490 |
93+
| `wc -m <FILE>` | 2.7272 | 2.1704 | 7.3371 | 3.4347 |
94+
| `wc -w <FILE>` | 1.9007 | 1.5206 | 4.7851 | 2.8529 |
95+
| `wc -lwcmL <FILE>` | 1.1687 | 0.9169 | 4.4092 | 2.0663 |
9696

9797
Beware that:
9898

0 commit comments

Comments
 (0)