Commit 24a29f4
committed
Python: Fix all metrics-related compilation failures
In hindsight, having a `.getMetrics()` method that just returns `this`
is somewhat weird. It's possible that it predates the existence of the
inline cast, however.1 parent c75329d commit 24a29f4Copy full SHA for 24a29f4
34 files changed
+82-51Lines changed: 82 additions & 51 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- python/ql
- src
- Functions
- Metrics
- History
- Statements
- Summary
- analysis
- meta/debug
- test
- library-tests/ControlFlow/general
- query-tests/Metrics/ratios
Expand file treeCollapse file tree
Open diff view settings
Collapse file
python/ql/src/Functions/OverlyComplexDelMethod.ql
Copy file name to clipboardExpand all lines: python/ql/src/Functions/OverlyComplexDelMethod.ql+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
| 21 | + |
22 | 22 | |
23 | 23 | |
Collapse file
python/ql/src/Metrics/CLinesOfCode.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/CLinesOfCode.ql+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
13 | 14 | |
14 | | - |
15 | | - |
| 15 | + |
| 16 | + |
Collapse file
python/ql/src/Metrics/ClassAfferentCoupling.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/ClassAfferentCoupling.ql+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | 17 | |
Collapse file
python/ql/src/Metrics/ClassEfferentCoupling.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/ClassEfferentCoupling.ql+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | 17 | |
Collapse file
python/ql/src/Metrics/CommentRatio.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/CommentRatio.ql+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
15 | 16 | |
16 | | - |
17 | | - |
18 | | - |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
19 | 21 | |
Collapse file
python/ql/src/Metrics/CyclomaticComplexity.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/CyclomaticComplexity.ql+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | | - |
18 | | - |
| 18 | + |
| 19 | + |
19 | 20 | |
Collapse file
python/ql/src/Metrics/DocStringRatio.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/DocStringRatio.ql+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
14 | 15 | |
15 | | - |
16 | | - |
17 | | - |
| 16 | + |
| 17 | + |
| 18 | + |
18 | 19 | |
19 | 20 | |
Collapse file
python/ql/src/Metrics/FLines.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/FLines.ql+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | | - |
14 | | - |
| 14 | + |
| 15 | + |
15 | 16 | |
Collapse file
python/ql/src/Metrics/FLinesOfCode.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/FLinesOfCode.ql+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
14 | 15 | |
15 | | - |
16 | | - |
| 16 | + |
| 17 | + |
17 | 18 | |
Collapse file
python/ql/src/Metrics/FLinesOfComments.ql
Copy file name to clipboardExpand all lines: python/ql/src/Metrics/FLinesOfComments.ql+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
13 | 14 | |
14 | | - |
15 | | - |
16 | | - |
| 15 | + |
| 16 | + |
17 | 17 | |
0 commit comments