#command-line-tool #repository #length #verify #max #run #ci

app tldr-line-verifier

Command line tool to verify the max length of files in a repository

3 releases

0.1.2 Apr 28, 2023
0.1.1 Apr 25, 2023
0.1.0 Apr 24, 2023

#1512 in Command line utilities

MIT/Apache

9KB
169 lines

👮 tldr-line-verifier

Command line tool to verify the max length of files in a repository. Supposed to be run in CI.

Install

cargo install tldr-line-verifier

Run

tldr-line-verifier ./ --max_lines=1000 --exclude_pattern=".csv$"

Docker

docker run -v /path/to/repository:/home nicekloki/tldr-line-verifier

Github action

jobs:
  tldr:
    runs-on: ubuntu-latest
    container:
      image: nicekloki/tldr-line-verifier
    steps:
      - uses: actions/checkout@v3
      - name: check file length
        run: tldr-line-verifier ./ --max-lines=1000

Dependencies

~3.5–5MB
~90K SLoC