-
Notifications
You must be signed in to change notification settings - Fork 525
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
chore: improve license header checker confs and pre-check header when validating #2445
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2445 +/- ##
============================================
+ Coverage 66.21% 66.24% +0.03%
Complexity 828 828
============================================
Files 511 511
Lines 42598 42598
Branches 5942 5942
============================================
+ Hits 28208 28221 +13
+ Misses 11582 11566 -16
- Partials 2808 2811 +3 ☔ View full report in Codecov by Sentry. |
<groupId>org.apache.rat</groupId> | ||
<artifactId>apache-rat-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>license-check</id> | ||
<goals> | ||
<goal>check</goal> | ||
</goals> | ||
<phase>validate</phase> |
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.
if check-style plugin could also do it (consider reuse it in future)
<exclude>**/rocksdb-*/**</exclude> | ||
<exclude>**/hbase-*/**</exclude> | ||
<exclude>**/apache-cassandra-*/**</exclude> | ||
<exclude>**/pid</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.
maybe should exclude the whole generated dir? (ignore the suggestion if it's just a test)
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.
These files or directories are excluded because validation is performed before using mvn test
, which may include data generated from previous tests or files generated during server runtime, such as:
/home/runner/work/incubator-hugegraph/incubator-hugegraph/hugegraph-server/apache-hugegraph-incubating-1.2.0/bin/pid
/home/runner/work/incubator-hugegraph/incubator-hugegraph/hugegraph-server/hugegraph-test/rocksdb-data/graph/m/OPTIONS-000015
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.
fine
… validating (#2445) * improve license header checker confs * typo * verify -> validate * update rat exclude files * empty commit * update rat exclude files * update rat exclude files
subtask of #2435