blob: 766171219c3e80d4227b4baf186f6a481bd3c4f5 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements; and to You under the Apache License, Version 2.0.
# 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]
ASFLicenseHeader.txt
ASFLicenseHeaderBash.txt
ASFLicenseHeaderHash.txt
ASFLicenseHeaderLua.txt
ASFMinifiedLicenseHashHeader.txt
ASFMinifiedLicenseHeader.txt
ASFMinifiedLicenseHeaderREM.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
*.conf=has_block_license, no_trailing_spaces, eol_at_eof
*.go=has_block_license, no_trailing_spaces, eol_at_eof
*.gradle=no_tabs, no_trailing_spaces, eol_at_eof
*.java=no_tabs, has_block_license, no_trailing_spaces, eol_at_eof
*.js=no_tabs, no_trailing_spaces, eol_at_eof
*.lua=has_block_license, no_trailing_spaces, eol_at_eof
*.md=no_tabs, has_block_license, no_trailing_spaces, eol_at_eof
*.py=no_tabs, no_trailing_spaces, eol_at_eof
*.scala=has_block_license, no_tabs, no_trailing_spaces, eol_at_eof
*.sh=has_block_license, no_trailing_spaces, eol_at_eof
# List of paths (inclusive of subdirectories) to exclude from code scanning
[Excludes]
# General tooling exclusions
.tox
.git
.github
.bin
# Go gradle build tool exclusions for created 'vendor' and cache directories
.gogradle
vendor
# incubator-openwhisk binary artifact exclusions
bin
# incubator-openwhisk performance test exclusions
performance
# Jenkins/test generated reports
tests/build/reports
# incubator-openwhisk-apigateway exclusions
lua_install
tests/lua_modules
# incubator-openwhisk-client-go, incubator-openwhisk-wskdeploy autogenerated Go files
wski18n
# Exclude scancode tests that test for bad license headers
incubator-openwhisk-utilities/scancode/tests/exclude
[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
# List of regular expressions for forbidden strings, e.g. \w+@company.com
[Regex]