Skip to content

chore: name the rule and reason on the hooks.py semgrep waiver - #133

Merged
aakvatech merged 1 commit into
Aakvatech-Limited:version-16-hotfixfrom
av-dev2:chore/av-tools-v16-waiver-reason
Aug 28, 2026
Merged

chore: name the rule and reason on the hooks.py semgrep waiver#133
aakvatech merged 1 commit into
Aakvatech-Limited:version-16-hotfixfrom
av-dev2:chore/av-tools-v16-waiver-reason

Conversation

@av-dev2

@av-dev2 av-dev2 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #132, which merged before this commit landed.

av_tools/hooks.py carried a bare trailing # nosemgrep:

override_doctype_class = {"Report": "..."}  # nosemgrep

A bare waiver silences every rule on that line, not just the one that was
reviewed, and records no reason. A rule that starts firing there later is
suppressed silently.

It now names the rule and says why, matching the other waivers in this app and
the form already on version-15-hotfix:

# ReportOverride subclasses frappe own Report; this is the documented hook.
# nosemgrep: frappe-semgrep-rules.rules.override-doctype-class
override_doctype_class = {"Report": "..."}

No behaviour change. pre-commit run --all-files passes.

The waiver was a bare # nosemgrep, which silences every rule on that line and
records no reason. Now names override-doctype-class and says why, matching the
other waivers in this app.
@aakvatech
aakvatech merged commit 3c224ff into Aakvatech-Limited:version-16-hotfix Aug 28, 2026
4 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.

3 participants