mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
function/class synatax
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Test:
|
||||
|
||||
# BAD, do not start function name with uppercase letter
|
||||
def HelloWorld(self):
|
||||
print("hello world")
|
||||
|
||||
# GOOD, function name starts with lowercase letter
|
||||
def hello_world(self):
|
||||
print("hello world")
|
||||
Reference in New Issue
Block a user