Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LintPal rules

A small, versioned catalog of reusable LintPal review mandates. Each Markdown file contains one narrow requirement and explicit severity and decision threshold policy.

Import rules

Pin imports to a release tag so that rule changes arrive through an explicit dependency update:

lintpal rule import github:diffpal/lintpal-rules//[email protected]
lintpal rule import github:diffpal/lintpal-rules//[email protected]
lintpal rule validate

Use a prefix when a project already has rules with the same IDs:

lintpal rule import github:diffpal/lintpal-rules//[email protected] --prefix upstream

Imported rules are copied into .lintpal/rules/. Review and commit them with the project. LintPal resolves the tag to a commit during import; lint runs use the committed local copies.

The catalog requires LintPal 0.4.0 or newer. LintPal 0.3.x used the earlier pack format and cannot import these rule directories.

Catalog

General

  • authorization.md requires resource and action authorization.
  • input-validation.md requires constraints on untrusted input.
  • secret-handling.md prevents secret disclosure and unsafe storage.

Go

  • checked-errors.md requires meaningful errors to be handled or returned.
  • context-propagation.md preserves request cancellation and deadlines.
  • goroutine-lifecycle.md requires a bounded goroutine lifetime.

Validate changes

Install LintPal 0.4.0 or newer, then run:

./scripts/validate.sh

The script imports each catalog independently, validates the combined catalog, and confirms malformed rule metadata is rejected.

Ecosystem

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages