aws / aws-iot-device-sdk-cpp-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
txt
in
feature
clang-format
gitmodules
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.

main29609 LOC (56%) 228 files
test6899 LOC (13%) 35 files
generated0 LOC (0%) 0 files
build and deployment68 LOC (<1%) 2 files
other15625 LOC (29%) 148 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 228 files match defined criteria (29,609 LOC, 100.0% vs. main code):
    • 92 *.cpp files (18,913 LOC)
    • 101 *.h files (8,647 LOC)
    • 14 *.py files (1,686 LOC)
    • 11 *.cmake files (259 LOC)
    • 10 *.in files (104 LOC)
  • " *.cpp" is biggest, containing 63.88% of LOC.
  • " *.in" is smallest, containing 0.35% of LOC.


*.cpp18913 LOC (63%) 92 files
*.h8647 LOC (29%) 101 files
*.py1686 LOC (5%) 14 files
*.cmake259 LOC (<1%) 11 files
*.in104 LOC (<1%) 10 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/test_.*".
  • 35 files match defined criteria (6,899 LOC, 23.3% vs. main code):
    • 19 *.cpp files (5,521 LOC)
    • 4 *.h files (830 LOC)
    • 4 *.py files (266 LOC)
    • 2 *.xml files (112 LOC)
    • 2 *.feature files (83 LOC)
    • 2 *.yaml files (81 LOC)
    • 2 *.sh files (6 LOC)
  • " *.cpp" is biggest, containing 80.03% of LOC.
  • " *.sh" is smallest, containing 0.09% of LOC.


*.cpp5521 LOC (80%) 19 files
*.h830 LOC (12%) 4 files
*.py266 LOC (3%) 4 files
*.xml112 LOC (1%) 2 files
*.feature83 LOC (1%) 2 files
*.yaml81 LOC (1%) 2 files
*.sh6 LOC (<1%) 2 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
  • 2 files match defined criteria (68 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh68 LOC (100%) 2 files
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
  • 148 files match defined criteria (15,625 LOC, 52.8% vs. main code):
    • 31 *.cpp files (7,671 LOC)
    • 39 *.md files (5,054 LOC)
    • 56 *.txt files (2,096 LOC)
    • 14 *.json files (487 LOC)
    • 2 *.h files (216 LOC)
    • 6 *.sh files (101 LOC)
  • " *.cpp" is biggest, containing 49.09% of LOC.
  • " *.sh" is smallest, containing 0.65% of LOC.


*.cpp7671 LOC (49%) 31 files
*.md5054 LOC (32%) 39 files
*.txt2096 LOC (13%) 56 files
*.json487 LOC (3%) 14 files
*.h216 LOC (1%) 2 files
*.sh101 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:56