Skip to content

Commit

Permalink
rustfmt.toml: ignore code formatting checks of the autogenerated models
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelnikonorov committed Jun 24, 2024
1 parent a1cd3bf commit 84150ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,8 @@ jobs:
- name: Format
run: |
. $HOME/.cargo/env
cargo fmt
# rustup install nightly – fails for some reason
# rustup default nightly
cargo fmt -- ./lib/serviceinfo/models # workaround to fix autogenerated code formatting
cargo fmt -- ./lib/tes/models
cargo fmt -- --check # --config-path ./rustfmt.toml
4 changes: 4 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ignore = [
"lib/serviceinfo/models",
"lib/tes/models",
]

0 comments on commit 84150ae

Please sign in to comment.