apache / logging-log4j2
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
txt
xslt
cmd
gitattributes
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.

main147516 LOC (57%) 3,431 files
test88719 LOC (34%) 1,493 files
generated0 LOC (0%) 0 files
build and deployment6860 LOC (2%) 42 files
other12080 LOC (4%) 237 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3431 files match defined criteria (147,516 LOC, 100.0% vs. main code):
    • 1,422 *.java files (114,472 LOC)
    • 2,003 *.xml files (32,800 LOC)
    • 2 *.xslt files (185 LOC)
    • 2 *.html files (26 LOC)
    • 1 *.adoc files (25 LOC)
    • 1 *.yml files (8 LOC)
  • " *.java" is biggest, containing 77.6% of LOC.
  • " *.yml" is smallest, containing 0.01% of LOC.


*.java114472 LOC (77%) 1,422 files
*.xml32800 LOC (22%) 2,003 files
*.xslt185 LOC (<1%) 2 files
*.html26 LOC (<1%) 2 files
*.adoc25 LOC (<1%) 1 file
*.yml8 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 ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_tests[.].*".
  • 1493 files match defined criteria (88,719 LOC, 60.1% vs. main code):
    • 1,054 *.java files (79,184 LOC)
    • 423 *.xml files (9,134 LOC)
    • 6 *.yaml files (250 LOC)
    • 3 *.sh files (59 LOC)
    • 4 *.yml files (44 LOC)
    • 1 *.bat files (40 LOC)
    • 1 *.js files (7 LOC)
    • 1 *.groovy files (1 LOC)
  • " *.java" is biggest, containing 89.25% of LOC.
  • " *.groovy" is smallest, containing 0% of LOC.


*.java79184 LOC (89%) 1,054 files
*.xml9134 LOC (10%) 423 files
*.yaml250 LOC (<1%) 6 files
*.sh59 LOC (<1%) 3 files
*.yml44 LOC (<1%) 4 files
*.bat40 LOC (<1%) 1 file
*.js7 LOC (<1%) 1 file
*.groovy1 LOC (<1%) 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 ".*/assembly/src[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 42 files match defined criteria (6,860 LOC, 4.7% vs. main code). All matches are in *.xml files.


*.xml6860 LOC (100%) 42 files
Other Code
properties
xsd
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/asciidoc/.*".
  • 237 files match defined criteria (12,080 LOC, 8.2% vs. main code):
    • 169 *.properties files (4,973 LOC)
    • 31 *.md files (2,735 LOC)
    • 4 *.xsd files (2,592 LOC)
    • 25 *.json files (1,262 LOC)
    • 3 *.xml files (201 LOC)
    • 3 *.txt files (186 LOC)
    • 2 *.adoc files (131 LOC)
  • " *.properties" is biggest, containing 41.17% of LOC.
  • " *.adoc" is smallest, containing 1.08% of LOC.


*.properties4973 LOC (41%) 169 files
*.md2735 LOC (22%) 31 files
*.xsd2592 LOC (21%) 4 files
*.json1262 LOC (10%) 25 files
*.xml201 LOC (1%) 3 files
*.txt186 LOC (1%) 3 files
*.adoc131 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:48