oxide-sloc

Nima Shafie · NimaShafie.OxideSLOC

Rust-based SLOC analysis and unit test metrics workbench

oxide-sloc is a code metrics workbench that performs SLOC (Source Lines of Code) analysis and unit test detection across 41 programming languages. It provides a CLI, a localhost web UI, rich HTML reports, and PDF export. Features include language breakdown, IEEE 1045-1992 counting standards, git webhook integration, and test/production code separation.

winget install --id NimaShafie.OxideSLOC --exact --source winget

Latest 1.5.66

Release Notes

Download ───────────────────┬───────────────────────────────────┬────────────────────────────────────────────────────────────────── Platform │File │Notes ───────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────── Linux x86-64 │oxide-sloc-linux-x86_64 │Static binary (musl) — works on any x86-64 Linux ───────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────── Linux arm64 │oxide-sloc-linux-arm64 │Requires glibc ≥ 2.17 (Raspberry Pi 4, AWS Graviton, Ampere, etc.) ───────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────── Windows x86-64 │oxide-sloc-windows-x86_64.exe │Windows 10/11 ───────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────── macOS x86-64 │oxide-sloc-macos-x86_64 │Intel Mac ───────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────── macOS Apple Silicon│oxide-sloc-macos-arm64 │M1/M2/M3/M4 Mac ───────────────────┼───────────────────────────────────┼────────────────────────────────────────────────────────────────── Vendor archive │vendor.tar.xz + │Rust dependency sources for air-gapped builds │vendor.tar.xz.sha256 │ ───────────────────┴───────────────────────────────────┴────────────────────────────────────────────────────────────────── Checksums for all release assets are in SHA256SUMS.txt. GPG detached signatures (.sig), Sigstore cosign bundles (.bundle), and SLSA provenance attestations (.sigstore.json) are included for each binary. The GPG public key used for signing is oxide-sloc-signing-key.asc. Quick install

Linux x86-64

curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.5.66/oxide-sloc-linux-x86_64 chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

Linux arm64

curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.5.66/oxide-sloc-linux-arm64 chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

macOS (Apple Silicon)

curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.5.66/oxide-sloc-macos-arm64 chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

macOS (Intel)

curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.5.66/oxide-sloc-macos-x86_64 chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

Windows — rename and add to PATH

ren oxide-sloc-windows-x86_64.exe oxide-sloc.exe

Verify checksum (Linux / macOS)

sha256sum --check SHA256SUMS.txt

Verify GPG signature (Linux / macOS)

gpg --import oxide-sloc-signing-key.asc gpg --verify oxide-sloc-linux-x86_64.sig oxide-sloc-linux-x86_64

Verify cosign bundle (requires cosign installed)

cosign verify-blob
--bundle oxide-sloc-linux-x86_64.bundle
oxide-sloc-linux-x86_64 Air-gapped build

Download source + vendor archive from this release, then on the air-gapped machine:

bash scripts/internal/airgap-build.sh vendor.tar.xz Or build from source (requires Rust 1.95+) cargo install --git https://github.com/oxide-sloc/oxide-sloc oxide-sloc Full Changelog: v1.5.65...v1.5.66

Installer type: zip

Architecture Scope Download SHA256
x64 Download 18588D4797C70099DF9DB80C123886BB38523F4532586E548024EE3C034EA04D

Details

Homepage
https://github.com/oxide-sloc/oxide-sloc
License
AGPL-3.0
Publisher
Nima Shafie
Support
https://github.com/oxide-sloc/oxide-sloc/issues
Moniker
oxide-sloc

Tags

clicode-analysisdeveloper-toolsmetricsrustslocsource-lines-of-code

Older versions (1)

1.5.6
Architecture Scope Download SHA256
x64 Download 316E3B22059FBE47409065268A7B8A4F313C0CD945DBAE87864AB9EDB014F107