-
Notifications
You must be signed in to change notification settings - Fork 42
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
RAT-322: be able to scan hidden directories #166
Conversation
This looks good to me, but I have not built and tested it. I trust that the build works and there seems to be a test so I approve this change. |
@Claudenw I'm checking the build failure on Windows (Jenkins). I tested locally without problem. I'm doing a new pass and I close the "old" PR on the same topic. |
OK, I understand: on Windows, the |
Extracted from
So, for the tests, I have to bypass if on Windows. I'm doing that. |
1ac5866
to
785c968
Compare
In order to be backward compatible (especially to work as before on Windows), I created |
apache-rat-core/src/main/java/org/apache/rat/walker/NameBasedHiddenFileFilter.java
Outdated
Show resolved
Hide resolved
apache-rat-core/src/test/java/org/apache/rat/ReportConfigurationTest.java
Outdated
Show resolved
Hide resolved
Thanks for the contribution @jbonofre I'm still curious to get to know more details about why you want to scan in hidden directories? Can you provide more info about that. |
@Claudenw could we just merge this change or would this introduce problems with other/existing PRs? Thanks |
@jbonofre feel free to add a changelog entry (or I can do this upon merging your changes; sorry for my many questions in the code). |
@ottlinger at ASF, we should have license header in all files included in project release source distributions (which is the minimum a project has to provide for each release). Some projects include hidden directories/iles in their source distributions (for instance, Apache Iceberg includes hidden directories like .palantir, .baseline, etc). Those directories/files can't be excluded else it means that it would not be possible to build the project from the source distribution. As workaround, RAT gradle|maven plugins use a "custom" walker to scan hidden directories/files. So I think it makes sense to improve our default walker to support this behavior and so having the same support in CLI. That's basically the background :) |
I did rebase and added an entry in the changes. |
I started to use assertj in I'm fixing the build. @ottlinger do you want me to use assertj everywhere ? Maybe it makes more sense to have another PR dedicated to that. Thought ? |
I pushed the update to define assertj in @ottlinger please let me know if you want me to refactore all tests using assertj in this PR or in separated one. Thanks ! |
@jbonofre go ahead to use assertj more often in a different PR. Thanks for your contribution. |
@ottlinger I propose to merge this PR (as it introduces |
This is an alternative to #160