Files
codeql/python/ql/test/query-tests/analysis/suppression/testWindows.py
2022-12-21 11:26:16 +01:00

59 lines
1.2 KiB
Python

# Formatting tests:
"" # lgtm
"" # lgtm[py/line-too-long]
"" # lgtm[py/line-too-long, py/non-callable-called]
"" # lgtm[@tag:security]
"" # lgtm[@tag:security,py/line-too-long]
"" # lgtm[@expires:2017-06-11]
"" # lgtm[py/non-callable-called] because I know better than lgtm
"" # lgtm: blah blah
"" # lgtm blah blah #falsepositive
"" # lgtm blah blah -- falsepositive
"" #lgtm [py/non-callable-called]
"" # lgtm[]
"" # lgtmfoo
"" #lgtm
"" # lgtm
"" # lgtm [py/line-too-long]
"" # lgtm lgtm
#lgtm -- Ignore this -- No line or scope.
#On real code:
def foo(): #lgtm [func]
# lgtm -- Blank line (ignore for now, maybe scope wide in future).
"docstring" # lgtm on docstring
return { #lgtm [py/duplicate-key-in-dict]
"a": 1,
"a": 2
}
class C: # lgtm class
def meth(self): # lgtm method
pass
""#noqa
"" # noqa
"The following should be ignored"
# flake8: noqa
# noqa: F401
# noqa -- Some extra detail.
#Ignore
"" # lgtm[py/line-too-long] and lgtm[py/non-callable-called]
"" # lgtm[py/line-too-long]; lgtm
#CodeQL comments
# codeql[py/line-too-long]
""
#CODEQL[py/line-too-long]
""
# codeql[py/line-too-long] -- because I know better than codeql
""
"" # codeql[py/line-too-long]