Stack profiles
The concrete tools and settings behind the baseline for each stack. Settings marked “ratchet” start with a baseline or allowlist for existing code that may only shrink. Tool names and flags reflect the tools as of 2026; verify them against the installed version.
Each profile says how fleetlint detects the stack and ends with the stack’s column in the capability matrix: the implementations that check it, each with a page saying what counts.
lint/configured/gois the Go implementation of the capabilitylint/configured.- Where a stack has no implementation of its own, the stack-neutral
anyimplementation checks it if there is one (osv-scanner for vulnerabilities, diff-cover or a codecov target for coverage); otherwise the capability reportsno implementation for <stack>. - Where an implementation exists, the tools a profile names for it are ones it accepts. Another tool is declared with
accept:where the implementation is an outcome rule. - The release capabilities (
release/signing,release/sbom,release/provenance,release/trusted-publishing,release/reproducible-build) are checked per published artifact, not per stack: each container image, package or set of release files, with the implementation for its kind (artifacts). The reproducible-build settings below are what those implementations look for. - Stack detection is catalog data too, see stacks.
Go
Detected by go.mod. In a Hugo site, whose go.mod lists Hugo modules, only together with .go files.
- Toolchain: pin with the
toolchaindirective (or a fullgo 1.x.yversion) ingo.mod. Task runner: Makefile. - Format:
gofumpt+goimports(via golangci-lint formatters). - Lint:
golangci-lintv2 withversion: "2"config. The configurationfleetlint fix --applywrites enableserrcheck,govet,staticcheck,unused,ineffassign,errorlint,nilerr,bodyclose,noctx,gosec,revive,gocognit(15),funlen(60 lines, 40 statements),exhaustive,unparam,godoxandnolintlint(an explanation on every//nolint);lint/strict/gorequireserrcheck,govet,staticcheck,errorlint,gosec,gocognitandfunlen. Worth adding:wrapcheck,contextcheck,forbidigo(banfmt.Print*andlog.Print*outside main/output),depguard(layer import rules). Usenew-from-revas the ratchet. - Errors: wrap with
fmt.Errorf("op: %w", err); inspect witherrors.Is/errors.As; sentinel or typed errors for expected cases. Nopanicin library code. Never_ =an error without a comment. - Design:
cmd/<app>+internal/; define small interfaces at the consumer; accept interfaces, return structs.context.Contextis the first parameter of every IO function; no contexts stored in structs. - Tests: stdlib
testing+go-cmp(testify optional); table-driven tests witht.Runandt.Parallel();httptestfor HTTP;testcontainers-gofor databases; native fuzzing (go test -fuzz) for parsers. Rungo test -race -shuffle=on ./.... - Coverage:
go test -coverprofile=cover.out -coverpkg=./...with a floor: go-test-coverage with athreshold, or the profile converted to Cobertura (gocover-cobertura) fordiff-cover --fail-under. - Logging:
log/slogwith a JSON handler; implementslog.LogValueron secret types to redact them. - Audit:
govulncheck ./...,go mod tidy -diff,gitleaks. - Licenses:
go-licenses check ./... --allowed_licenses=<allowlist>. - Slop guards:
godox(TODO/FIXME only with an issue reference),duplfor duplication,gremlinsfor mutation testing. - Benchmarks:
go test -run=^$ -bench=. -benchmem -count=10saved to a file; compare withbenchstatagainst the stored baseline. - API compatibility (libraries):
goreleasereports incompatible changes and suggests the next version. - Reproducible builds:
-trimpath, and GoReleaser’smod_timestamp. - Checked by: the
gocolumn of the capability matrix.
Python
Detected by pyproject.toml, setup.py or requirements.txt.
- Toolchain:
uvfor the Python version (.python-version, written byuv python pin), venv and lockfile (uv.lock; a hand-writtenrequirements.txtis not a lockfile);pyproject.tomlonly; src layout. Task runner: Makefile (recipes calluv run ...). - Format + lint:
ruff format;ruff checkwith a broad selection:E,W,F,I,B,UP,SIM,C4,BLE,TRY,EM,S,PL,PT,RET,ARG,PTH,DTZ,T20,ERA,RUF,C90,ANN. Setmax-complexity = 15andPLR0915(max statements). Ratchet existing violations withruff check --add-noqarun once (it writes targeted# noqacodes), then shrink that set phase by phase. - Types:
mypy --strictorbasedpyrightin strict mode. NoAnyat module boundaries. - Errors: a project exception hierarchy rooted in one base class;
raise ... from err; no bareexcept:orexcept Exception: pass(BLE/S110 enforce this). - Design:
pydantic(orattrs/dataclasses + explicit validation) at boundaries;typing.Protocolfor ports;import-lintercontracts for layers. - Tests:
pytest,pytest-randomly,pytest-xdist;hypothesisfor parsing/logic;respx(httpx) orresponses(requests) for HTTP;time-machinefor clock;testcontainersfor DBs. Fixtures inconftest.py, builders intests/support/. - Coverage:
pytest --cov --cov-branch --cov-report=xml --cov-fail-under=80, plusdiff-cover --fail-underfor changed lines. - Logging: stdlib
loggingorstructlog;pydantic.SecretStrfor secrets. - Audit:
pip-audit(oruvwith osv-scanner),deptry(unused/missing deps),gitleaks. - Licenses:
pip-licenses --allow-only="<allowlist>". - Slop guards: ruff
TD(TODOs need an issue link, TD003),FIX,ERA(commented-out code) andT20(print);jscpdfor duplication;mutmutfor mutation testing. - Benchmarks:
pytest-benchmarkwith--benchmark-autosaveand--benchmark-compare --benchmark-compare-fail=mean:10%. - API compatibility (libraries):
griffe check <package>against the last release tag. - Checked by: the
pythoncolumn of the capability matrix.
Rust
Detected by Cargo.toml.
- Toolchain:
rust-toolchain.tomlnaming a version (stablemoves and does not count); MSRV (rust-version) inCargo.toml. Task runner: Makefile wrapping cargo commands. - Format:
rustfmtwith a committedrustfmt.toml. - Lint:
cargo clippy --all-targets --all-features -- -D warnings. Configure in the[lints]table ofCargo.toml:unsafe_code = "forbid"(ordenywith documented exceptions); clippy groupsalldeny andpedanticwarn; plusunwrap_used,expect_used,panic,todo,dbg_macro,print_stdout,print_stderrset to deny in non-test code. Settoo_many_linesandcognitive_complexitythresholds inclippy.toml. - Errors:
thiserrorfor library error enums;anyhow/eyreonly in binaries, with.context(...).unwrap/expectonly for proven invariants, with an// INVARIANT:comment. - Design: newtypes for IDs/units; enums for state machines; traits as ports; workspace crates to enforce layering (domain crate has no IO deps). Every
unsafeblock has a// SAFETY:comment. - Tests:
cargo nextest;proptestfor logic/parsers;instafor reviewed snapshots;cargo fuzzfor untrusted input;mockallonly at adapter boundaries;mirifor anyunsafe. - Coverage:
cargo llvm-cov --fail-under-lines 80; its--lcovoutput fordiff-cover --fail-underon changed lines. - Logging:
tracing+tracing-subscriber;secrecy::SecretStringfor secrets. - Audit:
cargo deny check(advisories, licenses, bans, duplicates),cargo machete(unused deps),gitleaks. - Licenses: covered by
cargo deny([licenses]allowlist indeny.toml). - Slop guards: clippy
todo,dbg_macro,allow_attributes_without_reason(use#[expect(lint, reason = "…")]);jscpdfor duplication;cargo-mutantsfor mutation testing. - Benchmarks:
criterion(ordivan); save with--save-baseline main, compare with--baseline main. - API compatibility (libraries):
cargo semver-checks. - Reproducible builds:
cargo build --release --lockedwith--remap-path-prefix. - Checked by: the
rustcolumn of the capability matrix.
Node.js / TypeScript
Detected by package.json.
- Toolchain: pin Node in
.nvmrcor.node-version(theenginesfield is a range, not a pin); one package manager, pinned withpackageManager(Corepack); commit the lockfile. TypeScript everywhere, ESM. - tsconfig:
strict,noUncheckedIndexedAccess,exactOptionalPropertyTypes,noImplicitOverride,noFallthroughCasesInSwitch,verbatimModuleSyntax. Runtsc --noEmitinlint.types/strict/noderequires the first five;fleetlint fix --applymerges them into tsconfig.json. - Format + lint: Prettier + ESLint with
typescript-eslintstrictTypeCheckedandstylisticTypeChecked— or Biome as an all-in-one alternative. Required rules:no-floating-promises,no-misused-promises,switch-exhaustiveness-check,no-explicit-any,no-console,max-lines(400/800),max-lines-per-function(50/80),complexity(15). Ratchet with ESLint bulk suppressions or a per-file baseline. - Errors: custom
Errorsubclasses withcause; nocatch {}; unknown errors narrowed before use; a top-levelunhandledRejection/uncaughtExceptionhandler that logs and exits. - Design:
zod(or valibot) to parse every boundary; branded types for IDs; discriminated unions for state;dependency-cruiser(oreslint-plugin-boundaries) for layer rules. - Tests: Vitest (or
node:test);fast-checkfor properties; MSW for HTTP; Testing Library for UI; Playwright for e2e; fake timers for clock. - Coverage: Vitest with
@vitest/coverage-v8andcoverage.thresholds(or JestcoverageThreshold); the lcov or Cobertura report fordiff-cover --fail-under. - Logging:
pinowithredactpaths for auth headers and tokens. - Audit:
npm audit --omit=dev(or the pnpm/yarn equivalent) /osv-scanner,knip(unused files, exports, deps),gitleaks. - Licenses:
license-checker-rseidelsohn --production --onlyAllow "<allowlist>". - Slop guards:
no-warning-comments(orunicorn/expiring-todo-comments),@eslint-community/eslint-comments/require-descriptionfor every disable comment, a focused-test ban (VitestallowOnly: false);jscpdfor duplication; Stryker for mutation testing. - Benchmarks and budgets:
vitest bench; bundle-size budgets withsize-limit; Lighthouse CI budgets for web apps. - API compatibility (libraries):
@microsoft/api-extractorwith a committed API report; any diff must be intentional. - UI:
@axe-core/playwrightin e2e tests (no violations allowed); PlaywrighttoHaveScreenshotfor visual regression;eslint-plugin-i18next(or the framework’s equivalent) bans hard-coded strings; a script fails on missing or unused translation keys. - Publishing:
npm publishfrom the tag-triggered workflow with trusted publishing (id-token: write, noNPM_TOKEN). - Checked by: the
nodecolumn of the capability matrix, anddeps/install-scripts-disabled.
Kotlin (JVM / Android)
Detected by every Gradle build (build.gradle.kts, build.gradle, settings.gradle.kts, settings.gradle) that is not the Java profile: Kotlin, Android (also in Java) and Kotlin Multiplatform. The Android shell of a Flutter app is neither.
- Toolchain: Gradle wrapper + version catalog (
libs.versions.toml); dependency locking; JVM toolchain pinned. Task runner: Gradle tasks (checkaggregates everything). - Format:
ktlint(orktfmt) via Spotless. - Lint: detekt 2 (the
dev.detektGradle plugin) withbuildUponDefaultConfigand a baseline file for the ratchet. Enforce:EmptyCatchBlock,SwallowedException,TooGenericExceptionCaught,LongMethod(50),LargeClass,CognitiveComplexMethod(15),GlobalCoroutineUsage,InjectDispatcher,ForbiddenMethodCall(println). SetallWarningsAsErrors = true; explicit API mode for libraries. Android: Android Lint as well, withwarningsAsErrorsand a baseline. - Errors/coroutines: sealed result/error hierarchies for expected failures; structured concurrency only (no
GlobalScope); never swallowCancellationException(rethrow it, or useensureActive()); inject dispatchers. - Design: sealed classes for state; value classes for IDs; constructor injection (Hilt/Koin/manual) wired in one place; module boundaries per layer, with
Konsistarchitecture tests. - Tests: JUnit 5 (or Kotest);
kotlinx-coroutines-test(runTest, test dispatchers); Turbine for Flows; MockK only at adapter boundaries; Robolectric / Compose UI tests on Android; Testcontainers on JVM. - Coverage: Kover with a
minBoundverification rule; its XML report fordiff-cover --fail-under. - Logging: SLF4J + Logback (JVM) or Timber (Android, debug tree only in debug builds).
- Secrets (Android): Android Keystore-backed encryption (e.g. via Tink) with DataStore; never plain SharedPreferences.
- Audit:
osv-scanneragainst the Gradle lockfiles, Gradle dependency analysis plugin (unused deps),gitleaks. - Licenses: the
app.cash.licenseeGradle plugin, the jk1 dependency-license-report plugin (checkLicensewith anallowedLicensesFile) or license-maven-plugin, each with an allowlist. - Slop guards: detekt
ForbiddenComment(TODO/FIXME without an issue reference),UnusedPrivateMember,UnusedParameter; PMD CPD orjscpdfor duplication; Pitest (gradle-pitest-plugin) for mutation testing. - Benchmarks:
kotlinx-benchmark(JMH) on JVM; Jetpack Macrobenchmark for startup and scrolling on Android, plus Baseline Profiles. - API compatibility (libraries): binary-compatibility-validator (
apiDump/apiCheck) with the API file committed. - UI (Android): Compose UI tests with accessibility checks enabled; Roborazzi or Paparazzi screenshot tests; Android Lint
HardcodedTextand missing-translation checks as errors. - Checked by: the
kotlincolumn of the capability matrix.
Flutter / Dart
Detected by pubspec.yaml.
- Toolchain: pin the Flutter version (FVM or
.tool-versions); commitpubspec.lock. - Format:
dart format --set-exit-if-changed . - Lint:
flutter_lints(theanalysis_options.yamlfleetlint fix --applywrites includes it), or the strictervery_good_analysis;analyzer.language:strict-casts,strict-inferenceandstrict-raw-typesset to true (very_good_analysis sets them itself). Make sureuse_build_context_synchronously,unawaited_futures,discarded_futures,avoid_print,cancel_subscriptionsandclose_sinksare on. Runflutter analyze --fatal-infos. Ratchet with per-fileignore_for_filelists tracked in the repository. - Errors: sealed failure classes or a Result type;
FlutterError.onError+PlatformDispatcher.instance.onErroras the top-level handlers. - Design: one state approach (Riverpod or Bloc);
freezed+json_serializablefor models (no uncheckedascasts on JSON); repositories behind interfaces; nopart-file mixins sharing state. - Tests:
flutter_test,mocktail(prefer fakes),fake_async,bloc_test/ RiverpodProviderContainer, golden tests for key screens,integration_testfor e2e. - Coverage:
flutter test --coverage(lcov) withdiff-cover --fail-under, orvery_good test --min-coverage. - Logging: the
loggingpackage with a redacting handler; debug output disabled in release. - Secrets:
flutter_secure_storage. Self-signed servers get a host-scopedSecurityContext, never a globalbadCertificateCallback. - Audit:
osv-scanneronpubspec.lock,dart run dependency_validator(unused dependencies),dart pub outdated,gitleaks. - Licenses:
osv-scanner --licenses=<allowlist>onpubspec.lock; a script overdart pub deps --jsonis declared withaccept:. - Slop guards:
flutter_style_todosandavoid_print(on in the template),require_trailing_commas(very_good_analysis); every// ignore:needs a reason on the line above;jscpdfor duplication; themutation_testpackage for mutation testing. - API compatibility (published packages):
dart_apitoolagainst the previous release. - Benchmarks:
benchmark_harnessfor pure Dart logic;integration_testwithtraceActionfor frame timings of key screens; app-size budget fromflutter build --analyze-size. - UI: widget tests with
meetsGuideline(textContrastGuideline),labeledTapTargetGuideline,androidTapTargetGuidelineandiOSTapTargetGuideline; golden tests in light/dark and large text;flutter gen-l10nwithuntranslated-messages-fileset, andcheckfails if that file is not empty. - Checked by: the
fluttercolumn of the capability matrix.
Java
Detected by pom.xml, or by a build.gradle or build.gradle.kts that names the java, java-library or application plugin and contains neither kotlin nor android. Every other Gradle build is the Kotlin profile.
- Toolchain:
.java-versionor.sdkmanrc(Temurin); the Maven wrapper (./mvnw) or the Gradle wrapper committed;maven-enforcer-pluginpins the Maven version. - Format: Spotless with google-java-format or Palantir;
spotless:checkin the hooks. - Lint: Checkstyle with a committed
config/checkstyle/checkstyle.xmlandfailOnViolation; Error Prone as a compiler plugin; SpotBugs for bug patterns.fleetlint fix --applywrites the Checkstyle configuration. - Errors: no
catch (Exception e)without rethrow (CheckstyleIllegalCatch,EmptyCatchBlock); checked exceptions translated at module boundaries. - Tests: JUnit 5, AssertJ, Testcontainers for integration; Mockito only at boundaries.
surefirefor unit tests,failsafefor integration. - Coverage: JaCoCo with
<rule>minimums injacoco-maven-plugin(checkgoal) plusdiff-coveron the XML report. - Audit: OWASP
dependency-check-mavenorosv-scanneron the dependency tree;maven-dependency-pluginanalyzewithfailOnWarning, or the Gradle dependency-analysis plugin’sbuildHealth(unused dependencies);gitleaks. - Licenses:
license-maven-pluginwithfailOnBlacklist(orfailOnNotWhitelisted), for Gradle theapp.cash.licenseeplugin or the jk1 dependency-license-report plugin (checkLicensewith anallowedLicensesFile), orosv-scanner --licenses=<allowlist>. - Slop guards: Checkstyle
TodoCommentrequiring an issue reference,SuppressWarningsforbidden without a reason filter; PMD CPD for duplication; Pitest for mutation testing. - API compatibility (libraries):
japicmp-maven-pluginor Revapi against the previous release. - Reproducible builds: Maven
project.build.outputTimestamp; GradlepreserveFileTimestamps = falseandreproducibleFileOrder = true(the default from Gradle 9). - Checked by: the
javacolumn of the capability matrix.
.NET
Detected by global.json, Directory.Build.props, a .sln/.slnx or a .csproj/.fsproj.
- Toolchain:
global.jsonpins the SDK (rollForward: latestPatch);Directory.Packages.propsfor central package versions;dotnet restore --locked-modewithpackages.lock.jsoncommitted. - Format:
dotnet format --verify-no-changesin the hooks; style rules in.editorconfig. - Lint:
Directory.Build.propsat the root with<Nullable>enable,<TreatWarningsAsErrors>true,<AnalysisLevel>latest-all(orlatest-recommended) and<EnforceCodeStyleInBuild>true, so every project compiles under the same analyzers.fleetlint fix --applywrites the file. - Errors: no
catch (Exception)without rethrow (CA1031);Result-style types or exceptions, not both;ConfigureAwaitpolicy decided once. - Tests: xUnit, FluentAssertions or Shouldly, Testcontainers;
dotnet test --collect:"XPlat Code Coverage". - Coverage: coverlet with
/p:Thresholdordiff-coveron the Cobertura report. - Audit:
dotnet list package --vulnerable --include-transitivefailing on findings;gitleaks. - Licenses:
dotnet-project-licensesornuget-licensewith an allowlist. - Slop guards: analyzers IDE0005 (unused usings), CA1848/CA2254 (logging), a
TODOcheck via.editorconfigdotnet_diagnostic.S1135;jscpdfor duplication; Stryker.NET for mutation testing. - API compatibility (libraries):
Microsoft.DotNet.ApiCompat(EnablePackageValidationwith a baseline version). - Reproducible builds:
ContinuousIntegrationBuildtrue for CI builds; deterministic compilation is the SDK default. - Checked by: the
dotnetcolumn of the capability matrix.
C/C++
Detected by CMakeLists.txt, meson.build, a Conan file or vcpkg.json.
- Toolchain: the compiler or build tool pinned with a version:
mise.toml,.tool-versionsordevbox.jsonnaming cmake, clang/llvm, gcc, conan, ninja or meson, a Conan profile withcompiler.version, or a dev container image pinned by digest.cmake_minimum_requiredis a floor, not a pin. Dependencies through Conan or vcpkg with a lockfile (conan.lock,vcpkg.jsonbuiltin-baseline). - Format:
clang-formatwith a committed.clang-format; the hook formats staged files. - Lint:
clang-tidywith a committed.clang-tidy(WarningsAsErrors: '*') overcompile_commands.json;-Wall -Wextra -Werror(CMAKE_COMPILE_WARNING_AS_ERROR).fleetlint fix --applywrites both files. - Errors: no swallowed exceptions (
bugprone-empty-catch),std::expected/error codes at boundaries, RAII everywhere (cppcoreguidelines-owning-memory). - Tests: Catch2 or GoogleTest through CTest; sanitizers (ASan, UBSan) in a dedicated preset run by
check. - Coverage:
gcovr --fail-under-line 80in thecovertarget. - Audit:
conan audit scanorosv-scanneron the lockfile;cppcheckas a second analyzer;gitleaks. - Licenses: ScanCode (
scancode --license) or another stack-neutral checker; a script overconan graph info --format=jsonor vcpkg’s license fields is declared withaccept:. - Slop guards:
readability-function-cognitive-complexity,readability-function-size;jscpdfor duplication; Mull for mutation testing. - API compatibility (libraries):
abi-compliance-checkerorabidiffagainst the previous release. - Checked by: the
cppcolumn of the capability matrix.
Ruby
Detected by Gemfile or a .gemspec.
- Toolchain:
.ruby-version; Bundler withGemfile.lockcommitted;bundle config set frozen truein CI. - Format and lint: RuboCop with a committed
.rubocop.yml(NewCops: enable, rubocop-performance, rubocop-rspec), or Standard;.rubocop_todo.ymlas the ratchet.fleetlint fix --applywrites.rubocop.yml. - Errors:
Lint/SuppressedExceptionon,Style/RescueStandardError: explicit; norescue Exception. - Tests: RSpec or Minitest;
webmock/vcrfor HTTP;simplecovwithminimum_coverage. - Coverage: SimpleCov
minimum_coverageanddiff-coveron the Cobertura formatter output. - Audit:
bundler-audit check --update;brakemanfor Rails;gitleaks. - Licenses:
license_finderwith an allowlist. - Slop guards:
Style/CommentAnnotationwith a required colon and an issue reference convention;jscpdfor duplication (flayis declared withaccept:);mutantfor mutation testing. - API compatibility (libraries): none standard; semantic versioning enforced by review and a changelog entry per public change.
- Checked by: the
rubycolumn of the capability matrix.
PHP
Detected by composer.json.
- Toolchain:
.php-versionorcomposer.jsonconfig.platform.php;composer.lockcommitted;composer install --prefer-distin CI. - Format: PHP CS Fixer (
.php-cs-fixer.dist.php,@PER-CS,declare_strict_types) or Pint; the hook runs--dry-run. - Lint: PHPStan at
level: maxwithphpstan-strict-rules(phpstan.neon.dist) or Psalm; a generated baseline is the ratchet.fleetlint fix --applywrites both configurations. - Errors:
declare(strict_types=1)everywhere; exceptions typed per module; no emptycatch. - Tests: PHPUnit or Pest;
--fail-on-warning,--fail-on-risky. - Coverage: PHPUnit coverage (pcov) with a floor: phpunit-coverage-check (
coverage-check clover.xml 80), ordiff-cover --fail-underon the Cobertura report. - Audit:
composer auditfailing on advisories;composer-unused(unused dependencies);psalm --taint-analysis(SAST);gitleaks. - Licenses: madewithlove/license-checker (
license-checker checkagainst.allowed-licenses).composer licensesonly lists licenses and does not count. - Slop guards: PHPStan’s
disallowedCallsforvar_dump/dd,ergebnis/phpstan-rulesfor TODO hygiene;jscpdfor duplication (phpcpdis declared withaccept:); Infection for mutation testing. - API compatibility (libraries):
roave/backward-compatibility-checkagainst the previous tag. - Checked by: the
phpcolumn of the capability matrix.
Hugo / static sites
A documentation or marketing site is a repository like any other: it has a build that can break, links that can rot and a deployment that should be reproducible.
Detected by hugo.toml, hugo.yaml or hugo.json; by hugo.toml, hugo.yaml or config.toml in config/_default/; or by a legacy config.toml naming the baseURL next to a content/ directory.
- Toolchain: pin Hugo (
mise.toml,.tool-versions,devbox.json, or the version in the check workflow); the extended build when the site uses SCSS. The dev container uses thehugofeature; thedocker/podmanmodes useghcr.io/gohugoio/hugo. - Build (
lint):hugo --quiet --panicOnWarning --destination <tmp>: a missing layout, a brokenref/relrefor a deprecated setting fails the build instead of printing a warning. - Tests: a link and anchor check over the built site (every
hrefresolves, every#fragmentexists);markdownlinton the content. Hugo already fails on a link to a Markdown file that does not exist whenrefLinksErrorLevel = "ERROR". - Hooks: the build check scoped to content, layouts, assets, static and configuration;
markdownlint --fix. - CI:
peaceiris/actions-hugowith a pinnedHUGO_VERSION(Renovate bumps it), then the task runner’scheck. - Release: none; a site ships by deployment. The release rules stay not-applicable while no tag-triggered workflow exists.
- Slop guards:
markdownlintfor structure, the link check for dead references; no generatedpublic/orresources/_gentracked (.gitignore). - Checked by: the
hugocolumn of the capability matrix. Formatting, type checking, lockfiles, dependency scans and coverage do not apply to the site itself. Hugo modules (go.mod) are not checked; apackage.jsonmakes the site a Node project as well, and Go source files next togo.moda Go project.
Shared tools (all stacks)
| Purpose | Tool |
|---|---|
| Git hooks | prek (single binary, pre-commit compatible) |
| Shell scripts | shellcheck + shfmt |
| Editor/line-ending consistency | .editorconfig + .gitattributes |
| Changed-line coverage gate | diff-cover (reads lcov / Cobertura / JaCoCo) |
| Code metrics | scc or tokei |
| Secret scan | gitleaks (working tree + history) |
| Vulnerability scan | osv-scanner (any lockfile), plus the ecosystem tool above |
| Task runner | GNU Make (make check); Gradle or npm run where that’s the stack convention |
| Changelog from conventional commits | git-cliff |
| Signed tags | git tag -s (GPG or SSH signing key) |