-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[ADDENDUM] HBASE-29689 Ignore JSON files in RAT check #7507
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
Conversation
RAT check complained that JSON files (under hbase-website) does not have ASF license which is true. But JSON files cannot have comments in them so we cannot add the ASF licence there. So we exclude JSON files from RAT check.
|
After this change, executing |
|
Thanks for that! |
This comment has been minimized.
This comment has been minimized.
stoty
left a comment
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.
+1 LGTM
The spotless check failed because of formatting violations in files under hbase-website/node_modules. Since this contains node packages (libraries) we don't want to check them for formatting.
| <exclude>**/target/**</exclude> | ||
| <exclude>**/dependency-reduced-pom.xml</exclude> | ||
| <exclude>**/.idea/**</exclude> | ||
| <exclude>**/node_modules/**</exclude> |
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.
What are under the node_modules directory?
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.
OK, so this is not in our code base, we just pull this down when building web site?
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.
We have the new hbase-website submodule for the new website. Since this project uses Node.js as a build tool a node_modules directory is created and the dependencies (Node.js / npm packages) of the new website are downloaded and placed.
The spotless check failed because of formatting violations in files under hbase-website/node_modules. Since this contains libraries, I guess we don't want to check them for formatting.
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.
We can also have the exclude more specifically for hbase-website/node_modules, I just thought a node_modules directory - anywhere it is - should not be checked by spotless.
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.
OK, so this is not in our code base, we just pull this down when building web site?
Exactly.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
|
Ignore JSON files in RAT check
When I run
mvn clean install -DskipTests -Prelease -Drat.skip=false && mvn install -DskipTests site assembly:single -Prelease -Drat.skip=falseRAT check complained that JSON files (under hbase-website) does not have ASF license which is true. But JSON files cannot have comments in them so we cannot add the ASF licence there.So we exclude JSON files from RAT check.
Exclude node_modules from spotless check
The spotless check failed because of formatting violations in files under hbase-website/node_modules. Since this contains node packages (libraries) we don't want to check them for formatting.