• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / GitProjectHealth / 16490676332

24 Jul 2025 07:32AM UTC coverage: 73.002% (-0.2%) from 73.181%
16490676332

Pull #219

github

web-flow
Merge b23203f76 into 55903cdcb
Pull Request #219: branch metrics

79 of 191 new or added lines in 8 files covered. (41.36%)

30 existing lines in 2 files now uncovered.

17798 of 24380 relevant lines covered (73.0%)

0.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

14.81
/src/GitLabHealth-Model-Analysis/CommitWithoutUsernameProjectMetric.class.st
1
Class {
2
        #name : #CommitWithoutUsernameProjectMetric,
3
        #superclass : #ProjectMetric,
4
        #category : #'GitLabHealth-Model-Analysis'
5
}
6

7
{ #category : #calculating }
NEW
8
CommitWithoutUsernameProjectMetric >> calculate [
×
NEW
9

×
NEW
10
        | groupedByDate filteredCommits|
×
NEW
11
        projectCommits ifNil: [ self load ].
×
NEW
12
        
×
NEW
13
        groupedByDate := self setupGroupedDate.
×
NEW
14
        
×
NEW
15
        filteredCommits := projectCommits select: [ :c |
×
NEW
16
                c commitCreator isFakeUser 
×
NEW
17
                 ].
×
NEW
18
        
×
NEW
19
        filteredCommits do: [ :c |
×
NEW
20
                | dateOver |
×
NEW
21
                dateOver := self transformDate: c created_at to: over.
×
NEW
22
                groupedByDate at: dateOver printString ifPresent: [ :v | v add: c ] ].
×
NEW
23

×
NEW
24
        groupedByDate := groupedByDate collect: [ :group | group size ].
×
NEW
25

×
NEW
26
        ^ groupedByDate average asFloat
×
NEW
27
]
×
28

29
{ #category : #accessing }
30
CommitWithoutUsernameProjectMetric >> description [
1✔
31

1✔
32
        ^ 'Nb Commit without a real username (avg)'
1✔
33
]
1✔
34

35
{ #category : #loading }
NEW
36
CommitWithoutUsernameProjectMetric >> load [
×
NEW
37
        projectCommits := self loadCommitsSince: (period at: #since) until: (period at: #until) 
×
NEW
38
]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc