openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantan...@apache.org
Subject [incubator-openwhisk-utilities] branch master updated: Add support for a Lua ASF License header. (#13)
Date Fri, 16 Jun 2017 22:26:47 GMT
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-utilities.git


The following commit(s) were added to refs/heads/master by this push:
     new 1215470  Add support for a Lua ASF License header. (#13)
1215470 is described below

commit 121547068b3f60535958a08a3b54e9502314a9c3
Author: Matt Rutkowski <mrutkows@us.ibm.com>
AuthorDate: Fri Jun 16 17:26:46 2017 -0500

    Add support for a Lua ASF License header. (#13)
---
 scancode/ASFLicenseHeaderLua.txt   | 16 ++++++++++++++++
 scancode/scanCode.cfg              |  2 ++
 scancode/tests/good/good-hello.lua | 19 +++++++++++++++++++
 scancode/tests/mixed/bad-hello.lua |  6 ++++++
 4 files changed, 43 insertions(+)

diff --git a/scancode/ASFLicenseHeaderLua.txt b/scancode/ASFLicenseHeaderLua.txt
new file mode 100644
index 0000000..39487cc
--- /dev/null
+++ b/scancode/ASFLicenseHeaderLua.txt
@@ -0,0 +1,16 @@
+--
+-- 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.
+--
\ No newline at end of file
diff --git a/scancode/scanCode.cfg b/scancode/scanCode.cfg
index 1ff0945..3e5387f 100644
--- a/scancode/scanCode.cfg
+++ b/scancode/scanCode.cfg
@@ -6,6 +6,7 @@
 [Licenses]
 ASFLicenseHeader.txt
 ASFMinifiedLicenseHeader.txt
+ASFLicenseHeaderLua.txt
 ApacheIBMLicenseHeader.txt
 
 # Filters (path/filename) with wildcards and associated scan checks
@@ -20,6 +21,7 @@ ApacheIBMLicenseHeader.txt
 *.gradle=no_tabs, no_trailing_spaces, eol_at_eof
 *.md=no_tabs, eol_at_eof
 *.go=has_block_license, no_tabs, no_trailing_spaces, eol_at_eof
+*.lua=has_block_license
 build.xml=no_tabs, no_trailing_spaces, eol_at_eof
 deploy.xml=no_tabs, no_trailing_spaces, eol_at_eof
 
diff --git a/scancode/tests/good/good-hello.lua b/scancode/tests/good/good-hello.lua
new file mode 100644
index 0000000..f5fc9a9
--- /dev/null
+++ b/scancode/tests/good/good-hello.lua
@@ -0,0 +1,19 @@
+#!/usr/bin/lua
+--
+-- 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.
+--
+
+print ("Hello World!")
\ No newline at end of file
diff --git a/scancode/tests/mixed/bad-hello.lua b/scancode/tests/mixed/bad-hello.lua
new file mode 100644
index 0000000..cd61058
--- /dev/null
+++ b/scancode/tests/mixed/bad-hello.lua
@@ -0,0 +1,6 @@
+#!/usr/bin/lua
+--
+-- Hello world
+--
+
+print ("Hello World!")
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message