From db9759fcc2d76977426f1328f36b7590f314db69 Mon Sep 17 00:00:00 2001 From: kezhenxu94 Date: Fri, 16 Aug 2019 14:37:44 +0800 Subject: [PATCH] Check license header strictly (#3274) * Check license header strictly * Ignore header template * Include more files to check list --- apm-checkstyle/CHECKSTYLE_HEAD | 35 ++++++++++--------- apm-checkstyle/checkStyle.xml | 6 ++++ .../apm/agent/core/base64/Base64.java | 4 +-- apm-webapp/src/main/resources/application.yml | 14 ++++---- .../src/test/resources/alarm-settings.yml | 13 ++++--- .../src/test/resources/application.yml | 14 ++++---- .../src/test/resources/application.yml | 14 ++++---- .../src/test/resources/application.yml | 14 ++++---- .../src/test/resources/application.yml | 13 ++++--- ...g.oap.server.library.module.ModuleProvider | 0 .../test/resources/component-libraries.yml | 13 ++++--- .../src/test/resources/application.yml | 13 ++++--- .../src/main/resources/alarm-settings.yml | 13 ++++--- .../src/main/resources/application.yml | 13 ++++--- .../main/resources/component-libraries.yml | 13 ++++--- .../resources/datasource-settings.properties | 0 ...g.oap.server.library.module.ModuleProvider | 18 ---------- pom.xml | 9 +++++ 18 files changed, 105 insertions(+), 114 deletions(-) mode change 100644 => 100755 apm-checkstyle/CHECKSTYLE_HEAD mode change 100644 => 100755 apm-checkstyle/checkStyle.xml mode change 100644 => 100755 apm-webapp/src/main/resources/application.yml mode change 100644 => 100755 oap-server/server-alarm-plugin/src/test/resources/alarm-settings.yml mode change 100644 => 100755 oap-server/server-configuration/configuration-apollo/src/test/resources/application.yml mode change 100644 => 100755 oap-server/server-configuration/configuration-etcd/src/test/resources/application.yml mode change 100644 => 100755 oap-server/server-configuration/configuration-nacos/src/test/resources/application.yml mode change 100644 => 100755 oap-server/server-configuration/configuration-zookeeper/src/test/resources/application.yml mode change 100644 => 100755 oap-server/server-core/src/main/resources/META-INF/services/org.apache.skywalking.oap.server.library.module.ModuleProvider mode change 100644 => 100755 oap-server/server-core/src/test/resources/component-libraries.yml mode change 100644 => 100755 oap-server/server-library/library-util/src/test/resources/application.yml mode change 100644 => 100755 oap-server/server-starter/src/main/resources/alarm-settings.yml mode change 100644 => 100755 oap-server/server-starter/src/main/resources/application.yml mode change 100644 => 100755 oap-server/server-starter/src/main/resources/component-libraries.yml mode change 100644 => 100755 oap-server/server-starter/src/main/resources/datasource-settings.properties mode change 100644 => 100755 oap-server/server-storage-plugin/storage-jaeger-plugin/src/main/resources/META-INF/services/org.apache.skywalking.oap.server.library.module.ModuleProvider diff --git a/apm-checkstyle/CHECKSTYLE_HEAD b/apm-checkstyle/CHECKSTYLE_HEAD old mode 100644 new mode 100755 index 70774e004..00e3b0954 --- a/apm-checkstyle/CHECKSTYLE_HEAD +++ b/apm-checkstyle/CHECKSTYLE_HEAD @@ -1,17 +1,18 @@ -/* - * 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. - * - */ +^<\?xml version="1\.0" encoding="UTF-8"\?>$ +^ .mvn/wrapper/maven-wrapper.properties tools/dependencies/known-oap-backend-dependencies.txt + apm-checkstyle/CHECKSTYLE_HEAD @@ -506,6 +507,14 @@ true true org/apache/skywalking/**/*.java + + **/*.properties, + **/*.sh, + **/*.bat, + **/*.yml, + **/*.yaml, + **/*.xml + org/apache/skywalking/apm/network/register/v2/**/*.java, org/apache/skywalking/apm/network/common/**/*.java,