mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
moved to experimental
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @name Misnamed function
|
||||
* @description A function name that begins with an uppercase letter decreases readability.
|
||||
* @kind problem
|
||||
* @problem.severity recommendation
|
||||
* @precision medium
|
||||
* @id python/misnamed-function
|
||||
* @tags maintainability
|
||||
*/
|
||||
|
||||
import python
|
||||
|
||||
from Function f
|
||||
where
|
||||
f.inSource() and
|
||||
not f.getName().substring(0, 1).toLowerCase() = f.getName().substring(0, 1)
|
||||
select f, "Function names should start in lowercase."
|
||||
Reference in New Issue
Block a user