openai / role-specific-plugins
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
mjs
npmignore
npmrc
  • 17 extensions are included in analyses: md, py, yaml, json, html, svg, css, mjs, ts, tsx, txt, js, jsx, npmignore, npmrc, gitignore, cjs
  • 3 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (1 file).
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.

  • 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.

main66295 LOC (54%) 263 files
test12745 LOC (10%) 50 files
generated3048 LOC (2%) 1 file
build and deployment17 LOC (<1%) 3 files
other38577 LOC (31%) 495 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 263 files match defined criteria (66,295 LOC, 100.0% vs. main code):
    • 125 *.py files (38,437 LOC)
    • 10 *.css files (7,620 LOC)
    • 9 *.tsx files (6,905 LOC)
    • 6 *.js files (4,359 LOC)
    • 1 *.cjs files (2,802 LOC)
    • 6 *.jsx files (1,836 LOC)
    • 9 *.ts files (1,625 LOC)
    • 11 *.html files (1,442 LOC)
    • 83 *.yaml files (1,060 LOC)
    • 3 *.mjs files (209 LOC)
  • " *.py" is biggest, containing 57.98% of LOC.
  • " *.mjs" is smallest, containing 0.32% of LOC.


*.py38437 LOC (57%) 125 files
*.css7620 LOC (11%) 10 files
*.tsx6905 LOC (10%) 9 files
*.js4359 LOC (6%) 6 files
*.cjs2802 LOC (4%) 1 file
*.jsx1836 LOC (2%) 6 files
*.ts1625 LOC (2%) 9 files
*.html1442 LOC (2%) 11 files
*.yaml1060 LOC (1%) 83 files
*.mjs209 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 50 files match defined criteria (12,745 LOC, 19.2% vs. main code):
    • 40 *.py files (10,213 LOC)
    • 7 *.mjs files (1,929 LOC)
    • 3 *.html files (603 LOC)
  • " *.py" is biggest, containing 80.13% of LOC.
  • " *.html" is smallest, containing 4.73% of LOC.


*.py10213 LOC (80%) 40 files
*.mjs1929 LOC (15%) 7 files
*.html603 LOC (4%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (3,048 LOC, 4.6% vs. main code). All matches are in *.json files.


*.json3048 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
npmignore
npmrc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/[.]npmignore".
    • files with paths like "(.*/)?[.]npmignore".
  • 3 files match defined criteria (17 LOC, 0.0% vs. main code):
    • 1 *.npmignore files (12 LOC)
    • 1 *.npmrc files (3 LOC)
    • 1 *.gitignore files (2 LOC)
  • " *.npmignore" is biggest, containing 70.59% of LOC.
  • " *.gitignore" is smallest, containing 11.76% of LOC.


*.npmignore12 LOC (70%) 1 file
*.npmrc3 LOC (17%) 1 file
*.gitignore2 LOC (11%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
  • 495 files match defined criteria (38,577 LOC, 58.2% vs. main code):
    • 437 *.md files (31,327 LOC)
    • 42 *.json files (7,151 LOC)
    • 10 *.svg files (82 LOC)
    • 6 *.txt files (17 LOC)
  • " *.md" is biggest, containing 81.21% of LOC.
  • " *.txt" is smallest, containing 0.04% of LOC.


*.md31327 LOC (81%) 437 files
*.json7151 LOC (18%) 42 files
*.svg82 LOC (<1%) 10 files
*.txt17 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.jsx 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
  • *.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
  • *.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
  • *.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
  • *.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


2026-06-24 10:43