Commits
Click on a commit to change the comparison rangeUpdate Schema5 months ago
by maxmynter (WIP) RUF060 should traverse execution path
Currently fails at properly handling try-except-else clauses.5 months ago
by maxmynter (WIP) Refactor Node traversal to use Stmt introspection
and override visit for Try. This may be important for match too.
Will check that tomorrow.5 months ago
by maxmynter (wip) Fix else clauses for loops and try blocks5 months ago
by maxmynter Factor out similar post-processing logic5 months ago
by maxmynter (refactor) Encapsulate yield stack top increment5 months ago
by maxmynter Cleanup5 months ago
by maxmynter (tests) Add tests for false positives in ecosystem changes5 months ago
by maxmynter Respect early returns in control flow yield count5 months ago
by maxmynter (tests) Add tests for except return handling5 months ago
by maxmynter (fixup) Update Rule name reference in comment4 months ago
by maxmynter Remove unreferenced Snapshot
that was stale from merge4 months ago
by maxmynter fix deeper merge conflicts Review Comments on tests3 months ago
by maxmynter Remove unreferenced snapshot3 months ago
by maxmynter Rename *_visit_preorder_* -> *_visit_source_order_*3 months ago
by maxmynter Discriminate between {async}contextmanager in error message3 months ago
by maxmynter Use HashMap to track violating Yield Expressions instead of count
We need a HashMap to track because a yield may be on several control
flow paths and thus added repeatedly to the violations.
Using the yield expressions we can later report multiple diagnostics
for a single violation. Currently, we report on the offending yields but
with a diagnostic for every particular one.3 months ago
by maxmynter Clippedyclip3 months ago
by maxmynter (fixup) Max except yield path detection3 months ago
by maxmynter Use shared slice instead of Vec3 months ago
by maxmynter Use static string slice allocation Refactor violation to use collection pattern Refactor to avoid loop check duplication (chore) Reduce duplication and improve naming (chore) Remove clone() operations (chore) Break down try stmt handling into smaller functions (test) Yield accumulation following loop break (refactor) Only clear yield scopes after returning loop else (refactor) Reporting simplifications (wip, tests) yield preceeding complex control flow (refactor) Simplify traversal (fixup, tests) Loop else handling Streamline if/else and match/case (chore) Align comments & test case naming