Skip to content

Commit

Permalink
updated tokentree lib
Browse files Browse the repository at this point in the history
added MethodName unittest
  • Loading branch information
AlexHaxe committed Oct 2, 2024
1 parent 7b9a737 commit 798699d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

## version 2.9.0 (2024-06-10)

- New check `FileNameCase` to check file names match module names
- Fixed XMLReporter to no longer escape `/` to `/`
- New check `FileNameCase` to check file names match module names ([#527](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/527))
- Fixed XMLReporter to no longer escape `/` to `/` ([#527](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/527))

## version 2.8.5 (2023-02-15)

Expand Down
6 changes: 3 additions & 3 deletions haxe_libraries/tokentree.hxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @install: lix --silent download "haxelib:/tokentree#1.2.13" into tokentree/1.2.13/haxelib
-cp ${HAXE_LIBCACHE}/tokentree/1.2.13/haxelib/src
-D tokentree=1.2.13
# @install: lix --silent download "haxelib:/tokentree#1.2.15" into tokentree/1.2.15/haxelib
-cp ${HAXE_LIBCACHE}/tokentree/1.2.15/haxelib/src
-D tokentree=1.2.15
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Automated code analysis ideal for projects that want to enforce a coding standard.",
"repository": {
"type": "git",
"url": "git+https://github.com/HaxeCheckstyle/haxe-checkstyle"
"url": "git+https://github.com/HaxeCheckstyle/haxe-checkstyle.git"
},
"keywords": [
"checkstyle",
Expand All @@ -30,7 +30,7 @@
],
"devDependencies": {
"lix": "^15.12.0",
"uglify-js-es6": "^2.8.9"
"uglify-js-es6": "^2.8.9"
},
"bugs": "https://github.com/HaxeCheckstyle/haxe-checkstyle/issues",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions test/checkstyle/checks/naming/MethodNameCheckTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class MethodNameCheckTest extends CheckTestCase<MethodNameCheckTests> {
var check = new MethodNameCheck();
assertNoMsg(check, TEST);
assertNoMsg(check, TEST4);
assertNoMsg(check, TEST_SUPPRESS_CLASS);
}

@Test
Expand Down Expand Up @@ -197,4 +198,12 @@ enum abstract MethodNameCheckTests(String) to String {
static inline function Test1() {}
function Test3() {}
}";
var TEST_SUPPRESS_CLASS = "
@SuppressWarnings('checkstyle:MethodName')
abstractAndClass Test {
static public function Test() {}
static inline public function Test1() {}
public function Test2() {}
function Test3() {}
}";
}

0 comments on commit 798699d

Please sign in to comment.