Skip to content

Commit 458cf05

Browse files
committed
reformat clippy.ymk and clippy_bors.yml
1 parent fc40d1b commit 458cf05

File tree

2 files changed

+260
-254
lines changed

2 files changed

+260
-254
lines changed

.github/workflows/clippy.yml

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ on:
88
- try
99
# Don't run Clippy tests, when only textfiles were modified
1010
paths-ignore:
11-
- 'COPYRIGHT'
12-
- 'LICENSE-*'
13-
- '**.md'
14-
- '**.txt'
11+
- "COPYRIGHT"
12+
- "LICENSE-*"
13+
- "**.md"
14+
- "**.txt"
1515
pull_request:
1616
# Don't run Clippy tests, when only textfiles were modified
1717
paths-ignore:
18-
- 'COPYRIGHT'
19-
- 'LICENSE-*'
20-
- '**.md'
21-
- '**.txt'
18+
- "COPYRIGHT"
19+
- "LICENSE-*"
20+
- "**.md"
21+
- "**.txt"
2222

2323
env:
2424
RUST_BACKTRACE: 1
25-
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
25+
CARGO_TARGET_DIR: "${{ github.workspace }}/target"
2626
NO_FMT_TEST: 1
2727

2828
jobs:
@@ -31,57 +31,57 @@ jobs:
3131
runs-on: ubuntu-latest
3232

3333
steps:
34-
# Setup
35-
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
36-
with:
37-
github_token: "${{ secrets.github_token }}"
38-
39-
- name: Checkout
40-
uses: actions/[email protected]
41-
42-
- name: Install toolchain
43-
run: rustup show active-toolchain
44-
45-
# Run
46-
- name: Set LD_LIBRARY_PATH (Linux)
47-
run: |
48-
SYSROOT=$(rustc --print sysroot)
49-
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
50-
51-
- name: Build
52-
run: cargo build --features deny-warnings,internal-lints
53-
54-
- name: Test
55-
run: cargo test --features deny-warnings,internal-lints
56-
57-
- name: Test clippy_lints
58-
run: cargo test --features deny-warnings,internal-lints
59-
working-directory: clippy_lints
60-
61-
- name: Test rustc_tools_util
62-
run: cargo test --features deny-warnings
63-
working-directory: rustc_tools_util
64-
65-
- name: Test clippy_dev
66-
run: cargo test --features deny-warnings
67-
working-directory: clippy_dev
68-
69-
- name: Test cargo-clippy
70-
run: ../target/debug/cargo-clippy
71-
working-directory: clippy_workspace_tests
72-
73-
- name: Test cargo-clippy --fix
74-
run: ../target/debug/cargo-clippy clippy --fix -Zunstable-options
75-
working-directory: clippy_workspace_tests
76-
77-
- name: Test clippy-driver
78-
run: bash .github/driver.sh
79-
env:
80-
OS: ${{ runner.os }}
81-
82-
- name: Test cargo dev new lint
83-
run: |
84-
cargo dev new_lint --name new_early_pass --pass early
85-
cargo dev new_lint --name new_late_pass --pass late
86-
cargo check
87-
git reset --hard HEAD
34+
# Setup
35+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
36+
with:
37+
github_token: "${{ secrets.github_token }}"
38+
39+
- name: Checkout
40+
uses: actions/[email protected]
41+
42+
- name: Install toolchain
43+
run: rustup show active-toolchain
44+
45+
# Run
46+
- name: Set LD_LIBRARY_PATH (Linux)
47+
run: |
48+
SYSROOT=$(rustc --print sysroot)
49+
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
50+
51+
- name: Build
52+
run: cargo build --features deny-warnings,internal-lints
53+
54+
- name: Test
55+
run: cargo test --features deny-warnings,internal-lints
56+
57+
- name: Test clippy_lints
58+
run: cargo test --features deny-warnings,internal-lints
59+
working-directory: clippy_lints
60+
61+
- name: Test rustc_tools_util
62+
run: cargo test --features deny-warnings
63+
working-directory: rustc_tools_util
64+
65+
- name: Test clippy_dev
66+
run: cargo test --features deny-warnings
67+
working-directory: clippy_dev
68+
69+
- name: Test cargo-clippy
70+
run: ../target/debug/cargo-clippy
71+
working-directory: clippy_workspace_tests
72+
73+
- name: Test cargo-clippy --fix
74+
run: ../target/debug/cargo-clippy clippy --fix -Zunstable-options
75+
working-directory: clippy_workspace_tests
76+
77+
- name: Test clippy-driver
78+
run: bash .github/driver.sh
79+
env:
80+
OS: ${{ runner.os }}
81+
82+
- name: Test cargo dev new lint
83+
run: |
84+
cargo dev new_lint --name new_early_pass --pass early
85+
cargo dev new_lint --name new_late_pass --pass late
86+
cargo check
87+
git reset --hard HEAD

0 commit comments

Comments
 (0)