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.

main167948 LOC (82%) 919 files
test24256 LOC (11%) 270 files
generated0 LOC (0%) 0 files
build and deployment567 LOC (<1%) 1 file
other10394 LOC (5%) 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 ".*".
  • 919 files match defined criteria (167,948 LOC, 100.0% vs. main code):
    • 323 *.cpp files (104,359 LOC)
    • 470 *.hpp files (41,041 LOC)
    • 46 *.xml files (8,972 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 62.14% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.cpp104359 LOC (62%) 323 files
*.hpp41041 LOC (24%) 470 files
*.xml8972 LOC (5%) 46 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_.*".
  • 270 files match defined criteria (24,256 LOC, 14.4% vs. main code):
    • 33 *.cpp files (15,956 LOC)
    • 139 *.xml files (4,434 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.


*.cpp15956 LOC (65%) 33 files
*.xml4434 LOC (18%) 139 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/build[.]xml".
  • 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 ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
  • 86 files match defined criteria (10,394 LOC, 6.2% 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.


2023-08-10 23:32