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

moosetechnology / MooseIDE / 21818244067

09 Feb 2026 08:47AM UTC coverage: 65.926% (+0.1%) from 65.829%
21818244067

Pull #1588

github

web-flow
Merge fc265c22e into 040822bc9
Pull Request #1588: 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