File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ echo ">>> [pre-push] Running cargo fmt --check..."
55if ! cargo fmt --all -- --check; then
66 echo " "
77 echo " HOOK FAILED: cargo fmt check failed."
8- echo " LLM FIX: run 'cargo fmt --all' then re-attempt the push."
8+ echo " Try 'cargo fmt --all' then re-attempt the push."
99 exit 1
1010fi
1111
1212echo " >>> [pre-push] Running cargo clippy..."
1313if ! cargo clippy --workspace --all-targets --all-features -- -D warnings; then
1414 echo " "
1515 echo " HOOK FAILED: cargo clippy reported warnings or errors."
16- echo " LLM FIX: fix the clippy diagnostics above, then re-attempt the push."
16+ echo " Fix the clippy diagnostics above, then re-attempt the push."
1717 exit 1
1818fi
1919
Original file line number Diff line number Diff line change 6060 # doesn't fail.
6161 export AWS_LC_FIPS_SYS_NO_ASM=1
6262 fi
63- cargo clippy --workspace --all-features
63+ cargo clippy --workspace --all-features -- -D warnings
6464
6565 build :
6666 name : Build
Original file line number Diff line number Diff line change 11# Serverless Components
22
3- A collection of libraries and binaries used for instrumenting AWS Lambda Functions, Azure Functions, and Azure Spring Apps.
3+ A collection of libraries and binaries used for instrumenting AWS Lambda Functions, Azure Functions, and Azure Spring Apps.
4+
5+ ## Development
6+
7+ Install the git pre-push hook (runs ` cargo fmt --check ` and ` cargo clippy -D warnings ` before each push):
8+
9+ ``` sh
10+ git config core.hooksPath .githooks
11+ ```
You can’t perform that action at this time.
0 commit comments