Skip to content

Commit 0a122b0

Browse files
authored
prepare 2.5.0 (#477)
* prepare 2.5.0
1 parent b021d35 commit 0a122b0

File tree

7 files changed

+27
-6
lines changed

7 files changed

+27
-6
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ script:
1212
- haxe build.hxml
1313
- haxe buildDebug.hxml
1414
- haxe buildJS.hxml
15+
- haxe buildCpp.hxml
1516
- haxe buildSchema.hxml
1617
- haxe -D codecov_json buildTest.hxml
1718
- haxe testJava.hxml
@@ -26,6 +27,7 @@ matrix:
2627
- haxelib git mcover https://github.com/massiveinteractive/mcover master src
2728
- haxelib git munit https://github.com/massiveinteractive/MassiveUnit master src
2829
- haxelib install hxjava
30+
- haxelib install hxcpp
2931
- haxelib install haxeparser 3.3.0
3032
- haxelib install compiletime 2.6.0
3133
- haxelib install hxargs 3.0.2
@@ -42,6 +44,7 @@ matrix:
4244
- haxelib git hxnodejs https://github.com/HaxeFoundation/hxnodejs.git master
4345
- haxelib git json2object https://github.com/elnabo/json2object
4446
- haxelib install hxjava
47+
- haxelib install hxcpp
4548
- haxelib install mlib
4649
- haxelib install mconsole
4750
- haxelib install compiletime 2.6.0

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## dev branch / next version (2.x.x)
44

5+
## version 2.5.0 (2019-10-10)
6+
57
- **Breaking Change** split `OperatorWhitespaceCheck.functionArgPolicy` into `arrowFunctionPolicy`, `oldFunctionTypePolicy` and `newFunctionTypePolicy` [#467](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/467)
68
- **Breaking Change** using `--` for long options in cli ([#472](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/472))
79
- New check BlockBreakingConditional ([#471](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/471))

buildCpp.hxml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
buildGlobal.hxml
2+
# -lib hxcpp-debugger
3+
# -D HXCPP_DEBUGGER
4+
5+
# -D HXCPP_STACK_TRACE
6+
# -D HXCPP_STACK_LINE
7+
8+
# -debug
9+
-main checkstyle.Main
10+
-cpp out

haxelib.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
],
1515
"description": "Automated code analysis ideal for projects that want to enforce a coding standard.",
1616
"contributors": [
17-
"adireddy",
1817
"AlexHaxe",
18+
"adireddy",
1919
"Gama11"
2020
],
21-
"releasenote": "new checks for doc comments (type, field and style) and redundant @:access/@:allow metas - see CHANGELOG",
22-
"version": "2.4.2",
21+
"releasenote": "breaking changes: command line options and OperatorWhitespace settings changed, new checks InlineFinal and BlockBreakingConditional, increased Haxe 4 compatibility, some formatter related fixes and a few bugfixes - see CHANGELOG",
22+
"version": "2.5.0",
2323
"url": "https://github.com/HaxeCheckstyle/haxe-checkstyle",
2424
"dependencies": {}
2525
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "haxe-checkstyle",
3-
"version": "2.4.2",
3+
"version": "2.5.0",
44
"description": "Automated code analysis ideal for projects that want to enforce a coding standard.",
55
"repository": {
66
"type": "git",

test/checkstyle/checks/modifier/InlineFinalCheckTest.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class InlineFinalCheckTest extends CheckTestCase<InlineFinalCheckTests> {
2222
abstract InlineFinalCheckTests(String) to String {
2323
var TEST_INLINE_FINAL = "
2424
abstractAndClass Test {
25-
public inline final test:String=0;
25+
public inline final test:String='0';
2626
final function test2() {
2727
}
2828
}";
2929
var TEST_INLINE_VAR = "
3030
abstractAndClass Test {
31-
inline public var test:String=0;
31+
inline public var test:String='0';
3232
inline function test2() {
3333
}
3434
}";

test/checkstyle/checks/modifier/PublicAccessorCheckTest.hx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class PublicAccessorCheckTest extends CheckTestCase<PublicAccessorCheckTests> {
66
@Test
77
public function testNonAccessors() {
88
assertNoMsg(new PublicAccessorCheck(), NON_ACCESSOR);
9+
assertNoMsg(new PublicAccessorCheck(), PRIVATE_ACCESSOR);
910
}
1011

1112
@Test
@@ -26,6 +27,11 @@ abstract PublicAccessorCheckTests(String) to String {
2627
public function _set_test() {}
2728
public function _get_test() {}
2829
}";
30+
var PRIVATE_ACCESSOR = "
31+
abstractAndClass Test {
32+
private function set_test() {}
33+
private function get_test() {}
34+
}";
2935
var PUBLIC_GETTER = "
3036
abstractAndClass Test {
3137
public function get_test() {}

0 commit comments

Comments
 (0)