You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by be...@apache.org on 2017/08/04 20:13:59 UTC
[incubator-openwhisk] branch master updated: Use Configuration File
with Scan Code and Add Missing License Header (#2575)
This is an automated email from the ASF dual-hosted git repository.
berstler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 3fca06e Use Configuration File with Scan Code and Add Missing License Header (#2575)
3fca06e is described below
commit 3fca06efc7adea6724618e466a0db6e3380b371b
Author: James Dubee <jw...@us.ibm.com>
AuthorDate: Fri Aug 4 16:13:57 2017 -0400
Use Configuration File with Scan Code and Add Missing License Header (#2575)
* Use Config File for Scanning Code
* Add Missing License Header
---
tests/src/test/scala/whisk/spi/SpiTests.scala | 17 +++++++++++++++++
tools/build/scanCode.cfg | 2 ++
tools/travis/build.sh | 2 +-
3 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/tests/src/test/scala/whisk/spi/SpiTests.scala b/tests/src/test/scala/whisk/spi/SpiTests.scala
index dc309b0..788061d 100644
--- a/tests/src/test/scala/whisk/spi/SpiTests.scala
+++ b/tests/src/test/scala/whisk/spi/SpiTests.scala
@@ -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.
+ */
+
package whisk.spi
import com.typesafe.config.ConfigException
diff --git a/tools/build/scanCode.cfg b/tools/build/scanCode.cfg
index 632962d..685819a 100644
--- a/tools/build/scanCode.cfg
+++ b/tools/build/scanCode.cfg
@@ -52,3 +52,5 @@ openwhisk-GitHubSlackBot
# within first 'x' characters of each code file (as provided by this option's
# value).
LICENSE_SLACK_LENGTH=500
+
+[Regex]
\ No newline at end of file
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
index 9813c96..b0c9b7c 100755
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -12,7 +12,7 @@ cd $HOMEDIR
git clone https://github.com/apache/incubator-openwhisk-utilities.git
# run the scancode util. against project source code starting at its root
-incubator-openwhisk-utilities/scancode/scanCode.py $ROOTDIR
+incubator-openwhisk-utilities/scancode/scanCode.py $ROOTDIR --config $ROOTDIR/tools/build/scanCode.cfg
cd $ROOTDIR/ansible
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].