flutter / devtools
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
plist
txt
storyboard
properties
vcxproj
mk
props
gitattributes
filters
cmake
  • 31 extensions are included in analyses: dart, md, plist, json, gitignore, xml, txt, yaml, swift, gradle, h, storyboard, properties, svg, html, sh, cc, xib, kt, bat, yml, js, vcxproj, mk, cpp, m, props, gitattributes, java, filters, cmake
  • 9 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (55 files).
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (43 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (7 files).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (2 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (11 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) (33 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.

main76779 LOC (2%) 423 files
test1518791 LOC (52%) 159 files
generated0 LOC (0%) 0 files
build and deployment972 LOC (<1%) 34 files
other1276111 LOC (44%) 176 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
props
cmake
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 423 files match defined criteria (76,779 lines of code, 100.0% vs. main code):
    • 331 *.dart files (74,839 lines of code)
    • 18 *.yaml files (415 lines of code)
    • 2 *.vcxproj files (306 lines of code)
    • 8 *.cc files (286 lines of code)
    • 8 *.html files (268 lines of code)
    • 24 *.swift files (252 lines of code)
    • 15 *.h files (97 lines of code)
    • 2 *.js files (76 lines of code)
    • 2 *.cpp files (75 lines of code)
    • 1 *.filters files (70 lines of code)
    • 6 *.kt files (40 lines of code)
    • 2 *.m files (16 lines of code)
    • 2 *.props files (14 lines of code)
    • 1 *.cmake files (14 lines of code)
    • 1 *.java files (11 lines of code)
  • " *.dart" is biggest, containing 97.47% of code.
  • " *.java" is smallest, containing 0.01% of code.


*.dart74839 LOC (97%) 331 files
*.yaml415 LOC (<1%) 18 files
*.vcxproj306 LOC (<1%) 2 files
*.cc286 LOC (<1%) 8 files
*.html268 LOC (<1%) 8 files
*.swift252 LOC (<1%) 24 files
*.h97 LOC (<1%) 15 files
*.js76 LOC (<1%) 2 files
*.cpp75 LOC (<1%) 2 files
*.filters70 LOC (<1%) 1 files
*.kt40 LOC (<1%) 6 files
*.m16 LOC (<1%) 2 files
*.props14 LOC (<1%) 2 files
*.cmake14 LOC (<1%) 1 files
*.java11 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with any line of content like ".*/simpletest/.*".
  • 159 files match defined criteria (1,518,791 lines of code, 1978.1% vs. main code):
    • 154 *.dart files (1,518,734 lines of code)
    • 5 *.yaml files (57 lines of code)
  • " *.dart" is biggest, containing 100% of code.
  • " *.yaml" is smallest, containing 0% of code.


*.dart1518734 LOC (99%) 154 files
*.yaml57 LOC (<1%) 5 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 ".*[.]gradle".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 34 files match defined criteria (972 lines of code, 1.3% vs. main code):
    • 21 *.gradle files (587 lines of code)
    • 8 *.sh files (225 lines of code)
    • 3 *.bat files (125 lines of code)
    • 2 *.mk files (35 lines of code)
  • " *.gradle" is biggest, containing 60.39% of code.
  • " *.mk" is smallest, containing 3.6% of code.


*.gradle587 LOC (60%) 21 files
*.sh225 LOC (23%) 8 files
*.bat125 LOC (12%) 3 files
*.mk35 LOC (3%) 2 files
Other Code
plist
storyboard
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]xib".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 176 files match defined criteria (1,276,111 lines of code, 1662.1% vs. main code):
    • 29 *.json files (1,270,907 lines of code)
    • 6 *.xib files (2,034 lines of code)
    • 37 *.md files (1,529 lines of code)
    • 41 *.plist files (847 lines of code)
    • 14 *.storyboard files (417 lines of code)
    • 31 *.xml files (318 lines of code)
    • 12 *.svg files (35 lines of code)
    • 6 *.properties files (24 lines of code)
  • " *.json" is biggest, containing 99.59% of code.
  • " *.properties" is smallest, containing 0% of code.


*.json1270907 LOC (99%) 29 files
*.xib2034 LOC (<1%) 6 files
*.md1529 LOC (<1%) 37 files
*.plist847 LOC (<1%) 41 files
*.storyboard417 LOC (<1%) 14 files
*.xml318 LOC (<1%) 31 files
*.svg35 LOC (<1%) 12 files
*.properties24 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.
  • *.dart 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
  • *.yaml 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
  • *.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
  • *.cc 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
  • *.swift files are analyzed with SwiftAnalyzer:
    • 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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.kt files are analyzed with KotlinAnalyzer:
    • 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 (based on imports and package statements)
  • *.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
  • *.props 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
  • *.cmake 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)


2022-02-03 01:24