mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
2659fdbebb
Signed-off-by: azjezz <azjezz@protonmail.com>
33 lines
635 B
Makefile
33 lines
635 B
Makefile
default:
|
|
@just --list
|
|
|
|
# build the library
|
|
build:
|
|
cargo build
|
|
|
|
# regenerate test snapshots
|
|
snapshot:
|
|
cargo run --bin snapshot
|
|
|
|
# detect linting problems.
|
|
lint:
|
|
cargo fmt --all -- --check
|
|
cargo clippy
|
|
|
|
# fix linting problems.
|
|
fix:
|
|
cargo fmt
|
|
cargo clippy --fix --allow-dirty --allow-staged
|
|
|
|
# dump AST for the given file.
|
|
dump file:
|
|
cargo run --bin php-parser-rs -- {{file}}
|
|
|
|
# run all integration tests, except third-party.
|
|
test filter='':
|
|
cargo test --all {{filter}} -- --skip third_party
|
|
|
|
# run integration tests for third party libraries.
|
|
test-third-party:
|
|
cargo test third_party -- --nocapture
|