apache / netbeans-tools
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
mediawiki
properties
txt
htaccess
desktop
mo
po
webmanifest
gitattributes
xsl
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.

main139336 LOC (85%) 1,831 files
test442 LOC (<1%) 10 files
generated453 LOC (<1%) 1 file
build and deployment868 LOC (<1%) 17 files
other21555 LOC (13%) 104 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mediawiki
xsl
desktop
mo
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1831 files match defined criteria (139,336 LOC, 100.0% vs. main code):
    • 407 *.xml files (36,545 LOC)
    • 387 *.asciidoc files (25,891 LOC)
    • 345 *.php files (24,799 LOC)
    • 385 *.mediawiki files (24,023 LOC)
    • 154 *.js files (12,457 LOC)
    • 63 *.html files (4,688 LOC)
    • 28 *.java files (4,278 LOC)
    • 32 *.phtml files (2,211 LOC)
    • 10 *.css files (1,966 LOC)
    • 3 *.sql files (871 LOC)
    • 1 *.ts files (659 LOC)
    • 2 *.inc files (468 LOC)
    • 2 *.yaml files (106 LOC)
    • 4 *.mustache files (104 LOC)
    • 1 *.scss files (86 LOC)
    • 1 *.xsl files (63 LOC)
    • 2 *.desktop files (50 LOC)
    • 2 *.mo files (44 LOC)
    • 1 *.webmanifest files (19 LOC)
    • 1 *.rb files (8 LOC)
  • " *.xml" is biggest, containing 26.23% of LOC.
  • " *.rb" is smallest, containing 0.01% of LOC.


*.xml36545 LOC (26%) 407 files
*.asciidoc25891 LOC (18%) 387 files
*.php24799 LOC (17%) 345 files
*.mediawiki24023 LOC (17%) 385 files
*.js12457 LOC (8%) 154 files
*.html4688 LOC (3%) 63 files
*.java4278 LOC (3%) 28 files
*.phtml2211 LOC (1%) 32 files
*.css1966 LOC (1%) 10 files
*.sql871 LOC (<1%) 3 files
*.ts659 LOC (<1%) 1 file
*.inc468 LOC (<1%) 2 files
*.yaml106 LOC (<1%) 2 files
*.mustache104 LOC (<1%) 4 files
*.scss86 LOC (<1%) 1 file
*.xsl63 LOC (<1%) 1 file
*.desktop50 LOC (<1%) 2 files
*.mo44 LOC (<1%) 2 files
*.webmanifest19 LOC (<1%) 1 file
*.rb8 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*_test[.].*".
  • 10 files match defined criteria (442 LOC, 0.3% vs. main code):
    • 4 *.js files (222 LOC)
    • 1 *.html files (133 LOC)
    • 1 *.java files (37 LOC)
    • 2 *.php files (34 LOC)
    • 1 *.bat files (11 LOC)
    • 1 *.sh files (5 LOC)
  • " *.js" is biggest, containing 50.23% of LOC.
  • " *.sh" is smallest, containing 1.13% of LOC.


*.js222 LOC (50%) 4 files
*.html133 LOC (30%) 1 file
*.java37 LOC (8%) 1 file
*.php34 LOC (7%) 2 files
*.bat11 LOC (2%) 1 file
*.sh5 LOC (1%) 1 file
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 (453 LOC, 0.3% vs. main code). All matches are in *.json files.


*.json453 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/[.]gitattributes".
  • 17 files match defined criteria (868 LOC, 0.6% vs. main code):
    • 11 *.xml files (799 LOC)
    • 4 *.sh files (46 LOC)
    • 2 *.bat files (23 LOC)
  • " *.xml" is biggest, containing 92.05% of LOC.
  • " *.bat" is smallest, containing 2.65% of LOC.


*.xml799 LOC (92%) 11 files
*.sh46 LOC (5%) 4 files
*.bat23 LOC (2%) 2 files
Other Code
txt
properties
po
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 ".*[.]properties".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.]po".
  • 104 files match defined criteria (21,555 LOC, 15.5% vs. main code):
    • 8 *.svg files (9,083 LOC)
    • 10 *.txt files (4,590 LOC)
    • 20 *.html files (2,842 LOC)
    • 14 *.md files (1,499 LOC)
    • 23 *.properties files (1,462 LOC)
    • 9 *.json files (806 LOC)
    • 5 *.css files (739 LOC)
    • 2 *.po files (242 LOC)
    • 11 *.js files (236 LOC)
    • 2 *.php files (56 LOC)
  • " *.svg" is biggest, containing 42.14% of LOC.
  • " *.php" is smallest, containing 0.26% of LOC.


*.svg9083 LOC (42%) 8 files
*.txt4590 LOC (21%) 10 files
*.html2842 LOC (13%) 20 files
*.md1499 LOC (6%) 14 files
*.properties1462 LOC (6%) 23 files
*.json806 LOC (3%) 9 files
*.css739 LOC (3%) 5 files
*.po242 LOC (1%) 2 files
*.js236 LOC (1%) 11 files
*.php56 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:05