flutter / flutter-intellij
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
txt
properties
cfg
gitattributes
  • 19 extensions are included in analyses: java, xml, svg, txt, dart, md, json, properties, kt, yaml, sh, cfg, kts, bat, html, gradle, yml, gitignore, gitattributes
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (2 files).
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (166 files).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (10 files).
    • exclude files with path like ".*/cache/.*" (Caches) (0 files).
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (25 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (3 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (1 file).
    • exclude files with path like ".*[.]txt" (Text files) (24 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.

main68903 LOC (50%) 510 files
test4939 LOC (3%) 47 files
generated0 LOC (0%) 0 files
build and deployment219 LOC (<1%) 10 files
other61409 LOC (45%) 125 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 510 files match defined criteria (68,903 lines of code, 100.0% vs. main code):
    • 479 *.java files (57,910 lines of code)
    • 11 *.dart files (10,486 lines of code)
    • 4 *.kts files (278 lines of code)
    • 8 *.yaml files (93 lines of code)
    • 1 *.kt files (77 lines of code)
    • 4 *.cfg files (38 lines of code)
    • 3 *.html files (21 lines of code)
  • " *.java" is biggest, containing 84.05% of code.
  • " *.html" is smallest, containing 0.03% of code.


*.java57910 LOC (84%) 479 files
*.dart10486 LOC (15%) 11 files
*.kts278 LOC (<1%) 4 files
*.yaml93 LOC (<1%) 8 files
*.kt77 LOC (<1%) 1 files
*.cfg38 LOC (<1%) 4 files
*.html21 LOC (<1%) 3 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
    • files with any line of content like ".*/simpletest/.*".
  • 47 files match defined criteria (4,939 lines of code, 7.2% vs. main code):
    • 29 *.java files (3,850 lines of code)
    • 10 *.kt files (681 lines of code)
    • 4 *.dart files (310 lines of code)
    • 2 *.gradle files (83 lines of code)
    • 1 *.sh files (8 lines of code)
    • 1 *.bat files (7 lines of code)
  • " *.java" is biggest, containing 77.95% of code.
  • " *.bat" is smallest, containing 0.14% of code.


*.java3850 LOC (77%) 29 files
*.kt681 LOC (13%) 10 files
*.dart310 LOC (6%) 4 files
*.gradle83 LOC (1%) 2 files
*.sh8 LOC (<1%) 1 files
*.bat7 LOC (<1%) 1 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 ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 10 files match defined criteria (219 lines of code, 0.3% vs. main code):
    • 3 *.bat files (125 lines of code)
    • 7 *.sh files (94 lines of code)
  • " *.bat" is biggest, containing 57.08% of code.
  • " *.sh" is smallest, containing 42.92% of code.


*.bat125 LOC (57%) 3 files
*.sh94 LOC (42%) 7 files
Other Code
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 ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 125 files match defined criteria (61,409 lines of code, 89.1% vs. main code):
    • 15 *.properties files (46,617 lines of code)
    • 16 *.json files (9,532 lines of code)
    • 35 *.xml files (2,905 lines of code)
    • 18 *.md files (1,766 lines of code)
    • 36 *.svg files (357 lines of code)
    • 5 *.java files (232 lines of code)
  • " *.properties" is biggest, containing 75.91% of code.
  • " *.java" is smallest, containing 0.38% of code.


*.properties46617 LOC (75%) 15 files
*.json9532 LOC (15%) 16 files
*.xml2905 LOC (4%) 35 files
*.md1766 LOC (2%) 18 files
*.svg357 LOC (<1%) 36 files
*.java232 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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)
  • *.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
  • *.kts 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)
  • *.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
  • *.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)
  • *.cfg files are analyzed with CfgAnalyzer:
    • 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
  • *.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


2022-02-02 22:28