mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
style: delete every comment the comments-valid policy rejects
3529 invalid comments in 528 files, grandfathered in while the linter only saw the working-tree diff. Removal ran through the linter's own collectors, so detection and deletion cannot drift: a comment whose opener line is blank before it and whose closer line is blank after it loses all its lines, anything else loses only the comment region, and a line left holding a bare delimiter goes with it. Five files keep their comments behind a nocheck marker instead. Four are upstream configs whose inline docs are upstream's own (mautrix, systemd journald, nextcloud-oidc-login, MediaWiki). In littlejs the commented-out entries ARE the deactivation mechanism for an example tile, so deleting them would delete configuration. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b36ef6bfc4
commit
5137465c6f
513 files changed
+334
-3136
No files matched your search
@@ -42,10 +42,6 @@ class TestPythonShebangs(unittest.TestCase):
|
||||
def _is_ansible_custom_module(path: Path, repo_root: Path) -> bool:
|
||||
rel = path.relative_to(repo_root)
|
||||
parts = rel.parts
|
||||
# Custom Ansible modules live in a `library/` directory (per-role
|
||||
# / per-playbook layout) or in `plugins/modules/` (collection-
|
||||
# style layout). Both paths get their interpreter rewritten by
|
||||
# Ansible, so `#!/usr/bin/python` is the correct shebang.
|
||||
if parts[0] == "library" or "library" in parts[1:]:
|
||||
return True
|
||||
return len(parts) >= 2 and parts[0] == "plugins" and parts[1] == "modules"
|
||||
@@ -62,7 +58,6 @@ class TestPythonShebangs(unittest.TestCase):
|
||||
if not first_line.startswith("#!"):
|
||||
continue
|
||||
|
||||
# Only validate shebangs that invoke Python.
|
||||
if "python" not in first_line.lower():
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user