GerritCodeReview / egit
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
prefs
properties
project
classpath
launch
gitattributes
ini
txt
  • 17 extensions are included in analyses: java, svg, prefs, xml, html, properties, project, classpath, css, md, sh, launch, gitattributes, json, ini, gitignore, txt
  • 5 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (149 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) (0 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.

main135572 LOC (57%) 1007 files
test34866 LOC (14%) 247 files
generated0 LOC (0%) 0 files
build and deployment205 LOC (<1%) 3 files
other65609 LOC (27%) 256 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1007 files match defined criteria (135,572 lines of code, 100.0% vs. main code):
    • 959 *.java files (126,919 lines of code)
    • 42 *.html files (8,505 lines of code)
    • 6 *.css files (148 lines of code)
  • " *.java" is biggest, containing 93.62% of code.
  • " *.css" is smallest, containing 0.11% of code.


*.java126919 LOC (93%) 959 files
*.html8505 LOC (6%) 42 files
*.css148 LOC (<1%) 6 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
launch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with any line of content like ".*/simpletest/.*".
  • 247 files match defined criteria (34,866 lines of code, 25.7% vs. main code):
    • 246 *.java files (34,822 lines of code)
    • 1 *.launch files (44 lines of code)
  • " *.java" is biggest, containing 99.87% of code.
  • " *.launch" is smallest, containing 0.13% of code.


*.java34822 LOC (99%) 246 files
*.launch44 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 3 files match defined criteria (205 lines of code, 0.2% vs. main code). All matches are in *.sh files.


*.sh205 LOC (100%) 3 files
Other Code
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 256 files match defined criteria (65,609 lines of code, 48.4% vs. main code):
    • 157 *.svg files (50,072 lines of code)
    • 57 *.xml files (11,963 lines of code)
    • 36 *.properties files (3,348 lines of code)
    • 5 *.md files (203 lines of code)
    • 1 *.ini files (23 lines of code)
  • " *.svg" is biggest, containing 76.32% of code.
  • " *.ini" is smallest, containing 0.04% of code.


*.svg50072 LOC (76%) 157 files
*.xml11963 LOC (18%) 57 files
*.properties3348 LOC (5%) 36 files
*.md203 LOC (<1%) 5 files
*.ini23 LOC (<1%) 1 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)
  • *.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
  • *.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


2022-02-03 05:49