apache / felix-dev
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
txt
properties
xsd
project
classpath
prefs
xsl
policy
cfg
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.

main294058 LOC (63%) 2,742 files
test128062 LOC (27%) 1,342 files
generated12 LOC (<1%) 1 file
build and deployment17717 LOC (3%) 197 files
other23954 LOC (5%) 360 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2742 files match defined criteria (294,058 LOC, 100.0% vs. main code):
    • 2,529 *.java files (275,969 LOC)
    • 113 *.xml files (8,174 LOC)
    • 44 *.html files (5,283 LOC)
    • 21 *.js files (3,499 LOC)
    • 23 *.css files (685 LOC)
    • 3 *.xsl files (368 LOC)
    • 8 *.groovy files (41 LOC)
    • 1 *.rdf files (39 LOC)
  • " *.java" is biggest, containing 93.85% of LOC.
  • " *.rdf" is smallest, containing 0.01% of LOC.


*.java275969 LOC (93%) 2,529 files
*.xml8174 LOC (2%) 113 files
*.html5283 LOC (1%) 44 files
*.js3499 LOC (1%) 21 files
*.css685 LOC (<1%) 23 files
*.xsl368 LOC (<1%) 3 files
*.groovy41 LOC (<1%) 8 files
*.rdf39 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
policy
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 1342 files match defined criteria (128,062 LOC, 43.5% vs. main code):
    • 1,260 *.java files (122,009 LOC)
    • 77 *.xml files (6,024 LOC)
    • 1 *.policy files (21 LOC)
    • 2 *.groovy files (6 LOC)
    • 1 *.cfg files (1 LOC)
    • 1 *.html files (1 LOC)
  • " *.java" is biggest, containing 95.27% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java122009 LOC (95%) 1,260 files
*.xml6024 LOC (4%) 77 files
*.policy21 LOC (<1%) 1 file
*.groovy6 LOC (<1%) 2 files
*.cfg1 LOC (<1%) 1 file
*.html1 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 ".*[.]h" AND any line of content like ".* DO NOT EDIT THIS FILE [-] it is machine generated .*".
  • 1 file matches defined criteria (12 LOC, 0.0% vs. main code). All matches are in *.h files.


*.h12 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 ".*/assembly[.]xml".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]gradle".
  • 197 files match defined criteria (17,717 LOC, 6.0% vs. main code):
    • 187 *.xml files (17,246 LOC)
    • 6 *.gradle files (303 LOC)
    • 4 *.sh files (168 LOC)
  • " *.xml" is biggest, containing 97.34% of LOC.
  • " *.sh" is smallest, containing 0.95% of LOC.


*.xml17246 LOC (97%) 187 files
*.gradle303 LOC (1%) 6 files
*.sh168 LOC (<1%) 4 files
Other Code
txt
xsd
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ss]amples/.*".
  • 360 files match defined criteria (23,954 LOC, 8.1% vs. main code):
    • 74 *.txt files (10,517 LOC)
    • 162 *.java files (4,322 LOC)
    • 22 *.xsd files (3,368 LOC)
    • 16 *.md files (2,260 LOC)
    • 45 *.properties files (2,025 LOC)
    • 23 *.xml files (1,210 LOC)
    • 15 *.json files (195 LOC)
    • 1 *.html files (36 LOC)
    • 1 *.h files (12 LOC)
    • 1 *.c files (9 LOC)
  • " *.txt" is biggest, containing 43.9% of LOC.
  • " *.c" is smallest, containing 0.04% of LOC.


*.txt10517 LOC (43%) 74 files
*.java4322 LOC (18%) 162 files
*.xsd3368 LOC (14%) 22 files
*.md2260 LOC (9%) 16 files
*.properties2025 LOC (8%) 45 files
*.xml1210 LOC (5%) 23 files
*.json195 LOC (<1%) 15 files
*.html36 LOC (<1%) 1 file
*.h12 LOC (<1%) 1 file
*.c9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:08