File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,8 @@ This file contains all the rules for the supported languages.
5
5
* If the function names are not in snake case, decrease score of 3 points
6
6
* If the function names is longer than 25 characters, decrease score of 1 points
7
7
* If the function body contains more than 30 lines, decrease score of 5 points
8
- * If the line in a function have more than 80 characters, decrease score of 1 point
8
+ * If the line in a function have more than 80 characters, decrease score of 1 point
9
+
10
+ ## Python
11
+ * If the function names are not in snake case, decrease score of 3 points
12
+ * If the function names is longer than 25 characters, decrease score of 1 points
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ export class PythonVisitor {
24
24
if ( ! CommonQualityFunction . isSnakeCase ( funcName ) ) {
25
25
this . codeQuality . score -= 3 ;
26
26
}
27
+ if ( funcName . length > 25 ) {
28
+ this . codeQuality . score -= 1 ;
29
+ }
27
30
}
28
31
} ) ;
29
32
} ,
You can’t perform that action at this time.
0 commit comments