Skip to content

Commit dd53a9e

Browse files
authored
added FileNameCase check (#527)
* added FileNameCase check * removed escaping of `/` from XMLReporter
1 parent 35ed8f1 commit dd53a9e

17 files changed

+363
-138
lines changed

.github/workflows/checkstyle-linux.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
CC_TEST_REPORTER_ID: c4eda639526d39fbcab7ab9fc68c4046d4e597df56dbcb552b42d27b3580b758
2121
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2222
steps:
23-
- uses: actions/checkout@v1
24-
- name: Use Node.js 12
25-
uses: actions/setup-node@v1
23+
- uses: actions/checkout@v4
24+
- name: Use Node.js 18
25+
uses: actions/setup-node@v4
2626
with:
27-
node-version: 12
27+
node-version: 18
2828
- name: Installing codeclimate client
2929
if: matrix.haxe-version == 'nightly'
3030
run: |
@@ -76,6 +76,11 @@ jobs:
7676
../cc-test-reporter format-coverage -t lcov ../lcov.info; \
7777
../cc-test-reporter upload-coverage; \
7878
)
79+
# - name: Checkstyle report annotations
80+
# if: success()
81+
# uses: jwgmeligmeyling/checkstyle-github-action@master
82+
# with:
83+
# path: '**/check-style-report.xml'
7984
- name: Upload results to codecov
8085
if: success() && (matrix.haxe-version == 'nightly')
8186
run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

CHANGELOG.md

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

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

5+
## version 2.9.0 (2024-06-10)
6+
7+
- New check `FileNameCase` to check file names match module names
8+
- Fixed XMLReporter to no longer escape `/` to `&#x2F;`
9+
510
## version 2.8.5 (2023-02-15)
611

712
- Fixed inner assignement check to allow assignment in arrow functions, fixes [#259](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/259)

checkstyle.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@
142142
{
143143
"type": "FileLength"
144144
},
145+
{
146+
"type": "FileNameCase"
147+
},
145148
{
146149
"props": {
147150
"option": "upperCase"

haxelib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"adireddy",
1919
"Gama11"
2020
],
21-
"releasenote": "updated tokentree lib - see CHANGELOG",
22-
"version": "2.8.5",
21+
"releasenote": "added FileNameCase check - see CHANGELOG",
22+
"version": "2.9.0",
2323
"url": "https://github.com/HaxeCheckstyle/haxe-checkstyle",
2424
"dependencies": {}
2525
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

0 commit comments

Comments
 (0)