Skip to content

Crash in compare50 due to division by zero when includes/excludes result in zero files #106

Open
@rongxin-liu

Description

@rongxin-liu

compare50 crashes with a divide by zero error when the combination of --exclude and --include options results in zero files being included for a submission.

compare50 -x "*" -i "mario_1.c" -i "mario_2.c"

Need to handle the case where no files remain after filtering, possibly with a warning or an informative error message instead of a crash.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions