Fix FP for py/should-use-with · github/codeql@415857c · GitHub
Skip to content

Commit 415857c

Browse files
committed
Fix FP for py/should-use-with
1 parent d721446 commit 415857c

3 files changed

Lines changed: 34 additions & 6 deletions

File tree

‎python/ql/src/Statements/ShouldUseWithStatement.ql‎

Lines changed: 29 additions & 2 deletions
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
| test.py:168:9:168:17 | Attribute() | Instance of context-manager class $@ is closed in a finally block. Consider using 'with' statement. | test.py:151:1:151:17 | Class CM | CM |
2-
| test.py:182:13:182:26 | Attribute() | Instance of context-manager class $@ is closed in a finally block. Consider using 'with' statement. | test.py:151:1:151:17 | Class CM | CM |

‎python/ql/test/query-tests/Statements/general/test.py‎

Lines changed: 5 additions & 3 deletions

0 commit comments

Comments
 (0)