Skip to content

Commit dfa6f88

Browse files
author
Gonzalo Diaz
committed
[CONFIG] setting camelCase as default naming convention for function names (match with Hacker Rank interface).
1 parent 0135eee commit dfa6f88

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ const-naming-style=UPPER_CASE
552552
docstring-min-length=-1
553553

554554
# Naming style matching correct function names.
555-
function-naming-style=snake_case
555+
function-naming-style=camelCase
556556

557557
# Regular expression matching correct function names. Overrides function-
558558
# naming-style. If left empty, function names will be checked with the set

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ sonar.issue.ignore.multicriteria=e1
2424
# python:S6792 Use the "type" parameter syntax to declare this generic class.
2525
sonar.issue.ignore.multicriteria.e1.ruleKey=python:S6792
2626
sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.py
27+
sonar.python.naming.function=^[a-z][a-zA-Z0-9]*$

0 commit comments

Comments
 (0)