You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Report a File the Prose Gate Cannot Decode Instead of Skipping It #2796
bugSomething isn't workingpre-existingReview finding classed pre-existing per local-strict-review Disposing of FindingsproseA defect in rule or procedure text
The prose gate reads no line of a file whose bytes are not UTF-8, and says nothing about it. check_file in .github/actions/prose-gate/prose_lint.py catches the UnicodeDecodeError from its decode and returns no findings, so every rule, the character-set rule included, skips that file and the run reports the same clean scope line a tree of readable files prints. report_paths_that_are_not_utf8 covers a path name that does not decode, not file content.
For example, a constructed latin.py holding the bytes # caf\xe9 is fine.\nx = 1\n is counted as read and yields no finding under any rule.
Done
A file the gate cannot decode is reported, as a finding or in the scope line, so a pass that skipped it is distinguishable from a clean one.
Found by the local strict review of the #2163 fix (handoff #2795). The finding is on code that change did not touch.
bugSomething isn't workingpre-existingReview finding classed pre-existing per local-strict-review Disposing of FindingsproseA defect in rule or procedure text
Activity
Name a Python File the Prose Gate Cannot Parse in Its Scope Line (#2797)
Name a File the Prose Gate Cannot Decode in Its Scope Line (#2802)