aws / amazon-neptune-jdbc-driver
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
txt
asciidoc
rdf
  • 17 extensions are included in analyses: java, md, xml, properties, groovy, json, yml, txt, gradle, js, bat, sh, gitignore, py, yaml, asciidoc, rdf
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (9 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (1 file).
    • 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 ".*/target/.*" (Compiled files) (21 files).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (0 files).
    • exclude files with path like ".*[.]txt" (Text files) (1 file).
    • 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.

main12229 LOC (50%) 126 files
test9725 LOC (40%) 106 files
generated0 LOC (0%) 0 files
build and deployment584 LOC (2%) 6 files
other1546 LOC (6%) 32 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 ".*".
  • 126 files match defined criteria (12,229 lines of code, 100.0% vs. main code):
    • 123 *.java files (12,164 lines of code)
    • 2 *.js files (56 lines of code)
    • 1 *.yml files (9 lines of code)
  • " *.java" is biggest, containing 99.47% of code.
  • " *.yml" is smallest, containing 0.07% of code.


*.java12164 LOC (99%) 123 files
*.js56 LOC (<1%) 2 files
*.yml9 LOC (<1%) 1 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
rdf
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with any line of content like ".*/simpletest/.*".
  • 106 files match defined criteria (9,725 lines of code, 79.5% vs. main code):
    • 104 *.java files (9,602 lines of code)
    • 1 *.py files (79 lines of code)
    • 1 *.rdf files (44 lines of code)
  • " *.java" is biggest, containing 98.74% of code.
  • " *.rdf" is smallest, containing 0.45% of code.


*.java9602 LOC (98%) 104 files
*.py79 LOC (<1%) 1 files
*.rdf44 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 ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
  • 6 files match defined criteria (584 lines of code, 4.8% vs. main code):
    • 4 *.gradle files (479 lines of code)
    • 1 *.bat files (78 lines of code)
    • 1 *.sh files (27 lines of code)
  • " *.gradle" is biggest, containing 82.02% of code.
  • " *.sh" is smallest, containing 4.62% of code.


*.gradle479 LOC (82%) 4 files
*.bat78 LOC (13%) 1 files
*.sh27 LOC (4%) 1 files
Other Code
properties
asciidoc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 32 files match defined criteria (1,546 lines of code, 12.6% vs. main code):
    • 14 *.md files (846 lines of code)
    • 10 *.xml files (344 lines of code)
    • 6 *.properties files (261 lines of code)
    • 1 *.asciidoc files (79 lines of code)
    • 1 *.json files (16 lines of code)
  • " *.md" is biggest, containing 54.72% of code.
  • " *.json" is smallest, containing 1.03% of code.


*.md846 LOC (54%) 14 files
*.xml344 LOC (22%) 10 files
*.properties261 LOC (16%) 6 files
*.asciidoc79 LOC (5%) 1 files
*.json16 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)
  • *.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
  • *.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


2022-01-31 15:38