azure / hpcpack-linux-agent
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
tcl
txt
nuspec
csproj
vcxproj
filters
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.

main49430 LOC (91%) 196 files
test750 LOC (1%) 10 files
generated0 LOC (0%) 0 files
build and deployment1357 LOC (2%) 32 files
other2280 LOC (4%) 25 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tcl
vcxproj
filters
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 196 files match defined criteria (49,430 LOC, 100.0% vs. main code):
    • 10 *.xml files (24,991 LOC)
    • 60 *.cpp files (7,013 LOC)
    • 30 *.tcl files (6,771 LOC)
    • 54 *.h files (3,518 LOC)
    • 11 *.py files (2,494 LOC)
    • 21 *.cs files (2,253 LOC)
    • 6 *.ps1 files (2,148 LOC)
    • 1 *.vcxproj files (91 LOC)
    • 2 *.pl files (82 LOC)
    • 1 *.filters files (69 LOC)
  • " *.xml" is biggest, containing 50.56% of LOC.
  • " *.filters" is smallest, containing 0.14% of LOC.


*.xml24991 LOC (50%) 10 files
*.cpp7013 LOC (14%) 60 files
*.tcl6771 LOC (13%) 30 files
*.h3518 LOC (7%) 54 files
*.py2494 LOC (5%) 11 files
*.cs2253 LOC (4%) 21 files
*.ps12148 LOC (4%) 6 files
*.vcxproj91 LOC (<1%) 1 file
*.pl82 LOC (<1%) 2 files
*.filters69 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 10 files match defined criteria (750 LOC, 1.5% vs. main code):
    • 4 *.cpp files (561 LOC)
    • 4 *.h files (83 LOC)
    • 1 *.csproj files (77 LOC)
    • 1 *.cs files (29 LOC)
  • " *.cpp" is biggest, containing 74.8% of LOC.
  • " *.cs" is smallest, containing 3.87% of LOC.


*.cpp561 LOC (74%) 4 files
*.h83 LOC (11%) 4 files
*.csproj77 LOC (10%) 1 file
*.cs29 LOC (3%) 1 file
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 ".*[.]sh".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitmodules".
  • 32 files match defined criteria (1,357 LOC, 2.7% vs. main code):
    • 29 *.sh files (1,131 LOC)
    • 2 *.csproj files (208 LOC)
    • 1 *.nuspec files (18 LOC)
  • " *.sh" is biggest, containing 83.35% of LOC.
  • " *.nuspec" is smallest, containing 1.33% of LOC.


*.sh1131 LOC (83%) 29 files
*.csproj208 LOC (15%) 2 files
*.nuspec18 LOC (1%) 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".
    • files with paths like ".*/[Ee]xamples/.*".
  • 25 files match defined criteria (2,280 LOC, 4.6% vs. main code):
    • 15 *.txt files (1,879 LOC)
    • 4 *.sh files (298 LOC)
    • 3 *.json files (55 LOC)
    • 3 *.md files (48 LOC)
  • " *.txt" is biggest, containing 82.41% of LOC.
  • " *.md" is smallest, containing 2.11% of LOC.


*.txt1879 LOC (82%) 15 files
*.sh298 LOC (13%) 4 files
*.json55 LOC (2%) 3 files
*.md48 LOC (2%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:11