← 返回
开发者工具 中文

Lint

Check code syntax, enforce style, and suggest auto-fixes with CI integration. Use when linting PRs, enforcing code style, detecting errors before merge.
检查代码语法、强制代码风格,并通过CI集成提供自动修复建议。适用于PR代码检查、代码风格强制执行以及合并前错误检测。
xueyetianya
开发者工具 clawhub v2.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 981
下载
💾 11
安装
2
版本
#latest

概述

Lint

Lint is a developer-focused toolkit for recording and tracking code quality operations from the terminal. It provides 13 core action commands for managing checks, validations, formatting, linting, code generation, conversions, templates, diffs, previews, fixes, reports, and explanations — all with timestamped local logging for full traceability. Additional utility commands let you view statistics, export data, search history, and monitor health status.

Commands

Core Action Commands

Each action command works in two modes: run without arguments to view the 20 most recent entries, or pass input text to record a new timestamped entry.

CommandDescription
----------------------
lint check Record a syntax/code check entry
lint validate Record a validation result
lint generate Record a code generation action
lint format Record a formatting operation
lint lint Record a linting pass
lint explain Record an explanation or annotation
lint convert Record a conversion operation
lint template Record a template action
lint diff Record a diff comparison
lint preview Record a preview action
lint fix Record an auto-fix action
lint report Record a report generation

Utility Commands

CommandDescription
----------------------
lint statsShow summary statistics — entry counts per category, total entries, data size, and earliest activity timestamp
lint export Export all data to JSON, CSV, or TXT format. Output file saved to ~/.local/share/lint/export.
lint search Full-text search across all log files (case-insensitive)
lint recentShow the 20 most recent entries from the history log
lint statusHealth check — version, data directory, total entries, disk usage, last activity
lint helpShow help with all available commands
lint versionPrint version string (lint v2.0.0)

Data Storage

All data is stored locally in ~/.local/share/lint/. Each action command writes to its own log file (e.g., check.log, validate.log, fix.log). A unified history.log records every action with timestamps. No external services, databases, or network connections are used.

Directory structure:

~/.local/share/lint/
├── check.log        # Check entries
├── validate.log     # Validation entries
├── generate.log     # Generation entries
├── format.log       # Formatting entries
├── lint.log         # Lint pass entries
├── explain.log      # Explanation entries
├── convert.log      # Conversion entries
├── template.log     # Template entries
├── diff.log         # Diff entries
├── preview.log      # Preview entries
├── fix.log          # Fix entries
├── report.log       # Report entries
├── history.log      # Unified activity log
└── export.*         # Export output files

Requirements

  • Bash (with set -euo pipefail)
  • Standard Unix utilities: date, wc, du, head, tail, grep, basename, cut
  • No external dependencies or API keys required

When to Use

  1. Tracking linting sessions — Record which files you linted, what issues you found, and what fixes you applied, all with timestamps for audit trails.
  2. Code review workflows — Log check and validate results during PR reviews so you can refer back to what was inspected and when.
  3. Template and diff management — Keep a running record of template operations and diff comparisons across project iterations.
  4. Exporting quality reports — Use lint export json to generate machine-readable reports of all recorded lint activity for CI dashboards or team reviews.
  5. Searching past actions — Quickly find previous lint results, fixes, or explanations with lint search across all categories.

Examples

# Record a check on a Python file
lint check "src/main.py — 3 unused imports found"

# Record a fix applied
lint fix "Removed unused imports in src/main.py"

# View recent formatting actions
lint format

# Search for all entries mentioning "import"
lint search import

# Export everything to JSON
lint export json

# View overall statistics
lint stats

# Health check
lint status

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-03-29 15:10 安全 安全
  • v1.0.5
    2026-03-19 08:41

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,120
ai-intelligence

Excel Formula

xueyetianya
根据描述生成Excel公式并诊断电子表格错误。适用于编写VLOOKUP公式、调试错误或转换公式。支持...
★ 2 📥 6,136
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,784