Skip to content

Improve General Count Accuracy by Ignoring Build Files#62

Open
kilo52 wants to merge 3 commits into
masterfrom
improve/ignore-bin-dirs
Open

Improve General Count Accuracy by Ignoring Build Files#62
kilo52 wants to merge 3 commits into
masterfrom
improve/ignore-bin-dirs

Conversation

@kilo52

@kilo52 kilo52 commented Jun 11, 2026

Copy link
Copy Markdown
Member

Changes what directories get scanned for files, specifically what directories get ignored. Previously, all directories were included in the count file set. This change adds a function in the directory scanning implementations that checks for common directory names containing build files that should be ignored. This is because directories designated for binary files and build artifacts can sometimes also contain copies of files in the source tree and automatically generated files by build-chains. Those files should not contribute to the result counts of the program.

Added a function in the directory scanning implementations that checks for
common directory names containing build files that should be ignored.
Those directories are 'build', 'bin', 'target', 'dist'.
Directories designated for binary files and build artifacts can sometimes
also contain copies of files in the source tree and automatically generated
files by build-chains. Those files should not contribute to the result
counts of the program.

[CL]: Changed scanDirectory() to ignore directory entries
with known names. [Issue#61]

Signed-off-by: Phil Gaiser <phil.gaiser@raven-computing.com>
@kilo52 kilo52 self-assigned this Jun 11, 2026
@kilo52 kilo52 added the Improvement Improvement of an existing feature label Jun 11, 2026
@kilo52 kilo52 linked an issue Jun 11, 2026 that may be closed by this pull request
kilo52 added 2 commits June 12, 2026 18:37
Removed duplicated shouldIgnoreDirectory() definitions.

Signed-off-by: Phil Gaiser <phil.gaiser@raven-computing.com>
Signed-off-by: Phil Gaiser <phil.gaiser@raven-computing.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore Contents of Build Directories

1 participant