deepseek-ai/deepseek-harness
Code Volume Analysis scope, overview of main, test, generated, deployment, build, and other code. |
Source Code Analysis Scope
Files includes and excluded from analyses
scoping details...
- 33 extensions are included in analyses: ts, md, yaml, json, tsx, jsonl, yml, css, txt, mjs, js, py, svg, ps1, html, nsh, cpp, patch, sh, gitignore, h, c, snap, plist, cmd, nsi, toml, cjs, npmignore, webmanifest, gitattributes, editorconfig, ini
- 8 criteria are used to exclude files from analysis:
- exclude files with path like ".*/docs/.*" (Documentation) (539 files).
- exclude files with path like ".*\.d\.ts" (Typescript definition files) (69 files).
- exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
- exclude files with path like ".*/[Vv]endors?/.*" (Dependencies) (64 files).
- exclude files with path like ".*/_sokrates/.*" (Sokrates files) (0 files).
- exclude files with path like ".*/_sokrates_landscape/.*" (Sokrates landscape files) (0 files).
- exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
- exclude files with path like ".*/sokrates_.*?[.]json" (Sokrates conventions and configurations) (0 files).
- The source code folder contains 14,197 files:
- 12,360 files are included in analyses.
- 1,837 files are excluded from analyses:
- In addition, 14 symbolic links were not followed (nothing behind them is included above).
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
scope details...
- The following criteria are used to filter files:
- files with paths like ".*".
- 5197 files match defined criteria (409,870 LOC, 100.0% vs. main code):
- 2,444 ts files (285,323 LOC)
- 322 tsx files (43,507 LOC)
- 1,996 yaml files (37,117 LOC)
- 214 css files (24,776 LOC)
- 92 mjs files (7,932 LOC)
- 17 py files (5,669 LOC)
- 8 ps1 files (1,405 LOC)
- 9 nsh files (1,231 LOC)
- 65 jsonl files (994 LOC)
- 5 h files (602 LOC)
- 3 cpp files (417 LOC)
- 3 c files (331 LOC)
- 9 js files (320 LOC)
- 5 html files (134 LOC)
- 1 cjs files (72 LOC)
- 3 cmd files (25 LOC)
- 1 webmanifest files (15 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
scope details...
- The following criteria are used to filter files:
- files with paths like ".*/vitest[.].*".
- files with paths like ".*/[Tt]est/.*".
- files with paths like ".*[.][Tt]est[.].*".
- files with paths like ".*[.]test[.].*".
- files with paths like ".*[-]test[-].*".
- files with paths like ".*/[Tt]ests/.*".
- files with paths like ".*/test_.*".
- files with paths like ".*[.]spec[.]ts".
- files with paths like ".*[-]tests[-].*".
- files with paths like ".*/testing[.].*".
- files with paths like ".*/mock[^/]*/.*".
- files with paths like ".*[.]spec[.]tsx".
- files with paths like ".*_test[.].*".
- files with paths like ".*[.]snap".
- files with paths like ".*[-]tests/.*".
- 2676 files match defined criteria (588,295 LOC, 143.5% vs. main code):
- 2,142 ts files (494,956 LOC)
- 280 tsx files (80,321 LOC)
- 51 mjs files (5,356 LOC)
- 13 py files (2,787 LOC)
- 29 js files (1,257 LOC)
- 94 yaml files (1,138 LOC)
- 5 ps1 files (739 LOC)
- 3 snap files (665 LOC)
- 48 jsonl files (575 LOC)
- 5 cpp files (332 LOC)
- 2 nsi files (96 LOC)
- 1 c files (69 LOC)
- 1 cjs files (2 LOC)
- 2 html files (2 LOC)
Generated Code
Automatically generated files, not manually changed after generation.
scope details...
- The following criteria are used to filter files:
- files with any line of content like "\<\!\-\-[ ]*Generated by .*".
- files with paths like ".*/package[-]lock[.]json".
- 3 files match defined criteria (9,094 LOC, 2.2% vs. main code):
- 1 json files (8,539 LOC)
- 2 md files (555 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
scope details...
- The following criteria are used to filter files:
- files with paths like ".*[.]git[a-z]+".
- files with paths like ".*/[.]gitignore".
- files with paths like ".*/package[.]json".
- files with paths like ".*/pyproject[.]toml".
- files with paths like ".*[.]sh".
- files with paths like ".*[.]editorconfig".
- files with paths like "(.*/)?[.]editorconfig".
- files with paths like ".*/package[-]lock[.]json".
- files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
- files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
- files with paths like ".*/[.]gitattributes".
- files with paths like ".*/[.]gitlab[-]ci[.]yml".
- files with paths like ".*/[.]npmignore".
- files with paths like "(.*/)?[.]npmignore".
- files with paths like ".*/pnpm.*[.]ya?ml".
- 39 files match defined criteria (3,493 LOC, 0.9% vs. main code):
- 22 yaml files (3,068 LOC)
- 6 sh files (274 LOC)
- 6 gitignore files (67 LOC)
- 2 toml files (63 LOC)
- 1 gitattributes files (13 LOC)
- 1 editorconfig files (7 LOC)
- 1 npmignore files (1 LOC)
Other Code
scope details...
- The following criteria are used to filter files:
- files with paths like ".*[.]md".
- files with paths like ".*[.]json".
- files with paths like ".*[.]ini".
- files with paths like ".*/README[.][a-z0-9]+".
- files with paths like ".*/[Ee]xamples/.*".
- files with paths like ".*[.]txt".
- files with paths like ".*[.]svg".
- files with paths like ".*[.]patch".
- files with paths like ".*[.]plist".
- files with paths like ".*/vendor/.*".
- 4448 files match defined criteria (193,336 LOC, 47.2% vs. main code):
- 3,254 md files (126,607 LOC)
- 977 json files (62,726 LOC)
- 174 txt files (2,029 LOC)
- 6 patch files (1,141 LOC)
- 4 mjs files (361 LOC)
- 17 svg files (181 LOC)
- 6 ts files (162 LOC)
- 5 yaml files (67 LOC)
- 1 py files (37 LOC)
- 3 plist files (20 LOC)
- 1 ini files (5 LOC)
About This Analysis
learn more about scopes (main, test, generated, build, other)...
- The main category contains all manually created source code files that are being used in the production.
- Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
- Test source code files are used only for testing of the product. These files are normally not deployed to production.
- Build and deployment source code files are used to configure or support build and deployment process.
- Generated source code files are automatically generated files that have not been manually changed after generation.
- While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
- Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.
learn more about used code analyzers...
- *.ts files are analyzed with TypeScriptAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- No dependency analysis
- *.tsx files are analyzed with TypeScriptAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- No dependency analysis
- *.yaml files are analyzed with YamlAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- No unit size analysis
- No conditional complexity analysis
- No dependency analysis
- *.css files are analyzed with CssAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- No unit size analysis
- No conditional complexity analysis
- No dependency analysis
- *.mjs files are analyzed with DefaultLanguageAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
- No unit size analysis
- No conditional complexity analysis
- No dependency analysis
- *.py files are analyzed with PythonAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- Basic heuristic dependency analysis
- *.ps1 files are analyzed with DefaultLanguageAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
- No unit size analysis
- No conditional complexity analysis
- No dependency analysis
- *.nsh files are analyzed with AdabasNaturalAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- Basic heuristic dependency analysis
- *.jsonl files are analyzed with JsonAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- No unit size analysis
- No conditional complexity analysis
- No dependency analysis
- *.h files are analyzed with CppAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- Advanced heuristic dependency analysis
- *.cpp files are analyzed with CppAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- Advanced heuristic dependency analysis
- *.c files are analyzed with CStyleAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- No dependency analysis
- *.js files are analyzed with JavaScriptAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- No dependency analysis
- *.html files are analyzed with HtmlAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- Advanced heuristic dependency analysis
- *.cjs files are analyzed with JavaScriptAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- Unit size analysis
- Conditional complexity analysis
- No dependency analysis
- *.cmd files are analyzed with DefaultLanguageAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
- No unit size analysis
- No conditional complexity analysis
- No dependency analysis
- *.webmanifest files are analyzed with JsonAnalyzer:
- All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
- Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
- No unit size analysis
- No conditional complexity analysis
- No dependency analysis