smart-on-fhir/cumulus-etl

Refactor: do a pass to remove `noqa: S*` lines

Open

#186 opened on Mar 10, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (8 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (25 stars)
PR merge metrics
 (PR metrics pending)

Description

None of the current noqa: S* lines are security issues. But it's still a nicer story if there aren't any.

We have two kinds of security linter exemptions right now:

  • SQL injection (because there's no user input involved, it's just basic string formatting)
  • assert lines (because it's OK that they get ignored in optimized code, as they are just sanity checks for developers writing new tasks)

So both could be fixed easily enough (SQL maybe would use some version of bound variables and the asserts could be re-written or just dropped).

Not a high priority, but might be nice to do, to simplify the security story.

Contributor guide