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
xsl
xsd
project
classpath
prefs
cfg
policy
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.

main357840 LOC (64%) 3,433 files
test138832 LOC (25%) 1,474 files
generated12 LOC (<1%) 1 file
build and deployment24982 LOC (4%) 312 files
other29902 LOC (5%) 485 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3433 files match defined criteria (357,840 LOC, 100.0% vs. main code):
    • 3,120 *.java files (332,305 LOC)
    • 124 *.xml files (8,557 LOC)
    • 55 *.html files (6,080 LOC)
    • 35 *.js files (5,157 LOC)
    • 28 *.xsl files (3,270 LOC)
    • 51 *.css files (1,858 LOC)
    • 11 *.scala files (543 LOC)
    • 1 *.rdf files (39 LOC)
    • 7 *.groovy files (28 LOC)
    • 1 *.policy files (3 LOC)
  • " *.java" is biggest, containing 92.86% of LOC.
  • " *.policy" is smallest, containing 0% of LOC.


*.java332305 LOC (92%) 3,120 files
*.xml8557 LOC (2%) 124 files
*.html6080 LOC (1%) 55 files
*.js5157 LOC (1%) 35 files
*.xsl3270 LOC (<1%) 28 files
*.css1858 LOC (<1%) 51 files
*.scala543 LOC (<1%) 11 files
*.rdf39 LOC (<1%) 1 file
*.groovy28 LOC (<1%) 7 files
*.policy3 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 ".*[.][Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
  • 1474 files match defined criteria (138,832 LOC, 38.8% vs. main code):
    • 1,387 *.java files (132,579 LOC)
    • 81 *.xml files (6,222 LOC)
    • 1 *.policy files (21 LOC)
    • 3 *.groovy files (8 LOC)
    • 1 *.cfg files (1 LOC)
    • 1 *.html files (1 LOC)
  • " *.java" is biggest, containing 95.5% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java132579 LOC (95%) 1,387 files
*.xml6222 LOC (4%) 81 files
*.policy21 LOC (<1%) 1 file
*.groovy8 LOC (<1%) 3 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly[.]xml".
  • 312 files match defined criteria (24,982 LOC, 7.0% vs. main code):
    • 298 *.xml files (24,479 LOC)
    • 6 *.gradle files (303 LOC)
    • 7 *.sh files (196 LOC)
    • 1 *.bat files (4 LOC)
  • " *.xml" is biggest, containing 97.99% of LOC.
  • " *.bat" is smallest, containing 0.02% of LOC.


*.xml24479 LOC (97%) 298 files
*.gradle303 LOC (1%) 6 files
*.sh196 LOC (<1%) 7 files
*.bat4 LOC (<1%) 1 file
Other Code
txt
properties
xsd
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]json".
  • 485 files match defined criteria (29,902 LOC, 8.4% vs. main code):
    • 105 *.txt files (12,328 LOC)
    • 206 *.java files (6,985 LOC)
    • 75 *.properties files (3,651 LOC)
    • 22 *.xsd files (3,368 LOC)
    • 34 *.xml files (1,995 LOC)
    • 23 *.md files (1,316 LOC)
    • 15 *.json files (195 LOC)
    • 1 *.html files (36 LOC)
    • 1 *.h files (12 LOC)
    • 1 *.c files (9 LOC)
    • 2 *.cfg files (7 LOC)
  • " *.txt" is biggest, containing 41.23% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.txt12328 LOC (41%) 105 files
*.java6985 LOC (23%) 206 files
*.properties3651 LOC (12%) 75 files
*.xsd3368 LOC (11%) 22 files
*.xml1995 LOC (6%) 34 files
*.md1316 LOC (4%) 23 files
*.json195 LOC (<1%) 15 files
*.html36 LOC (<1%) 1 file
*.h12 LOC (<1%) 1 file
*.c9 LOC (<1%) 1 file
*.cfg7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 23:37