Skip to content

Built-in Gates

l0-git comes with 34 built-in gates organized by theme. Each gate is designed to be deterministic and fast.

Project Hygiene & Governance

IDSeverityDescription
readme_presentWarningEnsures a README file exists at the project root.
license_presentWarningEnsures a LICENSE file exists at the project root.
contributing_presentInfoEnsures a CONTRIBUTING.md file exists at the project root.
security_presentInfoEnsures a SECURITY.md file exists at the project root.
changelog_presentInfoEnsures a CHANGELOG.md file exists at the project root.
code_of_conduct_presentInfoEnsures a CODE_OF_CONDUCT.md file exists.
codeowners_presentInfoEnsures a CODEOWNERS file exists.
pr_template_presentInfoEnsures a Pull Request template exists.
issue_template_presentInfoEnsures Issue templates exist.
ci_workflow_presentWarningEnsures at least one CI workflow exists.
branch_protection_declaredInfoVerifies branch protection is declared as code.

Git & Repository Hygiene

IDSeverityDescription
gitignore_presentWarningEnsures a .gitignore file exists at the project root.
gitignore_coverageWarningCross-checks .gitignore against the detected stack.
merge_conflict_markersErrorDetects unresolved merge conflict markers.
large_file_trackedWarningFlags tracked files larger than a threshold (default 5MB).
ide_artifact_trackedWarningFlags tracked editor/IDE/OS artifacts.
vendored_dir_trackedWarningFlags tracked vendored directories (e.g., node_modules).
unexpected_executable_bitWarningFlags files with unexpected executable bits.
filename_qualityInfoFlags filenames with spaces or non-ASCII characters.

Security

IDSeverityDescription
secrets_scanErrorScans tracked files for hardcoded secrets.
connection_stringsInfoScans for connection URIs with inline credentials.
network_scanInfoScans for public IPv4 literals and CIDRs.
secrets_scan_historyWarningScans git history for secrets (Opt-in).
large_blob_in_historyWarningFlags large blobs in git history (Opt-in).

Quality & Release

IDSeverityDescription
tests_presentWarningDetects the presence of tests for various languages.
version_driftWarningCross-checks versions across different manifests.
nvmrc_missingInfoEnsures .nvmrc or .node-version exists for Node projects.

Specialized Lints

IDSeverityDescription
dockerfile_lintWarningAST-based lint for Dockerfiles.
compose_lintWarningYAML-AST lint for Docker Compose files.
html_lintWarningAccessibility and WCAG lint for HTML files.
css_lintWarningObjective quality lint for CSS/SCSS/LESS files.
markdown_lintWarningAST lint for Markdown documentation.

Documentation

IDSeverityDescription
dead_placeholdersInfoScans for TODO, FIXME, and placeholder text.
env_example_uncommentedInfoEnsures .env.example keys have descriptive comments.

Released under the MIT License.