microsoft / FluMapModel
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
Rd
txt
ini
dockerignore
mako
builder
  • 20 extensions are included in analyses: html, R, Rd, py, txt, rst, js, sh, xml, md, gitignore, css, yml, json, ini, dockerignore, mako, ps1, bat, builder
  • 9 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (19 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (61 files).
    • exclude files with path like ".*/docs?/_?(build|themes?|templates?|static)/.*" (Sphinx) (0 files).
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (0 files).
    • exclude files with path like ".*/underscore\.js" (Underscore.js) (0 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.

main3278 LOC (73%) 57 files
test132 LOC (2%) 5 files
generated0 LOC (0%) 0 files
build and deployment65 LOC (1%) 4 files
other1015 LOC (22%) 52 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mako
builder
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 57 files match defined criteria (3,278 lines of code, 100.0% vs. main code):
    • 32 *.r files (2,171 lines of code)
    • 19 *.py files (701 lines of code)
    • 3 *.yml files (383 lines of code)
    • 1 *.mako files (17 lines of code)
    • 1 *.builder files (4 lines of code)
    • 1 *.ps1 files (2 lines of code)
  • " *.r" is biggest, containing 66.23% of code.
  • " *.ps1" is smallest, containing 0.06% of code.


*.r2171 LOC (66%) 32 files
*.py701 LOC (21%) 19 files
*.yml383 LOC (11%) 3 files
*.mako17 LOC (<1%) 1 files
*.builder4 LOC (<1%) 1 files
*.ps12 LOC (<1%) 1 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 ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with any line of content like ".*/simpletest/.*".
  • 5 files match defined criteria (132 lines of code, 4.0% vs. main code). All matches are in *.py files.


*.py132 LOC (100%) 5 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]bat".
  • 4 files match defined criteria (65 lines of code, 2.0% vs. main code):
    • 1 *.bat files (28 lines of code)
    • 1 *.yml files (20 lines of code)
    • 2 *.sh files (17 lines of code)
  • " *.bat" is biggest, containing 43.08% of code.
  • " *.sh" is smallest, containing 26.15% of code.


*.bat28 LOC (43%) 1 files
*.yml20 LOC (30%) 1 files
*.sh17 LOC (26%) 2 files
Other Code
rd
ini
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 ".*/[.]dockerignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Mm]an/.*".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 52 files match defined criteria (1,015 lines of code, 31.0% vs. main code):
    • 32 *.rd files (727 lines of code)
    • 12 *.rst files (223 lines of code)
    • 2 *.ini files (47 lines of code)
    • 5 *.md files (17 lines of code)
    • 1 *.json files (1 lines of code)
  • " *.rd" is biggest, containing 71.63% of code.
  • " *.json" is smallest, containing 0.1% of code.


*.rd727 LOC (71%) 32 files
*.rst223 LOC (21%) 12 files
*.ini47 LOC (4%) 2 files
*.md17 LOC (1%) 5 files
*.json1 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.r files are analyzed with RAnalyzer:
    • 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
  • *.py files are analyzed with PythonAnalyzer:
    • 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
    • Basic heuristic dependency analysis
  • *.yml files are analyzed with YamlAnalyzer:
    • 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
  • *.mako 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
  • *.builder files are analyzed with RubyAnalyzer:
    • 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
    • Basic heuristic dependency analysis
  • *.ps1 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


2022-01-31 01:01