Skip to content

Commit

Permalink
Revert "License header check"
Browse files Browse the repository at this point in the history
This reverts commit ae37054.
  • Loading branch information
the-other-tim-brown committed May 24, 2024
1 parent ae37054 commit 0b6e0db
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 118 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/license-check.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .licenserc.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,36 +99,6 @@ The custom hadoop configurations can be passed in with the `--hadoopConfig [cust
The config in custom hadoop config file will override the default hadoop configurations. For an example
of a custom hadoop config file, see [hadoop.xml](https://xtable.apache.org/docs/fabric#step-2-translate-source-table-to-delta-lake-format-using-apache-xtable-incubating).

# New file type spotless automatic formatting and modification operation

When a new type of file is merged into the warehouse, it is possible that the `spotless-maven-plugin` will not add the license header by default, and when it is detected by ci and prompted to add the `license header`, what we have to do is to modify the project. The modified part of `pom.xml` under the root path is as follows:

```xml
<formats>
<format>
<includes>
<include>**/*.properties</include>
<include>**/*.config</include>
</includes>
<excludes>
<exclude>demo/data/**</exclude>
<exclude>${target.dir.pattern}</exclude>
<exclude>website/node_modules/**</exclude>
<exclude>website/build/**</exclude>
<exclude>website/.docusaurus/**</exclude>
</excludes>
<licenseHeader>
<file>style/text-license-header</file>
<delimiter>(^[a-zA-Z0-9_-]|^#[a-zA-Z0-9_-]|^##.+?$)</delimiter>
</licenseHeader>
</format>
</formats>
```

Newly added file types need to be added in `include`

And execute mvn spotless:check to verify

# Contributing
## Setup
For setting up the repo on IntelliJ, open the project and change the java version to Java11 in File->ProjectStructure
Expand Down

0 comments on commit 0b6e0db

Please sign in to comment.