Skip to content

Releases: johanneslatzel/check-line-limits

Release list

v1.0.1

Choose a tag to compare

@johanneslatzel johanneslatzel released this 25 Aug 09:31

The npmjs dist-tag pointed to v0.1.0 instead of v1.0.0. This is just a re-publish to fix that.

Full Changelog: https://github.com/johanneslatzel/check-line-limits/commits/v1.0.1

v1.0.0

Choose a tag to compare

@johanneslatzel johanneslatzel released this 24 Aug 23:48

initial release with:

Features

  • check-line-limits CLI counts SLOC per file, prints warnings to stderr, and exits 1 when a file reaches the error threshold
  • line-limits.json config with optional warn (default 500) and error (default 1000) thresholds, scanDirs (default ["src", "tests"]), skipDirs, and exclude
  • skipDirs prunes directories by name at any depth before files are enumerated (default: node_modules, .git, dist, coverage)
  • exclude patterns drop files by shape (default: **/*.d.ts, **/*.generated.*)
  • --warn <n>/--error <n> override the thresholds, --config <path> selects another config file
  • --json prints { warn, error, hasErrors, files } for CI pipelines
  • library API exports checkLineLimits(), loadConfig(), and the LineLimitsConfig, FileResult, and CheckResult types

Internal

  • docs: MkDocs Material documentation site
  • CI: lint, tests with coverage, Codecov upload
  • publish workflow: npm publish runs when a GitHub release is published

Full Changelog: https://github.com/johanneslatzel/check-line-limits/commits/v1.0.0