apache / xerces-c
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
txt
m4
xsl
in
gitattributes
spec
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.

main177636 LOC (83%) 920 files
test24259 LOC (11%) 271 files
generated0 LOC (0%) 0 files
build and deployment567 LOC (<1%) 1 file
other10394 LOC (4%) 86 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
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 920 files match defined criteria (177,636 LOC, 100.0% vs. main code):
    • 323 *.cpp files (104,441 LOC)
    • 470 *.hpp files (41,073 LOC)
    • 47 *.xml files (18,546 LOC)
    • 1 *.html files (4,497 LOC)
    • 27 *.c files (3,937 LOC)
    • 11 *.in files (2,485 LOC)
    • 21 *.cmake files (1,452 LOC)
    • 12 *.xsl files (873 LOC)
    • 2 *.pl files (186 LOC)
    • 1 *.spec files (87 LOC)
    • 4 *.h files (41 LOC)
    • 1 *.js files (18 LOC)
  • " *.cpp" is biggest, containing 58.79% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.cpp104441 LOC (58%) 323 files
*.hpp41073 LOC (23%) 470 files
*.xml18546 LOC (10%) 47 files
*.html4497 LOC (2%) 1 file
*.c3937 LOC (2%) 27 files
*.in2485 LOC (1%) 11 files
*.cmake1452 LOC (<1%) 21 files
*.xsl873 LOC (<1%) 12 files
*.pl186 LOC (<1%) 2 files
*.spec87 LOC (<1%) 1 file
*.h41 LOC (<1%) 4 files
*.js18 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 271 files match defined criteria (24,259 LOC, 13.7% vs. main code):
    • 33 *.cpp files (15,958 LOC)
    • 140 *.xml files (4,435 LOC)
    • 81 *.xsd files (2,659 LOC)
    • 14 *.hpp files (931 LOC)
    • 1 *.pl files (169 LOC)
    • 1 *.h files (97 LOC)
    • 1 *.bat files (10 LOC)
  • " *.cpp" is biggest, containing 65.78% of LOC.
  • " *.bat" is smallest, containing 0.04% of LOC.


*.cpp15958 LOC (65%) 33 files
*.xml4435 LOC (18%) 140 files
*.xsd2659 LOC (10%) 81 files
*.hpp931 LOC (3%) 14 files
*.pl169 LOC (<1%) 1 file
*.h97 LOC (<1%) 1 file
*.bat10 LOC (<1%) 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 ".*/build[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 1 file matches defined criteria (567 LOC, 0.3% vs. main code). All matches are in *.xml files.


*.xml567 LOC (100%) 1 file
Other Code
txt
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 86 files match defined criteria (10,394 LOC, 5.9% vs. main code):
    • 29 *.cpp files (6,212 LOC)
    • 30 *.txt files (2,977 LOC)
    • 24 *.hpp files (1,041 LOC)
    • 1 *.xsd files (95 LOC)
    • 2 *.xml files (69 LOC)
  • " *.cpp" is biggest, containing 59.77% of LOC.
  • " *.xml" is smallest, containing 0.66% of LOC.


*.cpp6212 LOC (59%) 29 files
*.txt2977 LOC (28%) 30 files
*.hpp1041 LOC (10%) 24 files
*.xsd95 LOC (<1%) 1 file
*.xml69 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:05