Skip to content

Commit

Permalink
Merge pull request godot-rust#573 from godot-rust/qol/codegen-split-json
Browse files Browse the repository at this point in the history
Massive refactor: split codegen into JSON and domain models
  • Loading branch information
Bromeon authored Jan 21, 2024
2 parents 4b2aeb5 + e9c2b72 commit 6143ed4
Show file tree
Hide file tree
Showing 18 changed files with 2,047 additions and 1,327 deletions.
17 changes: 15 additions & 2 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ If no commands are specified, the following commands will be run:
Commands:
fmt format code, fail if bad
clippy validate clippy lints
test run unit tests (no Godot needed)
itest run integration tests (from within Godot)
clippy validate clippy lints
klippy validate + fix clippy
doc generate docs for 'godot' crate
dok generate docs and open in browser
Expand Down Expand Up @@ -137,6 +138,18 @@ function cmd_clippy() {
-D warnings
}

function cmd_klippy() {
run cargo clippy --fix --all-targets "${extraCargoArgs[@]}" -- \
-D clippy::suspicious \
-D clippy::style \
-D clippy::complexity \
-D clippy::perf \
-D clippy::dbg_macro \
-D clippy::todo \
-D clippy::unimplemented \
-D warnings
}

function cmd_test() {
run cargo test "${extraCargoArgs[@]}"
}
Expand Down Expand Up @@ -178,7 +191,7 @@ for arg in "$@"; do
--double)
extraCargoArgs+=("--features" "godot/double-precision")
;;
fmt | clippy | test | itest | doc | dok)
fmt | test | itest | clippy | klippy | doc | dok)
cmds+=("$arg")
;;
-f | --filter)
Expand Down
Loading

0 comments on commit 6143ed4

Please sign in to comment.