mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
50 lines
1.0 KiB
Python
50 lines
1.0 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
|