apache / apache/openwhisk-utilities

Add option to error on zero-length files

Open
#35 0 comments 0 reactions 0 assignees View on GitHub
enhancement priority: low
Dominant language
Python
Stars
6
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Currently, scancode, when encountering a zero-length file (for example, [https://github.com/apache/incubator-openwhisk/blob/master/tests/dat/actions/empty.js](https://github.com/apache/incubator-openwhisk/blob/master/tests/dat/actions/empty.js)) under main OpenWhisk repo.), simply skips over the file (not performing any tests) and "passes" the file.

However, it would be good to have a command line flag that forces (causes) and error if zero-length files are found (not symbolic link files) and have a valid extensions (e.g., .js, .py, etc.).

Contributor guide

Open the contributing guide

Research direction

Start by locating scancode's command-line option handling and the zero-length-file check. Verify the behavior with a valid-extension file such as empty.js, while excluding symbolic links; done means a new flag causes an error for matching zero-length files without changing the default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.