microsoft / AzureDevOpsDemoGenerator
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
tex
eps
cshtml
txt
csproj
asax
sty
  • 20 extensions are included in analyses: json, html, tex, cs, js, eps, md, svg, css, cshtml, scss, yml, gitignore, xml, txt, csproj, asax, bat, htm, sty
  • 11 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (6 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (34 files).
    • exclude files with path like ".*/bootstrap[.](js|css|less|scss|styl)" (Bootstrap) (2 files).
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (2 files).
    • exclude files with path like ".*/knockout-(\d+\.){3}(debug\.)?js" (Knockout) (2 files).
    • exclude files with path like ".*/modernizr\-\d\.\d+(\.\d+)?\.js" (Modernizr) (1 file).
    • 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) (0 files).
    • exclude files with path like ".*/bootstrap[-].*" (Library) (2 files).
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.

main69804 LOC (25%) 669 files
test0 LOC (0%) 0 files
generated83470 LOC (30%) 882 files
build and deployment2223 LOC (<1%) 3 files
other120100 LOC (43%) 1371 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tex
cshtml
sty
asax
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 669 files match defined criteria (69,804 lines of code, 100.0% vs. main code):
    • 10 *.css files (37,201 lines of code)
    • 145 *.cs files (14,552 lines of code)
    • 412 *.tex files (11,891 lines of code)
    • 67 *.js files (3,614 lines of code)
    • 16 *.cshtml files (1,227 lines of code)
    • 7 *.scss files (712 lines of code)
    • 1 *.sty files (447 lines of code)
    • 10 *.html files (159 lines of code)
    • 1 *.asax files (1 lines of code)
  • " *.css" is biggest, containing 53.29% of code.
  • " *.asax" is smallest, containing 0% of code.


*.css37201 LOC (53%) 10 files
*.cs14552 LOC (20%) 145 files
*.tex11891 LOC (17%) 412 files
*.js3614 LOC (5%) 67 files
*.cshtml1227 LOC (1%) 16 files
*.scss712 LOC (1%) 7 files
*.sty447 LOC (<1%) 1 files
*.html159 LOC (<1%) 10 files
*.asax1 LOC (<1%) 1 files
Generated Code
Automatically generated files, not manually changed after generation.
eps
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with paths like ".*[.](ps|eps|pfa)".
  • 882 files match defined criteria (83,470 lines of code, 119.6% vs. main code):
    • 847 *.html files (77,224 lines of code)
    • 35 *.eps files (6,246 lines of code)
  • " *.html" is biggest, containing 92.52% of code.
  • " *.eps" is smallest, containing 7.48% of code.


*.html77224 LOC (92%) 847 files
*.eps6246 LOC (7%) 35 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]csproj".
  • 3 files match defined criteria (2,223 lines of code, 3.2% vs. main code):
    • 2 *.csproj files (2,197 lines of code)
    • 1 *.bat files (26 lines of code)
  • " *.csproj" is biggest, containing 98.83% of code.
  • " *.bat" is smallest, containing 1.17% of code.


*.csproj2197 LOC (98%) 2 files
*.bat26 LOC (1%) 1 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 1371 files match defined criteria (120,100 lines of code, 172.1% vs. main code):
    • 1,354 *.json files (117,824 lines of code)
    • 13 *.svg files (2,190 lines of code)
    • 4 *.md files (86 lines of code)
  • " *.json" is biggest, containing 98.1% of code.
  • " *.md" is smallest, containing 0.07% of code.


*.json117824 LOC (98%) 1354 files
*.svg2190 LOC (1%) 13 files
*.md86 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.
  • *.css files are analyzed with CssAnalyzer:
    • 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)
  • *.tex 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
  • *.js files are analyzed with JavaScriptAnalyzer:
    • 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
  • *.cshtml files are analyzed with HtmlAnalyzer:
    • 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
  • *.scss files are analyzed with ScssAnalyzer:
    • 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
  • *.sty 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
  • *.html files are analyzed with HtmlAnalyzer:
    • 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
  • *.asax files are analyzed with HtmlAnalyzer:
    • 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


2022-01-30 20:05