-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: files not linting #320
Conversation
b18216e
to
8407ce2
Compare
@nvuillam this is draft as the server is built against an unreleased version for CodeNarc including my PR to fix the pattern parsing and I need to address some niggles with files with spaces. Also might be an idea to enforce all status checks passing on the repo before PR's can be merged as doc generation hadn't been run, which should have been flagged by the lint workflow. |
af9ed89
to
1dfb0f9
Compare
1dfb0f9
to
1bd36a4
Compare
This is blocked by CodeNarc/CodeNarc#755 |
1bd36a4
to
7193bef
Compare
oops ^^ |
7193bef
to
d4f5610
Compare
This has highlighted some tests which are passing when they shouldn't. There's some pathing issues and looks like variance between how args are handled on Windows and Linux, in particular with files that have spaces in. So more work to do on this one as well as the fix to CodeNarc. |
d4f5610
to
69194da
Compare
This is getting close now, CodeNarc has fix for excludes, just need to fix the variance on Windows with |
The Windows issue is down the argument handling set by node-java-caller. PR to add option to allow that to be fixed is here: nvuillam/node-java-caller#47, will update this PR with a full fix once that is merged and released. |
@stevenh PR in node-java-caller merged , and new patch released ^^ |
2c09822
to
f5ae2f0
Compare
All tests now passing on all platforms. Fix for CodeNarc Windows relative paths also merged. As the ETA for a new release is Jan / Feb next year, I suggest we use CodeNarc built from master for now and update to a tagged version later. |
@stevenh I agree, if you are confident with master version of CodeNarc ( I know it is maintained seriously), I can merge this PR and release a new major version ^^ ) Just give me your go :) |
f5ae2f0
to
44fd838
Compare
Fix files specified on the command line not linting as expected due to the generated patterns not working as intended if relative path that contains a file and not a directory due to an issue with CodeNarc pattern processing. Fix incompatible arguments passed to CodeNarc by: * Using arrays internally to avoid issues with spaces in arguments being interpreted incorrectly. * Stripping all quotes from string arguments as CodeNarc doesn't handle them correctly. * Enable automatic argument quoting on Windows. Fix command line -ext extensions not being processed correctly and matching too many files as it was missing the prefix. Ensure readFile and writeFile calls produce a stack trace on failure due to: nodejs/node#30944. Fix file delete race condition and variable clean up due to missing await. Fix use of includes instead of exclude parameters. Also: * Fixed Request failed logging * Fix README.md typo * Add additional useful debug logging * Run dev:pre-commit to update CHANGELOG.md * Add more cspell entries * Add missing items to CodeNarcServer.groovy usage * Re-enable tests which are now fixed * Override axios for security patch
44fd838
to
8bc5d04
Compare
Rebased to pickup new changes, should be good to go assuming tests all pass. |
@stevenh please check your linkedin :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great, as usual , many thanks @stevenh :)
Fix files specified on the command line not linting as expected due to the generated patterns not working as intended if relative path that contains a file and not a directory due to an issue with CodeNarc pattern processing.
Fix incompatible arguments passed to CodeNarc by:
Fix command line -ext extensions not being processed correctly and matching too many files as it was missing the prefix.
Ensure readFile and writeFile calls produce a stack trace on failure due to: nodejs/node#30944.
Fix file delete race condition and variable clean up due to missing await.
Fix use of includes instead of exclude parameters.
Also: