microsoft / microsoft-r-open
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
mo
po
in
afm
f
m4
Rdata
rda
tcl
texi
mk
txt
iss
tab
bib
y
rds
patch
tex
sty
cvsignore
cls
aux
sed
S
  • 41 extensions are included in analyses: Rd, R, c, mo, po, h, in, afm, f, m4, html, Rdata, rda, tcl, texi, mk, txt, iss, tab, bib, css, sh, y, rds, patch, tex, sty, svg, pl, cvsignore, java, md, cls, aux, sed, S, json, gitignore, m, r, ts
  • 8 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 ".*/inst/doc/.*" (Generated documentation) (3 files).
    • exclude files with path like ".*[.]m4" (stuff autogenerated by autoconf - still C deps) (15 files).
    • exclude files with path like ".*/vignettes/.*" (R packages) (3 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) (6 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.

main1083070 LOC (86%) 2111 files
test16687 LOC (1%) 148 files
generated0 LOC (0%) 0 files
build and deployment8662 LOC (<1%) 12 files
other148899 LOC (11%) 1471 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
f
po
afm
rd
in
tcl
rdata
y
bib
mo
tex
iss
cls
sty
s
rda
aux
rds
sed
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2111 files match defined criteria (1,083,070 lines of code, 100.0% vs. main code):
    • 38 *.f files (257,129 lines of code)
    • 255 *.po files (251,783 lines of code)
    • 497 *.c files (237,528 lines of code)
    • 794 *.r files (139,001 lines of code)
    • 91 *.afm files (92,111 lines of code)
    • 168 *.h files (36,818 lines of code)
    • 11 *.html files (21,087 lines of code)
    • 4 *.rd files (10,157 lines of code)
    • 96 *.in files (7,366 lines of code)
    • 11 *.tcl files (6,483 lines of code)
    • 10 *.rdata files (5,722 lines of code)
    • 3 *.y files (5,576 lines of code)
    • 2 *.bib files (5,486 lines of code)
    • 99 *.mo files (2,366 lines of code)
    • 2 *.tex files (804 lines of code)
    • 1 *.m files (727 lines of code)
    • 2 *.pl files (658 lines of code)
    • 7 *.iss files (616 lines of code)
    • 1 *.cls files (468 lines of code)
    • 2 *.sty files (431 lines of code)
    • 1 *.s files (280 lines of code)
    • 3 *.css files (183 lines of code)
    • 7 *.rda files (181 lines of code)
    • 1 *.aux files (40 lines of code)
    • 1 *.java files (31 lines of code)
    • 2 *.rds files (18 lines of code)
    • 1 *.ts files (11 lines of code)
    • 1 *.sed files (9 lines of code)
  • " *.f" is biggest, containing 23.74% of code.
  • " *.sed" is smallest, containing 0% of code.


*.f257129 LOC (23%) 38 files
*.po251783 LOC (23%) 255 files
*.c237528 LOC (21%) 497 files
*.r139001 LOC (12%) 794 files
*.afm92111 LOC (8%) 91 files
*.h36818 LOC (3%) 168 files
*.html21087 LOC (1%) 11 files
*.rd10157 LOC (<1%) 4 files
*.in7366 LOC (<1%) 96 files
*.tcl6483 LOC (<1%) 11 files
*.rdata5722 LOC (<1%) 10 files
*.y5576 LOC (<1%) 3 files
*.bib5486 LOC (<1%) 2 files
*.mo2366 LOC (<1%) 99 files
*.tex804 LOC (<1%) 2 files
*.m727 LOC (<1%) 1 files
*.pl658 LOC (<1%) 2 files
*.iss616 LOC (<1%) 7 files
*.cls468 LOC (<1%) 1 files
*.sty431 LOC (<1%) 2 files
*.s280 LOC (<1%) 1 files
*.css183 LOC (<1%) 3 files
*.rda181 LOC (<1%) 7 files
*.aux40 LOC (<1%) 1 files
*.java31 LOC (<1%) 1 files
*.rds18 LOC (<1%) 2 files
*.ts11 LOC (<1%) 1 files
*.sed9 LOC (<1%) 1 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
rd
rda
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with any line of content like ".*/simpletest/.*".
  • 148 files match defined criteria (16,687 lines of code, 1.5% vs. main code):
    • 126 *.r files (16,053 lines of code)
    • 11 *.c files (263 lines of code)
    • 2 *.in files (208 lines of code)
    • 1 *.html files (77 lines of code)
    • 2 *.rd files (45 lines of code)
    • 5 *.rda files (33 lines of code)
    • 1 *.h files (8 lines of code)
  • " *.r" is biggest, containing 96.2% of code.
  • " *.h" is smallest, containing 0.05% of code.


*.r16053 LOC (96%) 126 files
*.c263 LOC (1%) 11 files
*.in208 LOC (1%) 2 files
*.html77 LOC (<1%) 1 files
*.rd45 LOC (<1%) 2 files
*.rda33 LOC (<1%) 5 files
*.h8 LOC (<1%) 1 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
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 ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]cvsignore".
  • 12 files match defined criteria (8,662 lines of code, 0.8% vs. main code):
    • 3 *.sh files (8,368 lines of code)
    • 9 *.mk files (294 lines of code)
  • " *.sh" is biggest, containing 96.61% of code.
  • " *.mk" is smallest, containing 3.39% of code.


*.sh8368 LOC (96%) 3 files
*.mk294 LOC (3%) 9 files
Other Code
rd
texi
tab
patch
in
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 ".*/[Mm]an/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]texi".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]cvsignore".
    • files with paths like ".*[.]tab".
  • 1471 files match defined criteria (148,899 lines of code, 13.7% vs. main code):
    • 1,428 *.rd files (107,509 lines of code)
    • 10 *.texi files (37,496 lines of code)
    • 22 *.r files (2,290 lines of code)
    • 6 *.tab files (1,404 lines of code)
    • 2 *.patch files (105 lines of code)
    • 1 *.in files (54 lines of code)
    • 1 *.svg files (29 lines of code)
    • 1 *.md files (12 lines of code)
  • " *.rd" is biggest, containing 72.2% of code.
  • " *.md" is smallest, containing 0.01% of code.


*.rd107509 LOC (72%) 1428 files
*.texi37496 LOC (25%) 10 files
*.r2290 LOC (1%) 22 files
*.tab1404 LOC (<1%) 6 files
*.patch105 LOC (<1%) 2 files
*.in54 LOC (<1%) 1 files
*.svg29 LOC (<1%) 1 files
*.md12 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.f 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
  • *.po 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
  • *.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
  • *.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
  • *.afm 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
  • *.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
  • *.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
  • *.rd 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
  • *.in files are analyzed with RustAnalyzer:
    • 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
  • *.tcl 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
  • *.rdata 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
  • *.y 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
  • *.bib 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
  • *.mo 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
  • *.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
  • *.m 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
  • *.pl files are analyzed with PerlAnalyzer:
    • 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
  • *.iss 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
  • *.cls files are analyzed with VisualBasicAnalyzer:
    • 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
  • *.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
  • *.s 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
  • *.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
  • *.rda 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
  • *.aux 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
  • *.java files are analyzed with JavaAnalyzer:
    • 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 package names)
  • *.rds 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
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • 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
  • *.sed 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


2022-01-30 13:52