azure / azure-uamqp-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
txt
cmd
xsd
gitattributes
targets
nuspec
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.

main23092 LOC (39%) 125 files
test23763 LOC (41%) 39 files
generated3574 LOC (6%) 4 files
build and deployment325 LOC (<1%) 12 files
other7077 LOC (12%) 64 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
xsd
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 125 files match defined criteria (23,092 LOC, 100.0% vs. main code):
    • 24 *.c files (19,467 LOC)
    • 87 *.h files (2,513 LOC)
    • 7 *.cmd files (389 LOC)
    • 1 *.xml files (298 LOC)
    • 2 *.cs files (193 LOC)
    • 1 *.xsd files (119 LOC)
    • 1 *.targets files (98 LOC)
    • 2 *.cmake files (15 LOC)
  • " *.c" is biggest, containing 84.3% of LOC.
  • " *.cmake" is smallest, containing 0.06% of LOC.


*.c19467 LOC (84%) 24 files
*.h2513 LOC (10%) 87 files
*.cmd389 LOC (1%) 7 files
*.xml298 LOC (1%) 1 file
*.cs193 LOC (<1%) 2 files
*.xsd119 LOC (<1%) 1 file
*.targets98 LOC (<1%) 1 file
*.cmake15 LOC (<1%) 2 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 ".*_test[.].*".
  • 39 files match defined criteria (23,763 LOC, 102.9% vs. main code):
    • 38 *.c files (23,729 LOC)
    • 1 *.sh files (34 LOC)
  • " *.c" is biggest, containing 99.86% of LOC.
  • " *.sh" is smallest, containing 0.14% of LOC.


*.c23729 LOC (99%) 38 files
*.sh34 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 4 files match defined criteria (3,574 LOC, 15.5% vs. main code). All matches are in *.cs files.


*.cs3574 LOC (100%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
  • 12 files match defined criteria (325 LOC, 1.4% vs. main code):
    • 10 *.sh files (181 LOC)
    • 1 *.csproj files (109 LOC)
    • 1 *.nuspec files (35 LOC)
  • " *.sh" is biggest, containing 55.69% of LOC.
  • " *.nuspec" is smallest, containing 10.77% of LOC.


*.sh181 LOC (55%) 10 files
*.csproj109 LOC (33%) 1 file
*.nuspec35 LOC (10%) 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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 64 files match defined criteria (7,077 LOC, 30.6% vs. main code):
    • 19 *.md files (3,895 LOC)
    • 10 *.c files (2,316 LOC)
    • 33 *.txt files (841 LOC)
    • 2 *.h files (25 LOC)
  • " *.md" is biggest, containing 55.04% of LOC.
  • " *.h" is smallest, containing 0.35% of LOC.


*.md3895 LOC (55%) 19 files
*.c2316 LOC (32%) 10 files
*.txt841 LOC (11%) 33 files
*.h25 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.c files are analyzed with CStyleAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.h files are analyzed with CppAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.cmd files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.xml files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cs files are analyzed with CSharpAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on namespace heuristics)
  • *.xsd files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.targets files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cmake files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2025-05-06 21:13