apache / netbeans-website-cleanup
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
properties
xsd
gsp
txt
srt
pov
htaccess
sj
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.

main1264390 LOC (99%) 5,593 files
test0 LOC (0%) 0 files
generated282 LOC (<1%) 1 file
build and deployment289 LOC (<1%) 6 files
other10876 LOC (<1%) 222 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
gsp
srt
pov
sj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 5593 files match defined criteria (1,264,390 LOC, 100.0% vs. main code):
    • 4,384 *.html files (1,138,934 LOC)
    • 1,007 *.js files (93,423 LOC)
    • 99 *.css files (23,869 LOC)
    • 49 *.xsd files (2,495 LOC)
    • 2 *.htm files (1,106 LOC)
    • 2 *.scss files (998 LOC)
    • 11 *.xml files (862 LOC)
    • 11 *.java files (840 LOC)
    • 12 *.gsp files (744 LOC)
    • 3 *.srt files (615 LOC)
    • 3 *.pov files (293 LOC)
    • 4 *.groovy files (170 LOC)
    • 3 *.yml files (38 LOC)
    • 3 *.sj files (3 LOC)
  • " *.html" is biggest, containing 90.08% of LOC.
  • " *.sj" is smallest, containing 0% of LOC.


*.html1138934 LOC (90%) 4,384 files
*.js93423 LOC (7%) 1,007 files
*.css23869 LOC (1%) 99 files
*.xsd2495 LOC (<1%) 49 files
*.htm1106 LOC (<1%) 2 files
*.scss998 LOC (<1%) 2 files
*.xml862 LOC (<1%) 11 files
*.java840 LOC (<1%) 11 files
*.gsp744 LOC (<1%) 12 files
*.srt615 LOC (<1%) 3 files
*.pov293 LOC (<1%) 3 files
*.groovy170 LOC (<1%) 4 files
*.yml38 LOC (<1%) 3 files
*.sj3 LOC (<1%) 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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (282 LOC, 0.0% vs. main code). All matches are in *.html files.


*.html282 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/build[.]xml".
  • 6 files match defined criteria (289 LOC, 0.0% vs. main code):
    • 5 *.gradle files (228 LOC)
    • 1 *.bat files (61 LOC)
  • " *.gradle" is biggest, containing 78.89% of LOC.
  • " *.bat" is smallest, containing 21.11% of LOC.


*.gradle228 LOC (78%) 5 files
*.bat61 LOC (21%) 1 file
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]htaccess".
  • 222 files match defined criteria (10,876 LOC, 0.9% vs. main code):
    • 26 *.html files (6,697 LOC)
    • 61 *.xml files (1,616 LOC)
    • 25 *.java files (1,116 LOC)
    • 94 *.properties files (577 LOC)
    • 6 *.txt files (347 LOC)
    • 2 *.svg files (294 LOC)
    • 8 *.md files (229 LOC)
  • " *.html" is biggest, containing 61.58% of LOC.
  • " *.md" is smallest, containing 2.11% of LOC.


*.html6697 LOC (61%) 26 files
*.xml1616 LOC (14%) 61 files
*.java1116 LOC (10%) 25 files
*.properties577 LOC (5%) 94 files
*.txt347 LOC (3%) 6 files
*.svg294 LOC (2%) 2 files
*.md229 LOC (2%) 8 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 21:08