Files
cline--cline/sdk/examples/cron/code-style-audit.cron.md
2026-07-13 12:52:40 +08:00

1.2 KiB

id, title, workspaceRoot, schedule, tools, mode, enabled, modelSelection, timeoutSeconds, maxIterations, tags, metadata
id title workspaceRoot schedule tools mode enabled modelSelection timeoutSeconds maxIterations tags metadata
code-style-audit Code Style and Linting Audit /absolute/path/to/repo 0 3 * * WED run_commands,read_files act false
providerId modelId
cline anthropic/claude-opus-4.7
1800 20
automation
quality
style
owner reportFormat
development markdown

Run comprehensive code style and linting checks:

  1. Run ESLint: npm run lint or eslint .
  2. Run Prettier check: prettier --check . or equivalent
  3. Check for common issues:
    • Unused variables or imports
    • Dead code
    • TODO/FIXME comments left in main branch
    • Console.log statements in production code
    • Magic numbers without explanation

Generate a report showing:

  • Linting violations by rule (top 10)
  • Files with most violations
  • Formatting inconsistencies
  • Pattern analysis (e.g., common TODO reasons, unused import patterns)

Provide statistics:

  • Total violations found
  • Fixable vs non-fixable violations
  • Trend compared to previous week (if data exists)

Recommendations:

  • Quick wins: violations that can be auto-fixed
  • Standards improvements: patterns to establish
  • Review-needed: complex issues requiring human judgment