aws / aws-sdk-cpp
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
cmake
in
properties
pro
gitmodules
clang-tidy
  • 22 extensions are included in analyses: h, cpp, txt, json, java, yml, py, cmake, md, xml, gitignore, sh, html, in, gradle, properties, js, bat, cc, pro, gitmodules, clang-tidy
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (17 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (1 file).
    • exclude files with path like ".*/proguard[-]rules[.]pro" (ProGuard) (1 file).
    • exclude files with path like ".*/extern(al)?/.*" (Dependencies) (7 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 ".*[.]txt" (Text files) (347 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.

main4980552 LOC (96%) 81420 files
test25809 LOC (<1%) 110 files
generated48 LOC (<1%) 1 files
build and deployment258 LOC (<1%) 8 files
other165357 LOC (3%) 115 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmake
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 81420 files match defined criteria (4,980,552 lines of code, 100.0% vs. main code):
    • 40,320 *.cpp files (2,656,540 lines of code)
    • 40,970 *.h files (2,311,997 lines of code)
    • 64 *.java files (4,875 lines of code)
    • 17 *.yml files (3,507 lines of code)
    • 22 *.py files (1,856 lines of code)
    • 22 *.cmake files (1,647 lines of code)
    • 2 *.html files (108 lines of code)
    • 3 *.in files (22 lines of code)
  • " *.cpp" is biggest, containing 53.34% of code.
  • " *.in" is smallest, containing 0% of code.


*.cpp2656540 LOC (53%) 40320 files
*.h2311997 LOC (46%) 40970 files
*.java4875 LOC (<1%) 64 files
*.yml3507 LOC (<1%) 17 files
*.py1856 LOC (<1%) 22 files
*.cmake1647 LOC (<1%) 22 files
*.html108 LOC (<1%) 2 files
*.in22 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]est/.*".
    • files with paths like ".*/src/androidTest/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with any line of content like ".*/simpletest/.*".
  • 110 files match defined criteria (25,809 lines of code, 0.5% vs. main code):
    • 98 *.cpp files (24,757 lines of code)
    • 9 *.java files (948 lines of code)
    • 1 *.py files (60 lines of code)
    • 2 *.yml files (44 lines of code)
  • " *.cpp" is biggest, containing 95.92% of code.
  • " *.yml" is smallest, containing 0.17% of code.


*.cpp24757 LOC (95%) 98 files
*.java948 LOC (3%) 9 files
*.py60 LOC (<1%) 1 files
*.yml44 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (48 lines of code, 0.0% vs. main code). All matches are in *.html files.


*.html48 LOC (100%) 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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/pom[.]xml".
  • 8 files match defined criteria (258 lines of code, 0.0% vs. main code):
    • 4 *.sh files (148 lines of code)
    • 1 *.bat files (66 lines of code)
    • 3 *.gradle files (44 lines of code)
  • " *.sh" is biggest, containing 57.36% of code.
  • " *.gradle" is smallest, containing 17.05% of code.


*.sh148 LOC (57%) 4 files
*.bat66 LOC (25%) 1 files
*.gradle44 LOC (17%) 3 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 115 files match defined criteria (165,357 lines of code, 3.3% vs. main code):
    • 92 *.json files (164,492 lines of code)
    • 14 *.md files (679 lines of code)
    • 8 *.xml files (173 lines of code)
    • 1 *.properties files (13 lines of code)
  • " *.json" is biggest, containing 99.48% of code.
  • " *.properties" is smallest, containing 0.01% of code.


*.json164492 LOC (99%) 92 files
*.md679 LOC (<1%) 14 files
*.xml173 LOC (<1%) 8 files
*.properties13 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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
  • *.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
  • *.cmake files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and 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
  • *.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


2022-01-31 03:50