mirror of
https://github.com/veeso/termscp.git
synced 2026-08-30 17:05:54 -07:00
afbc74113f
Deploy docs to GitHub Pages / deploy (push) Has been cancelled
Site / build-site (push) Has been cancelled
Install.sh / build (macos-latest) (push) Has been cancelled
Install.sh / build (ubuntu-latest) (push) Has been cancelled
CI / toolchain (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / install-scripts (push) Has been cancelled
CI / crates-ubuntu-latest (push) Has been cancelled
CI / crates-windows-latest (push) Has been cancelled
CI / doc (push) Has been cancelled
CI / deny (push) Has been cancelled
CI / crates-macos-latest (push) Has been cancelled
* ci: migrate project automation to Just Centralize build, test, release, dependency, hook, and website commands in Just recipes. Pin workflow tooling, use the repository toolchain, and run the complete validation set in CI. * ci: codex being codex * docs: update CLAUDE.md for just task runner migration Reflect the switch to just recipes for build/test/clippy/fmt, note dprint replacing raw rustfmt, and add a cross-platform code requirement. * fix: resolve clippy warnings breaking CI on ubuntu and windows Use clone() instead of implicit to_string() on already-owned String values, gate the windows-only unused make_file_at import behind cfg(posix), and fix unused mut / manual assign-op in the windows-only localhost test. * fix: fmt
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
alias lint := clippy
|
|
|
|
# Format all sources (Markdown, TOML, YAML and Rust via nightly rustfmt) with dprint
|
|
[group('code_check')]
|
|
fmt args="":
|
|
dprint fmt {{ args }}
|
|
|
|
# Check formatting of all sources with dprint (no writes)
|
|
[group('code_check')]
|
|
fmt_check args="":
|
|
dprint check {{ args }}
|
|
|
|
# Run clippy on all targets
|
|
[group('code_check')]
|
|
clippy args="":
|
|
cargo clippy --workspace --all-targets {{ args }}
|
|
|
|
# Build the crate documentation, denying warnings
|
|
[group('code_check')]
|
|
doc args="":
|
|
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps {{ args }}
|
|
|
|
# Check dependencies for advisories, licenses, bans and sources (cargo-deny)
|
|
[group('code_check')]
|
|
deny args="":
|
|
cargo deny check {{ args }}
|
|
|
|
# Scan for secrets with trufflehog (defaults to the whole working tree)
|
|
[group('code_check')]
|
|
scan_secrets *args=".":
|
|
trufflehog filesystem {{ args }} --results=verified,unknown --fail --no-update
|
|
|
|
# Point git at the tracked .githooks directory (installs the pre-commit hook)
|
|
[group('code_check')]
|
|
setup_githooks:
|
|
git config core.hooksPath .githooks
|
|
@echo "git hooks installed: core.hooksPath = .githooks"
|
|
|
|
# Lint the install scripts (shellcheck; PowerShell parse when pwsh is available)
|
|
[group('code_check')]
|
|
check_install_scripts:
|
|
sh -n install.sh
|
|
shellcheck install.sh
|
|
@if command -v pwsh >/dev/null 2>&1; then \
|
|
pwsh -NoProfile -Command '$t = $null; $e = $null; $null = [System.Management.Automation.Language.Parser]::ParseFile("install.ps1", [ref]$t, [ref]$e); if ($e) { $e; exit 1 }'; \
|
|
else \
|
|
echo "pwsh not found: skipping install.ps1 parse check"; \
|
|
fi
|
|
|
|
# Run all code checks. Fails if any check fails
|
|
[group('code_check')]
|
|
check_code:
|
|
just fmt_check
|
|
just clippy "-- -D warnings"
|
|
just doc
|
|
just deny
|
|
just check_install_scripts
|