Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 1abd329

Browse files
committed
Check formatting in CI
1 parent bf44672 commit 1abd329

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ jobs:
6060
- run: cargo test -v --manifest-path=rls-span/Cargo.toml
6161
- run: cargo test -v --manifest-path=rls-vfs/Cargo.toml
6262

63+
style:
64+
name: Check formatting
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v2
68+
- run: cargo +stable fmt --manifest-path=Cargo.toml -- --check
69+
- run: cargo +stable fmt --manifest-path=rls-analysis/Cargo.toml -- --check
70+
- run: cargo +stable fmt --manifest-path=rls-data/Cargo.toml -- --check
71+
- run: cargo +stable fmt --manifest-path=rls-ipc/Cargo.toml -- --check
72+
- run: cargo +stable fmt --manifest-path=rls-rustc/Cargo.toml -- --check
73+
- run: cargo +stable fmt --manifest-path=rls-span/Cargo.toml -- --check
74+
- run: cargo +stable fmt --manifest-path=rls-vfs/Cargo.toml -- --check
75+
6376
# https://forge.rust-lang.org/infra/docs/bors.html#adding-a-new-repository-to-bors
6477
build_result:
6578
name: bors build finished

rustfmt.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
use_field_init_shorthand = true
2-
condense_wildcard_suffixes = true
32
use_small_heuristics = "Max"

0 commit comments

Comments
 (0)