Skip to content

Commit 0523fbd

Browse files
authored
[CI] pre-commit auto add and standardize license headers for XML (#2440)
1 parent 1b07e4a commit 0523fbd

File tree

17 files changed

+284
-272
lines changed

17 files changed

+284
-272
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,16 @@ repos:
188188
- --license-filepath
189189
- .github/workflows/license-templates/LICENSE.txt
190190
- --fuzzy-match-generates-todo
191+
- id: insert-license
192+
name: add license for all XML files
193+
files: \.xml$
194+
exclude: scalastyle_config\.xml$|^docker/zeppelin/conf/zeppelin-site\.xml$|^spark/common/src/test/resources/.*$
195+
args:
196+
- --comment-style
197+
- '<!--||-->'
198+
- --license-filepath
199+
- .github/workflows/license-templates/LICENSE.txt
200+
- --fuzzy-match-generates-todo
191201
- id: insert-license
192202
name: add license for all YAML files
193203
description: automatically adds a licence header to all YAML files that don't have a license header

common/pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
1919

2020
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2121
<modelVersion>4.0.0</modelVersion>

examples/flink-sql/pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
1919

2020
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2121
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

examples/java-spark-sql/pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
1919

2020
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2121
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

examples/spark-sql/pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
1919

2020
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2121
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

flink-shaded/pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
1919

2020
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2121
<modelVersion>4.0.0</modelVersion>

flink/pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
1919

2020
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2121
<modelVersion>4.0.0</modelVersion>

pom.xml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
1920
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2021
<modelVersion>4.0.0</modelVersion>
2122
<parent>

shade-proto/pom.xml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
1920
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2021
<modelVersion>4.0.0</modelVersion>
2122
<parent>

snowflake-tester/pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!--
2-
~ Licensed to the Apache Software Foundation (ASF) under one
3-
~ or more contributor license agreements. See the NOTICE file
4-
~ distributed with this work for additional information
5-
~ regarding copyright ownership. The ASF licenses this file
6-
~ to you under the Apache License, Version 2.0 (the
7-
~ "License"); you may not use this file except in compliance
8-
~ with the License. You may obtain a copy of the License at
9-
~
10-
~ http://www.apache.org/licenses/LICENSE-2.0
11-
~
12-
~ Unless required by applicable law or agreed to in writing,
13-
~ software distributed under the License is distributed on an
14-
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
~ KIND, either express or implied. See the License for the
16-
~ specific language governing permissions and limitations
17-
~ under the License.
18-
-->
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
1919

2020
<project xmlns="http://maven.apache.org/POM/4.0.0"
2121
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

0 commit comments

Comments
 (0)