[ 
https://issues.apache.org/jira/browse/SCB-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16395030#comment-16395030
 ] 

ASF GitHub Bot commented on SCB-387:
------------------------------------

asifdxtreme closed pull request #303: SCB-387 Add ASF headers for 
auto-generated files
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/303
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/api-docs.html b/docs/api-docs.html
index 74aa2b36..3f221c53 100644
--- a/docs/api-docs.html
+++ b/docs/api-docs.html
@@ -1,3 +1,19 @@
+<!--
+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.
+-->
 <!doctype html>
 <html>
   <head>
diff --git a/docs/release/Readme.md b/docs/release/Readme.md
index 1a06194d..09f6994c 100644
--- a/docs/release/Readme.md
+++ b/docs/release/Readme.md
@@ -27,14 +27,12 @@ cp  apache-rat-0.12/apache-rat-0.12.jar ./
 Run the Rat tool using the below command
 
 ```
-java -jar apache-rat-0.12.jar -a -d incubator-servicecomb-service-center/ -e 
*.md *.MD .gitignore .gitmodules .travis.yml *.json *.yaml *.tmpl *.conf *.html 
*.pb.go services.proto  broker.proto manifest **vendor** **licenses**
+java -jar apache-rat-0.12.jar -a -d incubator-servicecomb-service-center/ -e 
*.md *.MD .gitignore .gitmodules .travis.yml manifest **vendor** **licenses**
 ```
 
 Below is the list of the files which has been excluded from the list of RAT 
tool.
  - *.md  *.MD *.html:  Skip all the Readme and Documentation file like Api 
Docs.
  - .gitignore .gitmodules .travis.yml : Skip the git files and travis file.
- - *.json *.yaml *.tmpl *.conf : Skip all the json files , yaml files, temp 
DockerFile and configuration files.
- - *.pb.go services.proto : Skip the Protobuf auto-generated codes.
  - manifest **vendor : Skip manifest and all the files under vendor.
  
 You can access the latest RAT report [here](/docs/release/rat-report)  
diff --git a/etc/conf/app.conf b/etc/conf/app.conf
index a4fa9bfd..cae53915 100644
--- a/etc/conf/app.conf
+++ b/etc/conf/app.conf
@@ -1,3 +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.
+
 component_name = service_center
 #run mode could be many options to specify the env like prod,dev
 runmode = dev
@@ -111,4 +126,4 @@ logfile = ""
 # Frontend Configurations
 ###################################################################
 frontend_host_ip=127.0.0.1
-frontend_host_port=30103
\ No newline at end of file
+frontend_host_port=30103
diff --git a/examples/service_center/body/add_dependency_request.json 
b/examples/service_center/body/add_dependency_request.json
index b8797e26..1caf38dc 100644
--- a/examples/service_center/body/add_dependency_request.json
+++ b/examples/service_center/body/add_dependency_request.json
@@ -1,3 +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.
+
 {
     "dependencies": [
         {
diff --git a/examples/service_center/body/create_service_response.json 
b/examples/service_center/body/create_service_response.json
index 46ea5d03..da249e0c 100644
--- a/examples/service_center/body/create_service_response.json
+++ b/examples/service_center/body/create_service_response.json
@@ -1 +1,16 @@
-{"serviceId":"160ec1686cf911e7b7bc286ed488ff40"}
\ No newline at end of file
+# 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.
+
+{"serviceId":"160ec1686cf911e7b7bc286ed488ff40"}
diff --git a/examples/service_center/body/get_allservice_response.json 
b/examples/service_center/body/get_allservice_response.json
index e6b95d7c..1f49c680 100644
--- a/examples/service_center/body/get_allservice_response.json
+++ b/examples/service_center/body/get_allservice_response.json
@@ -1,3 +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.
+
 {
    "services":[
       {
@@ -97,4 +112,4 @@
          "timestamp":"1500520345"
       }
    ]
-}
\ No newline at end of file
+}
diff --git a/examples/service_center/body/get_consumers_response.json 
b/examples/service_center/body/get_consumers_response.json
index 439b51e3..ec385040 100644
--- a/examples/service_center/body/get_consumers_response.json
+++ b/examples/service_center/body/get_consumers_response.json
@@ -1,3 +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.
+
 {
    "consumers":[
       {
@@ -24,4 +39,4 @@
          ]
       }
    ]
-}
\ No newline at end of file
+}
diff --git a/examples/service_center/body/get_instance_response.json 
b/examples/service_center/body/get_instance_response.json
index a804e95a..edb48512 100644
--- a/examples/service_center/body/get_instance_response.json
+++ b/examples/service_center/body/get_instance_response.json
@@ -1,3 +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.
+
 GET 
/v4/default/registry/microservices/349524856cf811e7b7bc286ed488ff40/instances/838942c26cf911e7b7bc286ed488ff40
 HTTP/1.1
 Host: 127.0.0.1:30100
 X-tenant-name: default
@@ -28,4 +43,4 @@ Postman-Token: f1179ffa-5156-88f2-04c6-bd41b9312928
         "timestamp": "1500520456",
         "environment":"production"
     }
