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

moosetechnology / GitProjectHealth / 10664257731

02 Sep 2024 09:11AM UTC coverage: 18.06%. First build
10664257731

Pull #46

github

web-flow
Merge f972c3087 into 3d150934d
Pull Request #46: refactor: change metric structure

0 of 840 new or added lines in 23 files covered. (0.0%)

1590 of 8804 relevant lines covered (18.06%)

0.18 hits per line

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

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

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

×
NEW
10
        | groupedByDate dateOver projects |
×
NEW
11
        userCommits ifNil: [ self load ].
×
NEW
12
        groupedByDate := self setupGroupedDate.
×
NEW
13

×
NEW
14
        userCommits do: [ :userCommit |
×
NEW
15
                dateOver := self transformDate: userCommit committed_date to: over.
×
NEW
16

×
NEW
17
                groupedByDate
×
NEW
18
                        at: dateOver printString
×
NEW
19
                        ifPresent: [ :value | value add: userCommit repository project ] ].
×
NEW
20

×
NEW
21
        groupedByDate := groupedByDate collect: [ :group |
×
NEW
22
                                 projects := Set newFrom: group.
×
NEW
23
                                 projects size ].
×
NEW
24

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

28
{ #category : #accessing }
NEW
29
ContributedProjectMetric >> description [
×
NEW
30

×
NEW
31
        ^ 'number of project with min 1 commit of user'
×
NEW
32
]
×
33

34
{ #category : #accessing }
NEW
35
ContributedProjectMetric >> name [
×
NEW
36

×
NEW
37
        ^ 'contributedProject'
×
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

© 2025 Coveralls, Inc