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
xsd
properties
txt
gitattributes
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.

main11661 LOC (81%) 52 files
test109 LOC (<1%) 4 files
generated0 LOC (0%) 0 files
build and deployment1065 LOC (7%) 20 files
other1453 LOC (10%) 33 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 52 files match defined criteria (11,661 LOC, 100.0% vs. main code):
    • 18 *.xsd files (10,780 LOC)
    • 11 *.java files (337 LOC)
    • 13 *.xml files (290 LOC)
    • 4 *.yml files (130 LOC)
    • 2 *.yaml files (80 LOC)
    • 4 *.jsp files (44 LOC)
  • " *.xsd" is biggest, containing 92.44% of LOC.
  • " *.jsp" is smallest, containing 0.38% of LOC.


*.xsd10780 LOC (92%) 18 files
*.java337 LOC (2%) 11 files
*.xml290 LOC (2%) 13 files
*.yml130 LOC (1%) 4 files
*.yaml80 LOC (<1%) 2 files
*.jsp44 LOC (<1%) 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/.*".
  • 4 files match defined criteria (109 LOC, 0.9% vs. main code):
    • 3 *.java files (79 LOC)
    • 1 *.xml files (30 LOC)
  • " *.java" is biggest, containing 72.48% of LOC.
  • " *.xml" is smallest, containing 27.52% of LOC.


*.java79 LOC (72%) 3 files
*.xml30 LOC (27%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
  • 20 files match defined criteria (1,065 LOC, 9.1% vs. main code):
    • 9 *.xml files (944 LOC)
    • 1 *.yml files (68 LOC)
    • 10 *.sh files (53 LOC)
  • " *.xml" is biggest, containing 88.64% of LOC.
  • " *.sh" is smallest, containing 4.98% of LOC.


*.xml944 LOC (88%) 9 files
*.yml68 LOC (6%) 1 file
*.sh53 LOC (4%) 10 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 33 files match defined criteria (1,453 LOC, 12.5% vs. main code):
    • 18 *.java files (683 LOC)
    • 6 *.adoc files (380 LOC)
    • 3 *.txt files (189 LOC)
    • 4 *.properties files (122 LOC)
    • 1 *.md files (43 LOC)
    • 1 *.json files (36 LOC)
  • " *.java" is biggest, containing 47.01% of LOC.
  • " *.json" is smallest, containing 2.48% of LOC.


*.java683 LOC (47%) 18 files
*.adoc380 LOC (26%) 6 files
*.txt189 LOC (13%) 3 files
*.properties122 LOC (8%) 4 files
*.md43 LOC (2%) 1 file
*.json36 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:36