-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[CI] Clarify RAT exclude patterns. #3328
Conversation
Given that the original rat is relatively simpler and perhaps ignores only a bit more. I incline to keep the original pattern, so when users check manually with rat we won't get as long messages |
@tqchen are you commenting on the first or second patch here? |
tests/scripts/task_lint.sh
Outdated
# their position on the directory tree we use a secondary mechanism | ||
# that can match patterns across / seperators. | ||
cat > /tmp/$$.ignore-re.txt <<EOF | ||
== File: \./jvm/[^/]*/[^/]*/target/.* |
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.
specifically, these additional ignore patterns seem complicates the checking process. It would be great to keep the original rat-exclude patterns without having to check in here
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.
Revised with two new patterns in rat-exclude for jvm and tutorials.
RAT exclude patterns are not matched across path separators. Patterns of the form xyz/* will match files and directories named xyz anywhere in the tree because the regexp /* contracts to "". Adjust the existing rat exclude patterns that appear to contain matches with path separators to be explicit about the pattern they actually match.
The build process generates artificats into jvm/../targets and docs/../tutorials subdirectories, many of which trigger RAT. RAT exclude syntax does not match path separators so it is not possible to target specific built directories. This patch tells RAT to ignore and file or directory named 'jvm' and 'tutorials' irrespective of where they are located. This choice is conservative, and may result in source files being ingored from the RAT scan.
Thanks @mshawcroft |
RAT exclude patterns are not matched across path separators. Patterns
of the form xyz/* will match files and directories named xyz anywhere
in the tree because the regexp /* contracts to "". Adjust the
existing rat exclude patterns that appear to contain matches with path
separators to be explicit about the pattern they actually match.