Skip to content

chore: improve license header checker confs and pre-check header when validating#2445

Merged
simon824 merged 8 commits intomasterfrom
license-header
Feb 23, 2024
Merged

chore: improve license header checker confs and pre-check header when validating#2445
simon824 merged 8 commits intomasterfrom
license-header

Conversation

@VGalaxies
Copy link
Contributor

subtask of #2435

@VGalaxies VGalaxies requested a review from imbajin February 6, 2024 13:07
@VGalaxies VGalaxies self-assigned this Feb 6, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. ci-cd Build or deploy labels Feb 6, 2024
@codecov
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7586779) 66.21% compared to head (e3d9fea) 66.24%.

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.
📢 Have feedback on the report? Share it here.

@VGalaxies VGalaxies changed the title chore: improve license header checker confs and pre-check header when verifying chore: improve license header checker confs and pre-check header when validating Feb 7, 2024
imbajin
imbajin previously approved these changes Feb 7, 2024
Comment on lines +213 to +221
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<id>license-check</id>
<goals>
<goal>check</goal>
</goals>
<phase>validate</phase>
Copy link
Member

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)

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 7, 2024
pom.xml Outdated
Comment on lines 179 to 182
<exclude>**/rocksdb-*/**</exclude>
<exclude>**/hbase-*/**</exclude>
<exclude>**/apache-cassandra-*/**</exclude>
<exclude>**/pid</exclude>
Copy link
Member

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)

Copy link
Contributor Author

@VGalaxies VGalaxies Feb 7, 2024

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine

@simon824 simon824 merged commit bc421bb into master Feb 23, 2024
@simon824 simon824 deleted the license-header branch February 23, 2024 08:42
VGalaxies added a commit that referenced this pull request Feb 23, 2024
… validating (#2445)

* improve license header checker confs

* typo

* verify -> validate

* update rat exclude files

* empty commit

* update rat exclude files

* update rat exclude files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd Build or deploy lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants