Cybersecurity-Projects/PROJECTS
CarterPerez-dev 79851054fd fix(dlp-scanner): a call site that already names its arguments should say so in the signature
ruff 0.16.0 stabilized PLR0917 (too-many-positional-arguments) out of
preview. The project selects PL wholesale and CI installs ruff unpinned,
so the rule switched on by itself and four signatures went red without a
line of source changing.

Every flagged call site already passed the tail arguments by keyword, so
the signatures were understating a contract the code had already adopted.
Mark that tail keyword-only:

  DetectorRegistry.__init__   - six optional config knobs, all keyword
  _append_findings            - matches/text positional, context keyword
  _process_dns_packet         - packet data positional, context keyword
  _make_packet (test helper)  - eight defaulted fields, all keyword

_process_dns_packet was the only caller passing positionally; it now
names path/packet_num/dns_detector/result like every sibling call does.

313 tests pass, ruff clean on both 0.15.7 and 0.16.1, mypy unchanged at
its three pre-existing errors.
2026-07-31 19:09:36 -04:00
..
advanced Merge pull request #313 from CarterPerez-dev/dependabot/npm_and_yarn/PROJECTS/advanced/ai-threat-detection/frontend/axios-1.18.0 2026-07-20 20:40:45 -04:00
beginner Merge remote-tracking branch 'origin/main' into project/deserialization-gadget-lab 2026-07-30 23:05:20 -04:00
foundations chore(deps): bump idna in /PROJECTS/foundations/http-headers-scanner 2026-05-19 16:23:33 +00:00
intermediate fix(dlp-scanner): a call site that already names its arguments should say so in the signature 2026-07-31 19:09:36 -04:00