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

moosetechnology / MooseIDE / 21818695493

09 Feb 2026 09:02AM UTC coverage: 65.926% (+0.1%) from 65.829%
21818695493

push

github

web-flow
Merge pull request #1588 from moosetechnology/dead-code-heuristic-groups

Dead code heuristic groups

508 of 568 new or added lines in 21 files covered. (89.44%)

21882 of 33192 relevant lines covered (65.93%)

1.32 hits per line

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

71.88
/src/MooseIDE-DeadCode/MiDeadAbstractJavaRule.class.st
1
"
2
An abstract class for all Java heuristics
3
Adds 'Java:' to the description
4
"
5
Class {
6
        #name : 'MiDeadAbstractJavaRule',
7
        #superclass : 'MiDeadAbstractRule',
8
        #category : 'MooseIDE-DeadCode-Rules',
9
        #package : 'MooseIDE-DeadCode',
10
        #tag : 'Rules'
11
}
12

13
{ #category : 'accessing' }
NEW
14
MiDeadAbstractJavaRule class >> heuristicGroups [
×
NEW
15

×
NEW
16
        ^#( Java ) , super heuristicGroups
×
NEW
17
]
×
18

19
{ #category : 'accessing' }
NEW
20
MiDeadAbstractJavaRule >> description [
×
21

×
22
        ^super description ,
×
23
        'Java: '
×
24
]
×
25

26
{ #category : 'testing' }
27
MiDeadAbstractJavaRule >> implementedInterfaceHierarchy: aType [
2✔
28
        "aTCanImplement can be a TClass or a TInterface.
2✔
29
         Need to differentiate them"
2✔
30

2✔
31
        ^(self isInterface: aType)
2✔
32
                ifTrue: [ { aType } , (aType superclassHierarchy) ]
2✔
33
                ifFalse: [ aType directImplementedInterfaces flatCollectAsSet: [:interface |
2✔
34
                        self implementedInterfaceHierarchy: interface ]
2✔
35
                ]
2✔
36
]
2✔
37

38
{ #category : 'testing' }
39
MiDeadAbstractJavaRule >> isInterface: aType [
2✔
40

2✔
41
        ^aType mooseDescription allProperties
2✔
42
                noneSatisfy: [ :fmProp | fmProp name = #interfaceImplementations ].
2✔
43
]
2✔
44

45
{ #category : 'accessing' }
46
MiDeadAbstractJavaRule >> name [
2✔
47

2✔
48
        ^'Java: '
2✔
49
]
2✔
50

51
{ #category : 'accessing' }
52
MiDeadAbstractJavaRule >> ruleGroup [
2✔
53

2✔
54
        ^#Java
2✔
55
]
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc