azure / c-pal
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
gitmodules
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.

main15753 LOC (26%) 239 files
test33881 LOC (58%) 172 files
generated0 LOC (0%) 0 files
build and deployment100 LOC (<1%) 3 files
other8651 LOC (14%) 196 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 ".*".
  • 239 files match defined criteria (15,753 LOC, 100.0% vs. main code):
    • 112 *.c files (11,530 LOC)
    • 127 *.h files (4,223 LOC)
  • " *.c" is biggest, containing 73.19% of LOC.
  • " *.h" is smallest, containing 26.81% of LOC.


*.c11530 LOC (73%) 112 files
*.h4223 LOC (26%) 127 files
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]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/test_.*".
  • 172 files match defined criteria (33,881 LOC, 215.1% vs. main code):
    • 144 *.c files (33,389 LOC)
    • 28 *.h files (492 LOC)
  • " *.c" is biggest, containing 98.55% of LOC.
  • " *.h" is smallest, containing 1.45% of LOC.


*.c33389 LOC (98%) 144 files
*.h492 LOC (1%) 28 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
  • 3 files match defined criteria (100 LOC, 0.6% vs. main code):
    • 1 *.bat files (69 LOC)
    • 2 *.sh files (31 LOC)
  • " *.bat" is biggest, containing 69% of LOC.
  • " *.sh" is smallest, containing 31% of LOC.


*.bat69 LOC (69%) 1 file
*.sh31 LOC (31%) 2 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
  • 196 files match defined criteria (8,651 LOC, 54.9% vs. main code):
    • 77 *.md files (6,563 LOC)
    • 118 *.txt files (2,079 LOC)
    • 1 *.json files (9 LOC)
  • " *.md" is biggest, containing 75.86% of LOC.
  • " *.json" is smallest, containing 0.1% of LOC.


*.md6563 LOC (75%) 77 files
*.txt2079 LOC (24%) 118 files
*.json9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:02