Skip to content

Commit 2367eec

Browse files
committed
cleanup
1 parent f7201ce commit 2367eec

File tree

6 files changed

+18
-15
lines changed

6 files changed

+18
-15
lines changed

test/AnonymousCheckTest.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import checkstyle.checks.AnonymousCheck;
44

55
class AnonymousCheckTest extends CheckTestCase {
66

7-
public function testAnonymousStructureClassVar(){
7+
public function testAnonymousStructureClassVar() {
88
var msg = checkMessage(AnonymousTests.TEST1, new AnonymousCheck());
99
assertEquals(msg, 'Anonymous structure found, it is advised to use a typedef instead "_anonymous"');
1010
}
1111

12-
public function testAnonymousStructureLocalVar(){
12+
public function testAnonymousStructureLocalVar() {
1313
var msg = checkMessage(AnonymousTests.TEST2, new AnonymousCheck());
1414
assertEquals(msg, 'Anonymous structure found, it is advised to use a typedef instead "b"');
1515
}

test/ArrayInstantiationCheckTest.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import checkstyle.checks.ArrayInstantiationCheck;
44

55
class ArrayInstantiationCheckTest extends CheckTestCase {
66

7-
public function testWrongArrayInstantiation(){
7+
public function testWrongArrayInstantiation() {
88
var msg = checkMessage(ArrayInstantiationTests.TEST1, new ArrayInstantiationCheck());
99
assertEquals(msg, 'Bad array instantiation, use the array literal notation [] which is faster');
1010
}
1111

12-
public function testCorrectArrayInstantiation(){
12+
public function testCorrectArrayInstantiation() {
1313
var msg = checkMessage(ArrayInstantiationTests.TEST2, new ArrayInstantiationCheck());
1414
assertEquals(msg, '');
1515
}

test/BlockFormatCheckTest.hx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import checkstyle.checks.BlockFormatCheck;
44

55
class BlockFormatCheckTest extends CheckTestCase {
66

7-
public function testCorrectBlockFormat(){
7+
public function testCorrectBlockFormat() {
88
var msg = checkMessage(BlockFormatTests.TEST, new BlockFormatCheck());
99
assertEquals(msg, '');
1010
}
1111

12-
public function testWrongBlockFormat(){
12+
public function testWrongBlockFormat() {
1313
var msg = checkMessage(BlockFormatTests.TEST1, new BlockFormatCheck());
1414
assertEquals(msg, 'Empty block should be written as {}');
1515
}
1616

17-
public function testBlockFormatFirstLine(){
17+
public function testBlockFormatFirstLine() {
1818
var msg = checkMessage(BlockFormatTests.TEST2, new BlockFormatCheck());
1919
assertEquals(msg, 'First line of multiline block should contain only {');
2020
}
2121

22-
public function testBlockFormatLastLine(){
22+
public function testBlockFormatLastLine() {
2323
var msg = checkMessage(BlockFormatTests.TEST3, new BlockFormatCheck());
2424
assertEquals(msg, 'Last line of multiline block should contain only } and maybe , or ;');
2525
}

test/CheckTestCase.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ class TestReporter implements IReporter {
3939
}
4040

4141
public function start() {}
42+
4243
public function finish() {}
44+
4345
public function fileStart(f:LintFile) {}
46+
4447
public function fileFinish(f:LintFile) {}
4548

4649
public function addMessage(m:LintMessage) {

test/EmptyLinesCheckTest.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import checkstyle.checks.EmptyLinesCheck;
44

55
class EmptyLinesCheckTest extends CheckTestCase {
66

7-
public function testDefaultEmptyLines(){
7+
public function testDefaultEmptyLines() {
88
var msg = checkMessage(EmptyLinesTests.TEST1, new EmptyLinesCheck());
99
assertEquals(msg, 'Too many consecutive empty lines (> 1)');
1010
}
1111

12-
public function testCorrectEmptyLines(){
12+
public function testCorrectEmptyLines() {
1313
var msg = checkMessage(EmptyLinesTests.TEST2, new EmptyLinesCheck());
1414
assertEquals(msg, '');
1515
}
1616

17-
public function testConfigurableEmptyLines(){
17+
public function testConfigurableEmptyLines() {
1818
var check = new EmptyLinesCheck();
1919
check.maxConsecutiveEmptyLines = 2;
2020

test/ListenerNameCheckTest.hx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import checkstyle.checks.ListenerNameCheck;
44

55
class ListenerNameCheckTest extends CheckTestCase {
66

7-
public function testCorrectListenerName(){
7+
public function testCorrectListenerName() {
88
var msg = checkMessage(ListernerTests.TEST, new ListenerNameCheck());
99
assertEquals(msg, '');
1010
}
1111

12-
public function testListenerName1(){
12+
public function testListenerName1() {
1313
var msg = checkMessage(ListernerTests.TEST1, new ListenerNameCheck());
1414
assertEquals(msg, 'Wrong listener name, prefix with "on": _testUpdate');
1515
}
1616

17-
public function testListenerName2(){
17+
public function testListenerName2() {
1818
var msg = checkMessage(ListernerTests.TEST2, new ListenerNameCheck());
1919
assertEquals(msg, 'Wrong listener name, prefix with "on": _testUpdate');
2020
}
2121

22-
public function testListenerName3(){
22+
public function testListenerName3() {
2323
var msg = checkMessage(ListernerTests.TEST3, new ListenerNameCheck());
2424
assertEquals(msg, 'Wrong listener name, prefix with "on": _testUpdate');
2525
}

0 commit comments

Comments
 (0)