corretto / amazon-corretto-crypto-provider
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
cxx
in
project
properties
  • 15 extensions are included in analyses: java, cpp, h, md, txt, cxx, gradle, in, gitignore, project, rst, bat, xml, json, properties
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (3 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 ".*/testdata/.*" (Test data) (3 files).
    • exclude files with path like ".*[.]txt" (Text files) (3 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.

main8570 LOC (43%) 69 files
test9558 LOC (48%) 51 files
generated0 LOC (0%) 0 files
build and deployment492 LOC (2%) 3 files
other1116 LOC (5%) 9 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
cxx
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 69 files match defined criteria (8,570 lines of code, 100.0% vs. main code):
    • 32 *.java files (4,742 lines of code)
    • 23 *.cpp files (2,710 lines of code)
    • 10 *.h files (1,091 lines of code)
    • 1 *.in files (19 lines of code)
    • 3 *.cxx files (8 lines of code)
  • " *.java" is biggest, containing 55.33% of code.
  • " *.cxx" is smallest, containing 0.09% of code.


*.java4742 LOC (55%) 32 files
*.cpp2710 LOC (31%) 23 files
*.h1091 LOC (12%) 10 files
*.in19 LOC (<1%) 1 files
*.cxx8 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 ".*/test[-]data/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with any line of content like ".*/simpletest/.*".
  • 51 files match defined criteria (9,558 lines of code, 111.5% vs. main code):
    • 48 *.java files (9,297 lines of code)
    • 2 *.cpp files (216 lines of code)
    • 1 *.h files (45 lines of code)
  • " *.java" is biggest, containing 97.27% of code.
  • " *.h" is smallest, containing 0.47% of code.


*.java9297 LOC (97%) 48 files
*.cpp216 LOC (2%) 2 files
*.h45 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
  • 3 files match defined criteria (492 lines of code, 5.7% vs. main code):
    • 2 *.gradle files (424 lines of code)
    • 1 *.bat files (68 lines of code)
  • " *.gradle" is biggest, containing 86.18% of code.
  • " *.bat" is smallest, containing 13.82% of code.


*.gradle424 LOC (86%) 2 files
*.bat68 LOC (13%) 1 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • 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)".
  • 9 files match defined criteria (1,116 lines of code, 13.0% vs. main code):
    • 7 *.md files (1,074 lines of code)
    • 1 *.xml files (23 lines of code)
    • 1 *.rst files (19 lines of code)
  • " *.md" is biggest, containing 96.24% of code.
  • " *.rst" is smallest, containing 1.7% of code.


*.md1074 LOC (96%) 7 files
*.xml23 LOC (2%) 1 files
*.rst19 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)
  • *.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
  • *.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
  • *.in files are analyzed with RustAnalyzer:
    • 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
  • *.cxx 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


2022-02-01 04:29