---
version: '3'

tasks:
  count:
    deps:
      - :install:software:tokei
    desc: Display a chart detailing the lines of code for each language used
    log:
      error: Encountered error while running `tokei . --exclude .common .modules`
      start: Analyzing project for code-language statistics
    cmds:
      - tokei . --exclude .common .modules

  find:todo:
    deps:
      - :install:npm:leasot
    desc: Scan code base for TODOs and FIXMEs
    vars:
      LEASOT_IGNORE: .common .modules .venv node_modules venv
    log:
      error: Encountered error while running `leasot --ignore {{.LEASOT_IGNORE}} {{.CLI_ARGS}}`
      start: Scanning project for TODOs and FIXMEs
    cmds:
      - leasot --ignore {{.LEASOT_IGNORE}} {{.CLI_ARGS}}
