openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mham...@apache.org
Subject [incubator-openwhisk-apigateway] 02/02: Add gateway specific scancode config file
Date Sun, 17 Sep 2017 20:06:28 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit f29d8722bb41c5cb18ff3ee6b80f86fa2052674e
Author: Alex Song <songs@us.ibm.com>
AuthorDate: Wed Aug 23 15:17:39 2017 -0400

    Add gateway specific scancode config file
---
 tests/scripts/lua/routing.lua |  1 -
 tools/build/scanCode.cfg      | 43 +++++++++++++++++++++++++++++++++++++++++++
 tools/travis/build.sh         |  2 +-
 3 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/tests/scripts/lua/routing.lua b/tests/scripts/lua/routing.lua
index 7869a7a..1f10763 100644
--- a/tests/scripts/lua/routing.lua
+++ b/tests/scripts/lua/routing.lua
@@ -134,7 +134,6 @@ describe('Testing routing with snapshotting', function()
     local dataStore = ds.initWithDriver(red)
     dataStore:setSnapshotId('test')
     local result = dataStore:getAllResources('test')[1]
-    print ('etst')
     assert.are.same(result, 'resources:test:v1/test')
     local routing = require  'routing'
     local result = routing.findResource(dataStore, dataStore:getAllResources('test'), 'test',
'v1/test')
diff --git a/tools/build/scanCode.cfg b/tools/build/scanCode.cfg
new file mode 100644
index 0000000..fa451e0
--- /dev/null
+++ b/tools/build/scanCode.cfg
@@ -0,0 +1,43 @@
+# scanCode.py configuration file
+
+# List of filenames containing the text of valid license (headers)
+# These files SHOULD be in the same directory path where scanCode.py
+# resides.
+[Licenses]
+ASFLicenseHeaderLua.txt
+
+# Filters (path/filename) with wildcards and associated scan checks
+# that are to be run against them.  The checks are actual valid
+# function names found in scanCode.py.
+[Includes]
+*=is_not_symlink
+*.scala=has_block_license, no_tabs, no_trailing_spaces, eol_at_eof
+*.py=no_tabs, no_trailing_spaces, eol_at_eof
+*.java=has_block_license, no_tabs, no_trailing_spaces, eol_at_eof
+*.js=no_tabs, no_trailing_spaces, eol_at_eof
+*.gradle=no_tabs, no_trailing_spaces, eol_at_eof
+*.md=no_tabs, eol_at_eof
+*.go=has_block_license, 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
+
+# List of paths (inclusive of subdirectories) to exlude from code scanning
+[Excludes]
+# General exclusions
+.tox
+.git
+.bin
+
+# OpenWhisk APIGateway exclusions
+lua_install
+tests/lua_modules
+
+[Options]
+# Not all code files allow licenses to appear starting at the first character
+# of the file. This option tells the scan to allow licenses to appear starting
+# 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 ebb0a66..731a74f 100755
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -10,7 +10,7 @@ WHISKDIR="$ROOTDIR/../openwhisk"
 
 # run the scancode util. against project source code starting at its root
 cd $HOMEDIR
-incubator-openwhisk-utilities/scancode/scanCode.py $ROOTDIR
+incubator-openwhisk-utilities/scancode/scanCode.py $ROOTDIR --config $ROOTDIR/tools/build/scanCode.cfg
 
 # Install OpenWhisk
 cd $WHISKDIR/ansible

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

Mime
View raw message