apache / logging-log4cxx
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
in
gitattributes
xsl
editorconfig
natvis
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.

main41961 LOC (65%) 414 files
test15196 LOC (23%) 177 files
generated52 LOC (<1%) 1 file
build and deployment73 LOC (<1%) 2 files
other7252 LOC (11%) 150 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
natvis
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 414 files match defined criteria (41,961 LOC, 100.0% vs. main code):
    • 184 *.cpp files (24,010 LOC)
    • 201 *.h files (8,488 LOC)
    • 1 *.pl files (5,831 LOC)
    • 8 *.in files (2,389 LOC)
    • 12 *.cmake files (439 LOC)
    • 2 *.xml files (386 LOC)
    • 1 *.natvis files (227 LOC)
    • 1 *.ps1 files (77 LOC)
    • 1 *.xsl files (43 LOC)
    • 1 *.rdf files (27 LOC)
    • 1 *.css files (25 LOC)
    • 1 *.html files (19 LOC)
  • " *.cpp" is biggest, containing 57.22% of LOC.
  • " *.html" is smallest, containing 0.05% of LOC.


*.cpp24010 LOC (57%) 184 files
*.h8488 LOC (20%) 201 files
*.pl5831 LOC (13%) 1 file
*.in2389 LOC (5%) 8 files
*.cmake439 LOC (1%) 12 files
*.xml386 LOC (<1%) 2 files
*.natvis227 LOC (<1%) 1 file
*.ps177 LOC (<1%) 1 file
*.xsl43 LOC (<1%) 1 file
*.rdf27 LOC (<1%) 1 file
*.css25 LOC (<1%) 1 file
*.html19 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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
  • 177 files match defined criteria (15,196 LOC, 36.2% vs. main code):
    • 115 *.cpp files (13,766 LOC)
    • 33 *.h files (831 LOC)
    • 29 *.xml files (599 LOC)
  • " *.cpp" is biggest, containing 90.59% of LOC.
  • " *.xml" is smallest, containing 3.94% of LOC.


*.cpp13766 LOC (90%) 115 files
*.h831 LOC (5%) 33 files
*.xml599 LOC (3%) 29 files
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 ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (52 LOC, 0.1% vs. main code). All matches are in *.html files.


*.html52 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 2 files match defined criteria (73 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh73 LOC (100%) 2 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 150 files match defined criteria (7,252 LOC, 17.3% vs. main code):
    • 35 *.md files (3,486 LOC)
    • 38 *.txt files (1,857 LOC)
    • 55 *.properties files (1,192 LOC)
    • 16 *.cpp files (627 LOC)
    • 3 *.xml files (61 LOC)
    • 3 *.h files (29 LOC)
  • " *.md" is biggest, containing 48.07% of LOC.
  • " *.h" is smallest, containing 0.4% of LOC.


*.md3486 LOC (48%) 35 files
*.txt1857 LOC (25%) 38 files
*.properties1192 LOC (16%) 55 files
*.cpp627 LOC (8%) 16 files
*.xml61 LOC (<1%) 3 files
*.h29 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:54