azure / sf-c-util
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
csproj
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.

main11769 LOC (46%) 85 files
test11694 LOC (46%) 110 files
generated0 LOC (0%) 0 files
build and deployment53 LOC (<1%) 1 file
other1560 LOC (6%) 41 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 ".*".
  • 85 files match defined criteria (11,769 LOC, 100.0% vs. main code):
    • 35 *.c files (6,675 LOC)
    • 41 *.h files (3,655 LOC)
    • 6 *.cpp files (1,232 LOC)
    • 2 *.cs files (112 LOC)
    • 1 *.ps1 files (95 LOC)
  • " *.c" is biggest, containing 56.72% of LOC.
  • " *.ps1" is smallest, containing 0.81% of LOC.


*.c6675 LOC (56%) 35 files
*.h3655 LOC (31%) 41 files
*.cpp1232 LOC (10%) 6 files
*.cs112 LOC (<1%) 2 files
*.ps195 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]ests/.*".
    • files with paths like ".*/test_.*".
  • 110 files match defined criteria (11,694 LOC, 99.4% vs. main code):
    • 60 *.c files (10,229 LOC)
    • 50 *.h files (1,465 LOC)
  • " *.c" is biggest, containing 87.47% of LOC.
  • " *.h" is smallest, containing 12.53% of LOC.


*.c10229 LOC (87%) 60 files
*.h1465 LOC (12%) 50 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
  • 1 file matches defined criteria (53 LOC, 0.5% vs. main code). All matches are in *.csproj files.


*.csproj53 LOC (100%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
  • 41 files match defined criteria (1,560 LOC, 13.3% vs. main code):
    • 14 *.md files (949 LOC)
    • 26 *.txt files (602 LOC)
    • 1 *.json files (9 LOC)
  • " *.md" is biggest, containing 60.83% of LOC.
  • " *.json" is smallest, containing 0.58% of LOC.


*.md949 LOC (60%) 14 files
*.txt602 LOC (38%) 26 files
*.json9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:14