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
phtml
properties
htaccess
txt
desktop
mo
po
webmanifest
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.

main139198 LOC (88%) 1,829 files
test417 LOC (<1%) 7 files
generated453 LOC (<1%) 1 file
build and deployment854 LOC (<1%) 18 files
other16831 LOC (10%) 98 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mediawiki
phtml
po
xsl
desktop
webmanifest
mo
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1829 files match defined criteria (139,198 LOC, 100.0% vs. main code):
    • 405 *.xml files (36,464 LOC)
    • 387 *.asciidoc files (25,891 LOC)
    • 346 *.php files (24,782 LOC)
    • 385 *.mediawiki files (24,023 LOC)
    • 154 *.js files (12,457 LOC)
    • 63 *.html files (4,688 LOC)
    • 25 *.java files (3,756 LOC)
    • 32 *.phtml files (2,199 LOC)
    • 10 *.css files (1,966 LOC)
    • 3 *.sql files (871 LOC)
    • 1 *.ts files (659 LOC)
    • 2 *.inc files (468 LOC)
    • 1 *.yml files (286 LOC)
    • 2 *.po files (242 LOC)
    • 4 *.mustache files (104 LOC)
    • 2 *.yaml files (101 LOC)
    • 1 *.scss files (86 LOC)
    • 1 *.xsl files (63 LOC)
    • 2 *.desktop files (50 LOC)
    • 1 *.webmanifest files (19 LOC)
    • 1 *.mo files (15 LOC)
    • 1 *.rb files (8 LOC)
  • " *.xml" is biggest, containing 26.2% of LOC.
  • " *.rb" is smallest, containing 0.01% of LOC.


*.xml36464 LOC (26%) 405 files
*.asciidoc25891 LOC (18%) 387 files
*.php24782 LOC (17%) 346 files
*.mediawiki24023 LOC (17%) 385 files
*.js12457 LOC (8%) 154 files
*.html4688 LOC (3%) 63 files
*.java3756 LOC (2%) 25 files
*.phtml2199 LOC (1%) 32 files
*.css1966 LOC (1%) 10 files
*.sql871 LOC (<1%) 3 files
*.ts659 LOC (<1%) 1 file
*.inc468 LOC (<1%) 2 files
*.yml286 LOC (<1%) 1 file
*.po242 LOC (<1%) 2 files
*.mustache104 LOC (<1%) 4 files
*.yaml101 LOC (<1%) 2 files
*.scss86 LOC (<1%) 1 file
*.xsl63 LOC (<1%) 1 file
*.desktop50 LOC (<1%) 2 files
*.webmanifest19 LOC (<1%) 1 file
*.mo15 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/.*".
  • 7 files match defined criteria (417 LOC, 0.3% vs. main code):
    • 4 *.js files (222 LOC)
    • 1 *.html files (133 LOC)
    • 1 *.java files (37 LOC)
    • 1 *.php files (25 LOC)
  • " *.js" is biggest, containing 53.24% of LOC.
  • " *.php" is smallest, containing 6% of LOC.


*.js222 LOC (53%) 4 files
*.html133 LOC (31%) 1 file
*.java37 LOC (8%) 1 file
*.php25 LOC (5%) 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 ".*/build[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
  • 18 files match defined criteria (854 LOC, 0.6% vs. main code):
    • 10 *.xml files (769 LOC)
    • 5 *.sh files (51 LOC)
    • 3 *.bat files (34 LOC)
  • " *.xml" is biggest, containing 90.05% of LOC.
  • " *.bat" is smallest, containing 3.98% of LOC.


*.xml769 LOC (90%) 10 files
*.sh51 LOC (5%) 5 files
*.bat34 LOC (3%) 3 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • 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 ".*/[.]htaccess".
    • files with paths like ".*[.]properties".
  • 98 files match defined criteria (16,831 LOC, 12.1% vs. main code):
    • 8 *.svg files (9,083 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)
    • 11 *.js files (236 LOC)
    • 6 *.txt files (108 LOC)
    • 2 *.php files (56 LOC)
  • " *.svg" is biggest, containing 53.97% of LOC.
  • " *.php" is smallest, containing 0.33% of LOC.


*.svg9083 LOC (53%) 8 files
*.html2842 LOC (16%) 20 files
*.md1499 LOC (8%) 14 files
*.properties1462 LOC (8%) 23 files
*.json806 LOC (4%) 9 files
*.css739 LOC (4%) 5 files
*.js236 LOC (1%) 11 files
*.txt108 LOC (<1%) 6 files
*.php56 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 20:54