Skip to content

Output format#26

Merged
jakekaplan merged 4 commits intomainfrom
output-format
Jan 17, 2026
Merged

Output format#26
jakekaplan merged 4 commits intomainfrom
output-format

Conversation

@jakekaplan
Copy link
Owner

@jakekaplan jakekaplan commented Jan 17, 2026

Add --output-format flag with JSON support

Closes #19

Adds --output-format <text|json> to the check command for machine-readable output.

Usage:

loq check --output-format json

JSON structure:

{
  "version": "0.1.0",
  "violations": [
    {"path": "src/main.rs", "lines": 1427, "max_lines": 500, "rule": "default"}
  ],
  "skip_warnings": [],
  "walk_errors": [],
  "summary": {"files_checked": 42, "skipped": 0, "passed": 41, "violations": 1, "walk_errors": 0}
}

Enables editor/IDE integrations, CI pipelines, and programmatic consumption. Also removes timing info from text output (was noisy and not useful).

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Details
Benchmark suite Current: 3fb9660 Previous: b01e729 Ratio
cpython 0.05146138596000001 seconds (± 0.0036) 0.05178761414000001 seconds (± 0.0012) 0.99
airflow 0.13999005126 seconds (± 0.0024) 0.14476450323999998 seconds (± 0.0013) 0.97
prefect 0.05918685776000001 seconds (± 0.0013) 0.06071237704000001 seconds (± 0.0017) 0.97
ruff 0.12547482686 seconds (± 0.0026) 0.12811400753999996 seconds (± 0.0013) 0.98

This comment was automatically generated by workflow using github-action-benchmark.

@codecov
Copy link

codecov bot commented Jan 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.56%. Comparing base (b01e729) to head (3fb9660).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
+ Coverage   97.63%   98.56%   +0.92%     
==========================================
  Files          19       20       +1     
  Lines        2706     3062     +356     
==========================================
+ Hits         2642     3018     +376     
+ Misses         64       44      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jakekaplan jakekaplan marked this pull request as ready for review January 17, 2026 22:06
@jakekaplan jakekaplan merged commit d686935 into main Jan 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --output-format flag with JSON support

1 participant