apache / logging-log4j-samples
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
txt
gitattributes
editorconfig
pro
cmd
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.

main2117 LOC (18%) 66 files
test706 LOC (6%) 19 files
generated0 LOC (0%) 0 files
build and deployment2142 LOC (18%) 30 files
other6343 LOC (56%) 82 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 66 files match defined criteria (2,117 LOC, 100.0% vs. main code):
    • 30 *.java files (1,229 LOC)
    • 30 *.xml files (764 LOC)
    • 2 *.yaml files (80 LOC)
    • 4 *.jsp files (44 LOC)
  • " *.java" is biggest, containing 58.05% of LOC.
  • " *.jsp" is smallest, containing 2.08% of LOC.


*.java1229 LOC (58%) 30 files
*.xml764 LOC (36%) 30 files
*.yaml80 LOC (3%) 2 files
*.jsp44 LOC (2%) 4 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 ".*/[Tt]est/.*".
    • files with paths like ".*/src/androidTest/.*".
  • 19 files match defined criteria (706 LOC, 33.3% vs. main code):
    • 16 *.java files (638 LOC)
    • 3 *.xml files (68 LOC)
  • " *.java" is biggest, containing 90.37% of LOC.
  • " *.xml" is smallest, containing 9.63% of LOC.


*.java638 LOC (90%) 16 files
*.xml68 LOC (9%) 3 files
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 30 files match defined criteria (2,142 LOC, 101.2% vs. main code):
    • 16 *.xml files (1,889 LOC)
    • 3 *.gradle files (127 LOC)
    • 1 *.bat files (73 LOC)
    • 10 *.sh files (53 LOC)
  • " *.xml" is biggest, containing 88.19% of LOC.
  • " *.sh" is smallest, containing 2.47% of LOC.


*.xml1889 LOC (88%) 16 files
*.gradle127 LOC (5%) 3 files
*.bat73 LOC (3%) 1 file
*.sh53 LOC (2%) 10 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 82 files match defined criteria (6,343 LOC, 299.6% vs. main code):
    • 10 *.json files (3,609 LOC)
    • 44 *.java files (1,571 LOC)
    • 9 *.adoc files (394 LOC)
    • 13 *.properties files (307 LOC)
    • 3 *.md files (273 LOC)
    • 3 *.txt files (189 LOC)
  • " *.json" is biggest, containing 56.9% of LOC.
  • " *.txt" is smallest, containing 2.98% of LOC.


*.json3609 LOC (56%) 10 files
*.java1571 LOC (24%) 44 files
*.adoc394 LOC (6%) 9 files
*.properties307 LOC (4%) 13 files
*.md273 LOC (4%) 3 files
*.txt189 LOC (2%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:44