apache / archiva-web-content
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
rss
cgi
htaccess
txt
properties
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.

main3886927 LOC (69%) 21,369 files
test68654 LOC (1%) 345 files
generated1163777 LOC (20%) 6,388 files
build and deployment0 LOC (0%) 0 files
other434745 LOC (7%) 469 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 21369 files match defined criteria (3,886,927 LOC, 100.0% vs. main code):
    • 19,688 *.html files (3,750,190 LOC)
    • 1,476 *.css files (112,493 LOC)
    • 140 *.js files (13,102 LOC)
    • 63 *.xml files (11,134 LOC)
    • 2 *.cgi files (8 LOC)
  • " *.html" is biggest, containing 96.48% of LOC.
  • " *.cgi" is smallest, containing 0% of LOC.


*.html3750190 LOC (96%) 19,688 files
*.css112493 LOC (2%) 1,476 files
*.js13102 LOC (<1%) 140 files
*.xml11134 LOC (<1%) 63 files
*.cgi8 LOC (<1%) 2 files
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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]tests/.*".
  • 345 files match defined criteria (68,654 LOC, 1.8% vs. main code):
    • 305 *.html files (66,874 LOC)
    • 40 *.css files (1,780 LOC)
  • " *.html" is biggest, containing 97.41% of LOC.
  • " *.css" is smallest, containing 2.59% of LOC.


*.html66874 LOC (97%) 305 files
*.css1780 LOC (2%) 40 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" .*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 6388 files match defined criteria (1,163,777 LOC, 29.9% vs. main code). All matches are in *.html files.


*.html1163777 LOC (100%) 6,388 files
Other Code
rss
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
  • 469 files match defined criteria (434,745 LOC, 11.2% vs. main code):
    • 216 *.html files (348,486 LOC)
    • 253 *.rss files (86,259 LOC)
  • " *.html" is biggest, containing 80.16% of LOC.
  • " *.rss" is smallest, containing 19.84% of LOC.


*.html348486 LOC (80%) 216 files
*.rss86259 LOC (19%) 253 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:54