Skip to content

Commit

Permalink
Update .licenserc.yaml (#151)
Browse files Browse the repository at this point in the history
* Update .licenserc.yaml

* add license header

* add config

* add config

* add config

* add config

* add config

* add config
  • Loading branch information
cjcchen authored Jul 12, 2024
1 parent 3243bd2 commit 71e7dc7
Show file tree
Hide file tree
Showing 15 changed files with 279 additions and 42 deletions.
32 changes: 14 additions & 18 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,26 @@ header:
copyright-owner: Apache Software Foundation

paths-ignore:
- 'dist'
- 'licenses'
- '**/*.md'
- 'LICENSE'
- 'DISCLAIMER-WIP'
- 'NOTICE'
- '.*'
- '.**/**'
- 'repositories.bzl'
- 'CNAME'
- 'WORKSPACE'
- '**/*.conf'
- '**/*.config'
- '**/*.json'
- '**/*.sol'
- '**/*.yaml'
- '**/*.css'
- '**/*.yml'
- 'repositories.bzl'
- 'documents/**'
- 'CNAME'
- 'DISCLAIMER'
- 'Docker/**'
- 'WORKSPACE'
- 'skywalking-eyes/**'
- 'third_party/**.BUILD'
- 'third_party/loc_script/src/index.js'
- '**/*.pri'
- '**/*.pub'
- 'Doxyfile'
- 'header'
- 'dev/.rat-excludes'
- '**/*.md'
- 'DISCLAIMER-WIP'
- 'NOTICE'
- 'LICENSE'
- 'documents/doxygen/.gitignore'



comment: on-failure
Expand Down
1 change: 0 additions & 1 deletion dev/.rat-excludes
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ build
.*\.config
.*\.pub
.*\.pri
.*\.BUILD
Doxyfile
header
.*\.sol
2 changes: 1 addition & 1 deletion executor/contract/manager/contract_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using ::testing::Test;

const std::string test_dir = std::string(getenv("TEST_SRCDIR")) + "/" +
std::string(getenv("TEST_WORKSPACE")) +
"/service/contract/executor/manager/";
"/executor/contract/manager/";

Address get_random_address() { return AddressManager().CreateRandomAddress(); }

Expand Down
23 changes: 21 additions & 2 deletions third_party/asio.BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
licenses(["notice"])
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
name = "asio",
srcs = glob([
Expand All @@ -15,5 +35,4 @@ cc_library(
"asio/**/*.ipp",
]),
includes = ["asio/include"],
visibility = ["//visibility:public"],
)
22 changes: 22 additions & 0 deletions third_party/civetweb.BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
Expand Down
23 changes: 21 additions & 2 deletions third_party/crow.BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
licenses(["notice"])
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
name = "crow",
srcs = glob([
Expand All @@ -14,6 +34,5 @@ cc_library(
]),
includes = ["include"],
linkopts = ["-lpthread"],
visibility = ["//visibility:public"],
deps = ["//external:asio",],
)
25 changes: 22 additions & 3 deletions third_party/date.BUILD
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
licenses(["notice"])
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
name = "date",
srcs = glob(["src/**/*.cc"]),
hdrs = glob(["include/**/*.h"]),
includes = ["include"],
visibility = ["//visibility:public"],
)
)
25 changes: 22 additions & 3 deletions third_party/eEVM.BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
package(default_visibility = ["//visibility:public"])
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
package(default_visibility = ["//visibility:public"])

cc_library(
name = "eEVM",
Expand Down Expand Up @@ -31,6 +51,5 @@ cc_library(
"3rdparty/intx/include",
"3rdparty/keccak",
],
#linkstatic = 1,
visibility = ["//visibility:public"],
)
23 changes: 21 additions & 2 deletions third_party/json.BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
package(default_visibility = ["//visibility:public"])
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

load("@rules_cc//cc:defs.bzl", "cc_library")
licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
name = "json",
Expand Down
25 changes: 24 additions & 1 deletion third_party/leveldb.BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
name = "leveldb",
srcs = glob(
Expand Down Expand Up @@ -27,5 +51,4 @@ cc_library(
".",
"include",
],
visibility = ["//visibility:public"],
)
22 changes: 22 additions & 0 deletions third_party/prometheus.BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
name = "prometheus",
Expand Down
22 changes: 22 additions & 0 deletions third_party/rapidjson.BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

cc_library(
Expand Down
25 changes: 23 additions & 2 deletions third_party/snappy.BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
package(default_visibility = ["//visibility:public"])
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#


licenses(["notice"]) # BSD 3-clause
licenses(["notice"])
exports_files(["LICENSE"])

package(default_visibility = ["//visibility:public"])

filegroup(
name = "license",
Expand Down
Loading

0 comments on commit 71e7dc7

Please sign in to comment.