apache / apache/openwhisk-utilities
scan code is not checking .txt files for license
- Dominant language
- Python
- Stars
- 6
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
In the openwhisk-kube-deploy project, the file home/templates/Notes.txt does not have a license header. However, scancode with the ASF-Release.cfg is not detecting this because it appears to not be scanning any file with a .txt extension for a license.
Appended is the relevant snippet from the verbose output of the tool.
```
[/Users/dgrove/code/openwhisk/incubator-openwhisk-deploy-kube/tools/travis/../../NOTICE.txt]...
[36m Running Line Check [regex_check][0m
[/Users/dgrove/code/openwhisk/incubator-openwhisk-deploy-kube/tools/travis/../../LICENSE.txt]...
[36m Running Line Check [regex_check][0m
[/Users/dgrove/code/openwhisk/incubator-openwhisk-deploy-kube/tools/travis/../../helm/templates/NOTES.txt]...
[36m Running Line Check [regex_check][0m
[/Users/dgrove/code/openwhisk/incubator-openwhisk-deploy-kube/tools/travis/../../.travis.yml]...
[36m Running File Check [has_block_license][0m
[36m Running Line Check [no_trailing_spaces][0m
[36m Running Line Check [eol_at_eof][0m
[36m Running Line Check [regex_check][0m
```
Contributor guide
Research direction
Start with the ASF-Release.cfg behavior shown in the verbose scancode output, comparing the checks run for NOTICE.txt, LICENSE.txt, NOTES.txt, and .travis.yml. Trace how file extensions are selected and verify that home/templates/Notes.txt is checked for a license header, with the scan reporting the missing header.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100