Skip to content

feat(quality): flag repository comment and docstring density - #1321

Merged
duriantaco merged 3 commits into
mainfrom
feat/repo-comment-density
Dec 1, 2026
Merged

duriantaco merged 3 commits into
mainfrom
feat/repo-comment-density

Conversation

@duriantaco

Copy link
Copy Markdown
Owner

Summary

  • Show one advisory when comments and Python docstrings cover at least 20% of nonblank source lines across the repo.
  • Show the percentage and line counts.
  • Count each line once, including lines with inline comments.

Tests

  • pytest test/test_repo_comment_density.py test/test_gatekeeper.py test/test_rich_report.py

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Skylos Analysis Summary

Gate: passed (advisory)

0 issues and 1 review-only group (1 finding) on changed lines | 1 total

View Skylos report

Details

AI PR Risk Passport

Merge recommendation: PASS

Signal Value
Files with recorded agent lines 0
Files with declared agent association 0
Agents -
Provenance confidence low
Changed-line evidence Proven 0 / Likely 0 / Speculative 0
High-risk agent-associated files -
Security controls weakened -
Missing LLM guardrails -
Severity Count
HIGH 1
Category Count
danger 1

Review-only security findings

  • SKY-D324 · 1 finding · External input could not be established. test_repo_comment_density.py:16

Skylos edits this comment on each push instead of adding a new one. Inline comments from earlier runs stay on the PR.

@duriantaco
duriantaco merged commit 6c2a906 into main Dec 1, 2026
31 checks passed
@duriantaco
duriantaco deleted the feat/repo-comment-density branch December 1, 2026 07:53
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.

1 participant