-}
\ No newline at end of file
+}
diff --git a/examples/service_center/body/get_providers_response.json 
b/examples/service_center/body/get_providers_response.json
index c79b5f95..7ded6c69 100644
--- a/examples/service_center/body/get_providers_response.json
+++ b/examples/service_center/body/get_providers_response.json
@@ -1,3 +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.
+
 {
    "providers":[
       {
@@ -17,4 +32,4 @@
          "timestamp":"1500519927"
       }
    ]
-}
\ No newline at end of file
+}
diff --git a/frontend/app/images/yeoman.png b/frontend/app/images/yeoman.png
deleted file mode 100644
index 92497add..00000000
Binary files a/frontend/app/images/yeoman.png and /dev/null differ
diff --git a/integration/health-metrics-grafana.json 
b/integration/health-metrics-grafana.json
index 9ff5c8d9..aff03ab7 100644
--- a/integration/health-metrics-grafana.json
+++ b/integration/health-metrics-grafana.json
@@ -1,3 +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.
+
 {
   "annotations": {
     "list": [
@@ -1010,4 +1025,4 @@
   "timezone": "",
   "title": "ServiceCenter",
   "version": 2
-}
\ No newline at end of file
+}
diff --git a/scripts/docker/build-frontend-image/Dockerfile.tmpl 
b/scripts/docker/build-frontend-image/Dockerfile.tmpl
index 0766be81..318d8455 100644
--- a/scripts/docker/build-frontend-image/Dockerfile.tmpl
+++ b/scripts/docker/build-frontend-image/Dockerfile.tmpl
@@ -1,3 +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.
+
 FROM ubuntu
 
 ADD frontend.tar.gz /opt
diff --git a/scripts/docker/build-image/Dockerfile.tmpl 
b/scripts/docker/build-image/Dockerfile.tmpl
index 92ffd516..69d088ce 100644
--- a/scripts/docker/build-image/Dockerfile.tmpl
+++ b/scripts/docker/build-image/Dockerfile.tmpl
@@ -1,3 +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.
+
 FROM {{.BASE_IMAGE}}:{{.BASE_IMAGE_VERSION}}
 
 ADD ./service-center /opt/service-center
diff --git a/server/broker/broker.pb.go b/server/broker/broker.pb.go
index 0dffd1cd..c2709cd4 100644
--- a/server/broker/broker.pb.go
+++ b/server/broker/broker.pb.go
@@ -1,3 +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.
+
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // source: server/broker/broker.proto
 
diff --git a/server/broker/broker.proto b/server/broker/broker.proto
index 645e064a..5271c8a5 100644
--- a/server/broker/broker.proto
+++ b/server/broker/broker.proto
@@ -1,3 +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.
+*/
+
 syntax = "proto3";
 
 import "server/core/proto/services.proto";
diff --git a/server/core/proto/services.pb.go b/server/core/proto/services.pb.go
index bac1bf42..4fa36d30 100644
--- a/server/core/proto/services.pb.go
+++ b/server/core/proto/services.pb.go
@@ -1,3 +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.
+
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // source: services.proto
 
diff --git a/server/core/proto/services.proto b/server/core/proto/services.proto
index 8be3423b..4711494b 100644
--- a/server/core/proto/services.proto
+++ b/server/core/proto/services.proto
@@ -1,3 +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.
+*/
+
 syntax = "proto3";
 
 package com.huawei.paas.cse.serviceregistry.api;
diff --git a/server/core/swagger/v3.yaml b/server/core/swagger/v3.yaml
index ba187221..135294d2 100644
--- a/server/core/swagger/v3.yaml
+++ b/server/core/swagger/v3.yaml
@@ -1,3 +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.
+
 swagger: '2.0'
 info:
   title: Service Center API
@@ -1875,4 +1890,4 @@ definitions:
        schemas:
          type: array
          items:
-           $ref: "#/definitions/Schema"
\ No newline at end of file
+           $ref: "#/definitions/Schema"
diff --git a/server/core/swagger/v4.yaml b/server/core/swagger/v4.yaml
index e450eb74..cf927087 100644
--- a/server/core/swagger/v4.yaml
+++ b/server/core/swagger/v4.yaml
@@ -1,3 +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.
+
 swagger: '2.0'
 info:
   title: Service Center API
@@ -2322,4 +2337,4 @@ definitions:
      properties:
        schema:
          description: shema
-         type: string
\ No newline at end of file
+         type: string


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Somefiles are lacking ASF header in Service Center
> --------------------------------------------------
>
>                 Key: SCB-387
>                 URL: https://issues.apache.org/jira/browse/SCB-387
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Service-Center
>            Reporter: Yang Bo
>            Assignee: Mohammad Asif Siddiqui
>            Priority: Major
>             Fix For: service-center-1.0.0-m1
>
>
> The following files does not have ASF headers
> src:
>   ./server/broker/broker.pb.go
>   ./server/broker/broker.proto
>   ./server/core/proto/services.pb.go
>   ./server/core/proto/services.proto 
>   ./server/core/swagger/v3.yaml
>   ./server/core/swagger/v4.yaml
> The pb.go files are generated by protobuf utility, perhaps we can exclude it 
> for checking. But the .proto files should have the ASF header.
> bin:
>   ./conf/app.conf
> The apache policy states that only files that have no creativity and some 
> simple template files for code generation can have the header omitted. Other 
> files should all have the header included.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to