| 113 | |
| 114 | # --- CENTER927 / LJUST930 / RJUST933 --- |
| 115 | class TestJustification: |
| 116 | def test_center_silent_disabled(self): |
| 117 | # CENTER927 disabled: string centering is a cosmetic operation — not a sink. |
| 118 | assert not_fires("w=request.GET.get('w'); 'x'.center(w)", "CENTER927") |
| 119 | def test_center_constant_safe(self): |
| 120 | assert not_fires("'x'.center(80)", "CENTER927") |
| 121 | def test_ljust_silent_disabled(self): |
| 122 | # LJUST930 disabled: string left-justification is not a security sink. |
| 123 | assert not_fires("w=request.GET.get('w'); 'x'.ljust(w)", "LJUST930") |
| 124 | def test_rjust_silent_disabled(self): |
| 125 | # RJUST933 disabled: zero findings across all scanned repos. |
| 126 | assert not_fires("w=request.GET.get('w'); 'x'.rjust(w)", "RJUST933") |
| 127 | |
| 128 | # --- RANGE1056 --- |
| 129 | class TestRange1056: |
nothing calls this directly
no outgoing calls
no test coverage detected