CLI for static analysis of n8n workflows
npm install flowlintbash
npm install -g flowlint
`
Or use npx:
`bash
npx flowlint scan .
`
Usage
$3
`bash
Scan current directory
flowlint scan
Scan specific directory
flowlint scan ./workflows
Scan single file
flowlint scan ./workflows/payment-flow.n8n.json
Output as JSON
flowlint scan --format json
Fail on errors (for CI)
flowlint scan --fail-on-error
`
$3
`bash
flowlint init
`
Creates a .flowlint.yml file in the current directory.
Testing
Run tests with coverage reporting:
`bash
npm run test:coverage
`
Configuration
Create a .flowlint.yml file:
`yaml
files:
include:
- "*/.n8n.json"
ignore:
- "node_modules/**"
rules:
rate_limit_retry:
enabled: true
error_handling:
enabled: true
# ... more rules
``