mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
QL tests for Python queries and libraries.
This commit is contained in:
8
python/ql/test/library-tests/encoding/CheckEncoding.ql
Normal file
8
python/ql/test/library-tests/encoding/CheckEncoding.ql
Normal file
@@ -0,0 +1,8 @@
|
||||
import python
|
||||
|
||||
from File f, string encoding
|
||||
where
|
||||
encoding = f.getSpecifiedEncoding()
|
||||
or
|
||||
not exists(f.getSpecifiedEncoding()) and encoding = "none"
|
||||
select f.getName(), encoding
|
||||
Reference in New Issue
Block a user