aws / aws-sdk-java-v2
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
properties
feature
txt
tst
policy
  • 17 extensions are included in analyses: java, json, xml, properties, md, feature, yml, txt, py, yaml, tst, gitignore, js, bat, sh, html, policy
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (733 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (51 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 ".*/cache/.*" (Caches) (5 files).
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (3 files).
    • exclude files with path like ".*[.]txt" (Text files) (19 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (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.

main103415 LOC (18%) 1551 files
test146109 LOC (26%) 1548 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other305033 LOC (55%) 1334 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 ".*".
  • 1551 files match defined criteria (103,415 lines of code, 100.0% vs. main code):
    • 1,527 *.java files (102,705 lines of code)
    • 15 *.yml files (342 lines of code)
    • 6 *.py files (290 lines of code)
    • 1 *.html files (61 lines of code)
    • 1 *.yaml files (11 lines of code)
    • 1 *.js files (6 lines of code)
  • " *.java" is biggest, containing 99.31% of code.
  • " *.js" is smallest, containing 0.01% of code.


*.java102705 LOC (99%) 1527 files
*.yml342 LOC (<1%) 15 files
*.py290 LOC (<1%) 6 files
*.html61 LOC (<1%) 1 files
*.yaml11 LOC (<1%) 1 files
*.js6 LOC (<1%) 1 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
tst
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/src/it/.*".
    • files with any line of content like ".*/simpletest/.*".
  • 1548 files match defined criteria (146,109 lines of code, 141.3% vs. main code):
    • 1,481 *.java files (145,364 lines of code)
    • 53 *.feature files (610 lines of code)
    • 5 *.yaml files (55 lines of code)
    • 5 *.tst files (24 lines of code)
    • 1 *.bat files (19 lines of code)
    • 1 *.sh files (17 lines of code)
    • 1 *.policy files (14 lines of code)
    • 1 *.js files (6 lines of code)
  • " *.java" is biggest, containing 99.49% of code.
  • " *.js" is smallest, containing 0% of code.


*.java145364 LOC (99%) 1481 files
*.feature610 LOC (<1%) 53 files
*.yaml55 LOC (<1%) 5 files
*.tst24 LOC (<1%) 5 files
*.bat19 LOC (<1%) 1 files
*.sh17 LOC (<1%) 1 files
*.policy14 LOC (<1%) 1 files
*.js6 LOC (<1%) 1 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 1334 files match defined criteria (305,033 lines of code, 295.0% vs. main code):
    • 713 *.json files (272,417 lines of code)
    • 374 *.xml files (26,783 lines of code)
    • 223 *.properties files (4,256 lines of code)
    • 24 *.md files (1,577 lines of code)
  • " *.json" is biggest, containing 89.31% of code.
  • " *.md" is smallest, containing 0.52% of code.


*.json272417 LOC (89%) 713 files
*.xml26783 LOC (8%) 374 files
*.properties4256 LOC (1%) 223 files
*.md1577 LOC (<1%) 24 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)
  • *.yml 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
  • *.py files are analyzed with PythonAnalyzer:
    • 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
  • *.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
  • *.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
  • *.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


2022-01-31 09:10