microsoft / project-rome
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
properties
pro
storyboard
cshtml
csproj
asax
plist
classpath
txt
project
gitattributes
resx
  • 25 extensions are included in analyses: xml, java, cs, h, m, md, xaml, gradle, gitignore, properties, json, pro, storyboard, bat, cshtml, csproj, js, asax, plist, classpath, txt, css, project, gitattributes, resx
  • 10 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (16 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (4 files).
    • exclude files with path like ".*/proguard[-]rules[.]pro" (ProGuard) (5 files).
    • exclude files with path like ".*[.]resx" (The resx resource files) (1 file).
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (1 file).
    • exclude files with path like ".*jquery[.].*[.]js" (jQuery library) (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.

main0 LOC (0%) 0 files
test0 LOC (0%) 0 files
generated62 LOC (<1%) 1 files
build and deployment0 LOC (0%) 0 files
other16281 LOC (99%) 259 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 1 file matches defined criteria (62 lines of code, ?% vs. main code). All matches are in *.cs files.


*.cs62 LOC (100%) 1 files
Other Code
xaml
storyboard
csproj
cshtml
plist
properties
asax
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 ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 259 files match defined criteria (16,281 lines of code, ?% vs. main code):
    • 45 *.java files (4,117 lines of code)
    • 24 *.m files (3,200 lines of code)
    • 36 *.cs files (1,944 lines of code)
    • 58 *.xml files (1,922 lines of code)
    • 13 *.xaml files (1,331 lines of code)
    • 5 *.storyboard files (964 lines of code)
    • 4 *.csproj files (812 lines of code)
    • 25 *.h files (379 lines of code)
    • 13 *.md files (343 lines of code)
    • 4 *.bat files (244 lines of code)
    • 12 *.gradle files (243 lines of code)
    • 5 *.json files (239 lines of code)
    • 2 *.js files (184 lines of code)
    • 4 *.cshtml files (119 lines of code)
    • 2 *.plist files (105 lines of code)
    • 1 *.css files (88 lines of code)
    • 4 *.properties files (45 lines of code)
    • 2 *.asax files (2 lines of code)
  • " *.java" is biggest, containing 25.29% of code.
  • " *.asax" is smallest, containing 0.01% of code.


*.java4117 LOC (25%) 45 files
*.m3200 LOC (19%) 24 files
*.cs1944 LOC (11%) 36 files
*.xml1922 LOC (11%) 58 files
*.xaml1331 LOC (8%) 13 files
*.storyboard964 LOC (5%) 5 files
*.csproj812 LOC (4%) 4 files
*.h379 LOC (2%) 25 files
*.md343 LOC (2%) 13 files
*.bat244 LOC (1%) 4 files
*.gradle243 LOC (1%) 12 files
*.json239 LOC (1%) 5 files
*.js184 LOC (1%) 2 files
*.cshtml119 LOC (<1%) 4 files
*.plist105 LOC (<1%) 2 files
*.css88 LOC (<1%) 1 files
*.properties45 LOC (<1%) 4 files
*.asax2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2022-01-30 14:03