Skip to content

Commit

Permalink
added FileNameCase check (#527)
Browse files Browse the repository at this point in the history
* added FileNameCase check
* removed escaping of `/` from XMLReporter
  • Loading branch information
AlexHaxe authored Jun 10, 2024
1 parent 35ed8f1 commit dd53a9e
Show file tree
Hide file tree
Showing 17 changed files with 363 additions and 138 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/checkstyle-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
CC_TEST_REPORTER_ID: c4eda639526d39fbcab7ab9fc68c4046d4e597df56dbcb552b42d27b3580b758
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 18
- name: Installing codeclimate client
if: matrix.haxe-version == 'nightly'
run: |
Expand Down Expand Up @@ -76,6 +76,11 @@ jobs:
../cc-test-reporter format-coverage -t lcov ../lcov.info; \
../cc-test-reporter upload-coverage; \
)
# - name: Checkstyle report annotations
# if: success()
# uses: jwgmeligmeyling/checkstyle-github-action@master
# with:
# path: '**/check-style-report.xml'
- name: Upload results to codecov
if: success() && (matrix.haxe-version == 'nightly')
run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## version 2.9.0 (2024-06-10)

- New check `FileNameCase` to check file names match module names
- Fixed XMLReporter to no longer escape `/` to `&#x2F;`

## version 2.8.5 (2023-02-15)

- Fixed inner assignement check to allow assignment in arrow functions, fixes [#259](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/259)
Expand Down
3 changes: 3 additions & 0 deletions checkstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@
{
"type": "FileLength"
},
{
"type": "FileNameCase"
},
{
"props": {
"option": "upperCase"
Expand Down
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"adireddy",
"Gama11"
],
"releasenote": "updated tokentree lib - see CHANGELOG",
"version": "2.8.5",
"releasenote": "added FileNameCase check - see CHANGELOG",
"version": "2.9.0",
"url": "https://github.com/HaxeCheckstyle/haxe-checkstyle",
"dependencies": {}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@haxecheckstyle/haxe-checkstyle",
"version": "2.8.5",
"version": "2.9.0",
"description": "Automated code analysis ideal for projects that want to enforce a coding standard.",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit dd53a9e

Please sign in to comment.