You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/05/19 05:17:41 UTC

[skywalking-nodejs] 01/01: Add license-eye to check license headers

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch chore/license-eyes
in repository https://gitbox.apache.org/repos/asf/skywalking-nodejs.git

commit 9c3027e9f2bc53c46c306b11c890d8c66bd62c1e
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Wed May 19 13:17:22 2021 +0800

    Add license-eye to check license headers
---
 .dockerignore                       | 18 ++++++++++++++++++
 .gitignore                          |  2 +-
 .licenserc.yaml                     | 36 ++++++++++++++++++++++++++++++++++++
 tests/plugins/mongodb/init/init.js  | 19 +++++++++++++++++++
 tests/plugins/mongoose/init/init.js | 19 +++++++++++++++++++
 5 files changed, 93 insertions(+), 1 deletion(-)

diff --git a/.dockerignore b/.dockerignore
index 14fd8ec..65010c8 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,3 +1,21 @@
+#
+# 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.
+#
 node_modules/
 lib/
 .idea
diff --git a/.gitignore b/.gitignore
index dcaec07..d6ef811 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
 node_modules
 .idea
-/lib
+lib
 src/proto/
 *.log
 tsconfig.tsbuildinfo
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 0000000..7fe9705
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,36 @@
+#
+# 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.
+#
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+
+  paths-ignore:
+    - 'dist'
+    - 'licenses'
+    - '**/*.md'
+    - '**/*.json'
+    - 'LICENSE'
+    - 'NOTICE'
+    - '.gitignore'
+    - '.gitmodules'
+    - '.prettierrc'
+    - 'lib'
+
+  comment: on-failure
diff --git a/tests/plugins/mongodb/init/init.js b/tests/plugins/mongodb/init/init.js
index 48ac0d3..e844ac5 100644
--- a/tests/plugins/mongodb/init/init.js
+++ b/tests/plugins/mongodb/init/init.js
@@ -1 +1,20 @@
+/*
+ * 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.
+ *
+ */
 db.createCollection('docs');
diff --git a/tests/plugins/mongoose/init/init.js b/tests/plugins/mongoose/init/init.js
index 48ac0d3..e844ac5 100644
--- a/tests/plugins/mongoose/init/init.js
+++ b/tests/plugins/mongoose/init/init.js
@@ -1 +1,20 @@
+/*
+ * 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.
+ *
+ */
 db.createCollection('docs');