apache / logging-log4j-audit
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
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.

main22279 LOC (78%) 246 files
test1682 LOC (5%) 27 files
generated0 LOC (0%) 0 files
build and deployment2631 LOC (9%) 13 files
other1760 LOC (6%) 27 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 ".*".
  • 246 files match defined criteria (22,279 LOC, 100.0% vs. main code):
    • 20 *.css files (8,394 LOC)
    • 172 *.java files (8,105 LOC)
    • 7 *.js files (2,085 LOC)
    • 20 *.less files (1,778 LOC)
    • 18 *.xml files (1,549 LOC)
    • 3 *.sql files (278 LOC)
    • 5 *.html files (88 LOC)
    • 1 *.groovy files (2 LOC)
  • " *.css" is biggest, containing 37.68% of LOC.
  • " *.groovy" is smallest, containing 0.01% of LOC.


*.css8394 LOC (37%) 20 files
*.java8105 LOC (36%) 172 files
*.js2085 LOC (9%) 7 files
*.less1778 LOC (7%) 20 files
*.xml1549 LOC (6%) 18 files
*.sql278 LOC (1%) 3 files
*.html88 LOC (<1%) 5 files
*.groovy2 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/.*".
  • 27 files match defined criteria (1,682 LOC, 7.5% vs. main code):
    • 17 *.java files (1,270 LOC)
    • 5 *.sql files (240 LOC)
    • 5 *.xml files (172 LOC)
  • " *.java" is biggest, containing 75.51% of LOC.
  • " *.xml" is smallest, containing 10.23% of LOC.


*.java1270 LOC (75%) 17 files
*.sql240 LOC (14%) 5 files
*.xml172 LOC (10%) 5 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 ".*/package[.]json".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 13 files match defined criteria (2,631 LOC, 11.8% vs. main code). All matches are in *.xml files.


*.xml2631 LOC (100%) 13 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
  • 27 files match defined criteria (1,760 LOC, 7.9% vs. main code):
    • 5 *.json files (674 LOC)
    • 5 *.txt files (553 LOC)
    • 12 *.md files (342 LOC)
    • 3 *.xml files (158 LOC)
    • 2 *.properties files (33 LOC)
  • " *.json" is biggest, containing 38.3% of LOC.
  • " *.properties" is smallest, containing 1.88% of LOC.


*.json674 LOC (38%) 5 files
*.txt553 LOC (31%) 5 files
*.md342 LOC (19%) 12 files
*.xml158 LOC (8%) 3 files
*.properties33 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 17:30