File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -76,20 +76,20 @@ module CppMetrics {
76
76
override int getValue ( ) { result = count ( Compilation c ) }
77
77
}
78
78
79
- class SourceFiles extends BaseMetric {
80
- SourceFiles ( ) { this = "source files" }
79
+ class SourceAndHeaderFiles extends BaseMetric {
80
+ SourceAndHeaderFiles ( ) { this = "source/header files" }
81
81
82
82
override int getValue ( ) { result = count ( File f | f .fromSource ( ) ) }
83
83
}
84
84
85
- class SourceFilesWithoutErrors extends SuccessMetric {
86
- SourceFilesWithoutErrors ( ) { this = "source files without errors" }
85
+ class SourceAndHeaderFilesWithoutErrors extends SuccessMetric {
86
+ SourceAndHeaderFilesWithoutErrors ( ) { this = "source/header files without errors" }
87
87
88
88
override int getValue ( ) {
89
89
result = count ( File f | f .fromSource ( ) and not exists ( CompilerError e | f = e .getFile ( ) ) )
90
90
}
91
91
92
- override SourceFiles getBaseline ( ) { any ( ) }
92
+ override SourceAndHeaderFiles getBaseline ( ) { any ( ) }
93
93
}
94
94
95
95
class CompilationsWithoutErrors extends SuccessMetric {
Original file line number Diff line number Diff line change 4
4
| Percentage of functions without errors | 75.0 |
5
5
| Percentage of lines of code without errors | 63.1578947368421 |
6
6
| Percentage of non-error expressions | 30.0 |
7
- | Percentage of source files without errors | 66.66666666666667 |
7
+ | Percentage of source/header files without errors | 66.66666666666667 |
8
8
| Percentage of successfully resolved #include directives | 100.0 |
9
9
| Percentage of variables with a known type | 90.0 |
Original file line number Diff line number Diff line change 12
12
| lines of code without errors | 12 |
13
13
| lines of text | 24 |
14
14
| non-error expressions | 3 |
15
- | source files | 3 |
16
- | source files without errors | 2 |
15
+ | source/header files | 3 |
16
+ | source/header files without errors | 2 |
17
17
| successfully resolved #include directives | 2 |
18
18
| syntax errors | 3 |
19
19
| variables | 10 |
You can’t perform that action at this time.
0 commit comments