Skip to content

Commit 8828c01

Browse files
authored
ci: replace license header checker and formatter (#1077)
This refers to #1075. korandoru/hawkeye can auto-format all the incoming files at once. Signed-off-by: tison <[email protected]>
1 parent 50015d3 commit 8828c01

File tree

13 files changed

+57
-135
lines changed

13 files changed

+57
-135
lines changed

.asf.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#
21
# Licensed to the Apache Software Foundation (ASF) under one
32
# or more contributor license agreements. See the NOTICE file
43
# distributed with this work for additional information
@@ -15,7 +14,6 @@
1514
# KIND, either express or implied. See the License for the
1615
# specific language governing permissions and limitations
1716
# under the License.
18-
#
1917

2018
github:
2119
description: "Apache Pulsar Go Client Library"

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v3
32-
- run: make lint
32+
- name: Check license header
33+
run: docker run --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native:v3 check
34+
- name: Run golangci-lint
35+
run: make lint
3336

3437
integration-tests:
3538
runs-on: ubuntu-latest

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#
21
# Licensed to the Apache Software Foundation (ASF) under one
32
# or more contributor license agreements. See the NOTICE file
43
# distributed with this work for additional information
@@ -15,7 +14,6 @@
1514
# KIND, either express or implied. See the License for the
1615
# specific language governing permissions and limitations
1716
# under the License.
18-
#
1917

2018
# Explicit version of Pulsar and Golang images should be
2119
# set via the Makefile or CLI

integration-tests/certs/generate.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
#
32
# Licensed to the Apache Software Foundation (ASF) under one
43
# or more contributor license agreements. See the NOTICE file
54
# distributed with this work for additional information
@@ -16,7 +15,7 @@
1615
# KIND, either express or implied. See the License for the
1716
# specific language governing permissions and limitations
1817
# under the License.
19-
#
18+
2019

2120
export CA_HOME=$(pwd)
2221
echo $CA_HOME

integration-tests/license_test.go

Lines changed: 0 additions & 118 deletions
This file was deleted.

integration-tests/pb/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env bash
2-
#
32
# Licensed to the Apache Software Foundation (ASF) under one
43
# or more contributor license agreements. See the NOTICE file
54
# distributed with this work for additional information
@@ -16,7 +15,7 @@
1615
# KIND, either express or implied. See the License for the
1716
# specific language governing permissions and limitations
1817
# under the License.
19-
#
18+
2019

2120
PROJECT_DIR=$(git rev-parse --show-toplevel)
2221
SOURCE_PATH="$PROJECT_DIR/integration-tests/pb"

integration-tests/pb/hello.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* Licensed to the Apache Software Foundation (ASF) under one
33
* or more contributor license agreements. See the NOTICE file
44
* distributed with this work for additional information
@@ -16,6 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19+
1920
syntax = "proto3";
2021
package prototest;
2122

integration-tests/pb/hi.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
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+
120
syntax = "proto3";
221
package prototest;
322

licenserc.toml

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

pulsar/internal/pulsar_proto/PulsarApi.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* Licensed to the Apache Software Foundation (ASF) under one
33
* or more contributor license agreements. See the NOTICE file
44
* distributed with this work for additional information
@@ -16,6 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19+
1920
syntax = "proto2";
2021

2122
package pulsar.proto;

0 commit comments

Comments
 (0)