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
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.

main33722 LOC (62%) 391 files
test13746 LOC (25%) 166 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other6498 LOC (12%) 137 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 391 files match defined criteria (33,722 LOC, 100.0% vs. main code):
    • 175 *.cpp files (22,623 LOC)
    • 192 *.h files (7,885 LOC)
    • 7 *.in files (2,216 LOC)
    • 11 *.cmake files (511 LOC)
    • 2 *.xml files (378 LOC)
    • 1 *.xsl files (43 LOC)
    • 1 *.rdf files (27 LOC)
    • 1 *.css files (25 LOC)
    • 1 *.html files (14 LOC)
  • " *.cpp" is biggest, containing 67.09% of LOC.
  • " *.html" is smallest, containing 0.04% of LOC.


*.cpp22623 LOC (67%) 175 files
*.h7885 LOC (23%) 192 files
*.in2216 LOC (6%) 7 files
*.cmake511 LOC (1%) 11 files
*.xml378 LOC (1%) 2 files
*.xsl43 LOC (<1%) 1 file
*.rdf27 LOC (<1%) 1 file
*.css25 LOC (<1%) 1 file
*.html14 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[.].*".
  • 166 files match defined criteria (13,746 LOC, 40.8% vs. main code):
    • 110 *.cpp files (12,455 LOC)
    • 32 *.h files (801 LOC)
    • 24 *.xml files (490 LOC)
  • " *.cpp" is biggest, containing 90.61% of LOC.
  • " *.xml" is smallest, containing 3.56% of LOC.


*.cpp12455 LOC (90%) 110 files
*.h801 LOC (5%) 32 files
*.xml490 LOC (3%) 24 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 137 files match defined criteria (6,498 LOC, 19.3% vs. main code):
    • 33 *.md files (3,167 LOC)
    • 33 *.txt files (1,577 LOC)
    • 53 *.properties files (1,151 LOC)
    • 13 *.cpp files (523 LOC)
    • 3 *.xml files (61 LOC)
    • 2 *.h files (19 LOC)
  • " *.md" is biggest, containing 48.74% of LOC.
  • " *.h" is smallest, containing 0.29% of LOC.


*.md3167 LOC (48%) 33 files
*.txt1577 LOC (24%) 33 files
*.properties1151 LOC (17%) 53 files
*.cpp523 LOC (8%) 13 files
*.xml61 LOC (<1%) 3 files
*.h19 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:18