microsoft / FFmpegInterop
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
xaml
filters
vcxproj
csproj
jsproj
shproj
txt
gitmodules
  • 20 extensions are included in analyses: h, cpp, cs, xaml, css, filters, js, vcxproj, csproj, jsproj, json, html, xml, shproj, txt, bat, sh, md, gitignore, gitmodules
  • 5 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (2 files).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (1 file).
    • exclude files with path like ".*[.]txt" (Text files) (1 file).
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.

main2544 LOC (6%) 32 files
test862 LOC (2%) 12 files
generated0 LOC (0%) 0 files
build and deployment466 LOC (1%) 2 files
other36035 LOC (90%) 68 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
vcxproj
filters
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 32 files match defined criteria (2,544 lines of code, 100.0% vs. main code):
    • 11 *.cpp files (1,414 lines of code)
    • 3 *.vcxproj files (636 lines of code)
    • 14 *.h files (417 lines of code)
    • 4 *.filters files (77 lines of code)
  • " *.cpp" is biggest, containing 55.58% of code.
  • " *.filters" is smallest, containing 3.03% of code.


*.cpp1414 LOC (55%) 11 files
*.vcxproj636 LOC (25%) 3 files
*.h417 LOC (16%) 14 files
*.filters77 LOC (3%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
xaml
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/UnitTests?/.*".
    • files with any line of content like ".*/simpletest/.*".
  • 12 files match defined criteria (862 lines of code, 33.9% vs. main code):
    • 3 *.csproj files (429 lines of code)
    • 8 *.cs files (426 lines of code)
    • 1 *.xaml files (7 lines of code)
  • " *.csproj" is biggest, containing 49.77% of code.
  • " *.xaml" is smallest, containing 0.81% of code.


*.csproj429 LOC (49%) 3 files
*.cs426 LOC (49%) 8 files
*.xaml7 LOC (<1%) 1 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
  • 2 files match defined criteria (466 lines of code, 18.3% vs. main code):
    • 1 *.bat files (242 lines of code)
    • 1 *.sh files (224 lines of code)
  • " *.bat" is biggest, containing 51.93% of code.
  • " *.sh" is smallest, containing 48.07% of code.


*.bat242 LOC (51%) 1 files
*.sh224 LOC (48%) 1 files
Other Code
vcxproj
csproj
xaml
jsproj
filters
shproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 68 files match defined criteria (36,035 lines of code, 1416.5% vs. main code):
    • 5 *.js files (18,756 lines of code)
    • 8 *.css files (14,277 lines of code)
    • 3 *.vcxproj files (652 lines of code)
    • 8 *.cs files (499 lines of code)
    • 7 *.cpp files (488 lines of code)
    • 3 *.csproj files (391 lines of code)
    • 10 *.xaml files (231 lines of code)
    • 3 *.jsproj files (228 lines of code)
    • 4 *.filters files (169 lines of code)
    • 3 *.html files (120 lines of code)
    • 7 *.h files (116 lines of code)
    • 1 *.md files (42 lines of code)
    • 2 *.json files (32 lines of code)
    • 2 *.shproj files (24 lines of code)
    • 2 *.xml files (10 lines of code)
  • " *.js" is biggest, containing 52.05% of code.
  • " *.xml" is smallest, containing 0.03% of code.


*.js18756 LOC (52%) 5 files
*.css14277 LOC (39%) 8 files
*.vcxproj652 LOC (1%) 3 files
*.cs499 LOC (1%) 8 files
*.cpp488 LOC (1%) 7 files
*.csproj391 LOC (1%) 3 files
*.xaml231 LOC (<1%) 10 files
*.jsproj228 LOC (<1%) 3 files
*.filters169 LOC (<1%) 4 files
*.html120 LOC (<1%) 3 files
*.h116 LOC (<1%) 7 files
*.md42 LOC (<1%) 1 files
*.json32 LOC (<1%) 2 files
*.shproj24 LOC (<1%) 2 files
*.xml10 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.cpp 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
  • *.vcxproj 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
  • *.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
  • *.filters 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


2022-01-30 09:42