Skip to content

Commit 8dec319

Browse files
committed
changed error description
1 parent 98118e2 commit 8dec319

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

checkstyle/checks/TypeCheck.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ class TypeCheck extends Check {
3434
}
3535

3636
function _error(name:String, pos:Position) {
37-
logPos('Missing type: ${name}', pos, Reflect.field(SeverityLevel, severity));
37+
logPos('Type not specified: ${name}', pos, Reflect.field(SeverityLevel, severity));
3838
}
3939
}

run.n

6 Bytes
Binary file not shown.

test/TypeCheckTest.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ class TypeCheckTest extends CheckTestCase {
66

77
public function testClassVar() {
88
var msg = checkMessage(TypeTests.TEST1, new TypeCheck());
9-
assertEquals(msg, 'Missing type: _a');
9+
assertEquals(msg, 'Type not specified: _a');
1010
}
1111

1212
public function testStaticClassVar() {
1313
var msg = checkMessage(TypeTests.TEST2, new TypeCheck());
14-
assertEquals(msg, 'Missing type: A');
14+
assertEquals(msg, 'Type not specified: A');
1515
}
1616
}
1717

0 commit comments

Comments
 (0)