• 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

15.38
/src/MooseIDE-DeadCode/MiDeadJavaMainRule.class.st
1
"
2
A heuristic to recognize 'public static void main()' function in Java
3
"
4
Class {
5
        #name : 'MiDeadJavaMainRule',
6
        #superclass : 'MiDeadAbstractJavaRule',
7
        #category : 'MooseIDE-DeadCode-Rules',
8
        #package : 'MooseIDE-DeadCode',
9
        #tag : 'Rules'
10
}
11

12
{ #category : 'testing' }
NEW
13
MiDeadJavaMainRule >> accept: aTMethod [
×
14

×
15
        ^self notDead: aTMethod 
×
16
]
×
17

18
{ #category : 'accessing' }
NEW
19
MiDeadJavaMainRule >> description [
×
20

×
21
        ^super description ,
×
22
        '"public static void main()" methods are assumed not-dead'
×
23
]
×
24

25
{ #category : 'accessing' }
NEW
26
MiDeadJavaMainRule >> isForEntryPoint [
×
27

×
28
        ^true
×
29
]
×
30

31
{ #category : 'accessing' }
32
MiDeadJavaMainRule >> name [
2✔
33

2✔
34
        ^super name , 'main()'
2✔
35
]
2✔
36

37
{ #category : 'testing' }
NEW
38
MiDeadJavaMainRule >> notDead: aTMethod [
×
39

×
40
        (aTMethod name = 'main') ifFalse: [ ^false ].
×
41
        aTMethod declaredType ifNil: [ ^false ].
×
42
        (aTMethod declaredType name = 'void') ifNil: [ ^false ].
×
43
        aTMethod isClassSide ifFalse: [ ^false ].
×
44

×
45
        ^true
×
46
]
×
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