aws / aws-iot-device-sdk-python-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
feature
txt
cfg
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.

main9709 LOC (48%) 26 files
test3308 LOC (16%) 30 files
generated0 LOC (0%) 0 files
build and deployment199 LOC (<1%) 3 files
other7007 LOC (34%) 82 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 26 files match defined criteria (9,709 LOC, 100.0% vs. main code):
    • 24 *.py files (9,702 LOC)
    • 1 *.css files (4 LOC)
    • 1 *.cfg files (3 LOC)
  • " *.py" is biggest, containing 99.93% of LOC.
  • " *.cfg" is smallest, containing 0.03% of LOC.


*.py9702 LOC (99%) 24 files
*.css4 LOC (<1%) 1 file
*.cfg3 LOC (<1%) 1 file
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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.]feature".
  • 30 files match defined criteria (3,308 LOC, 34.1% vs. main code):
    • 22 *.py files (3,034 LOC)
    • 2 *.xml files (112 LOC)
    • 2 *.feature files (83 LOC)
    • 2 *.yaml files (73 LOC)
    • 2 *.sh files (6 LOC)
  • " *.py" is biggest, containing 91.72% of LOC.
  • " *.sh" is smallest, containing 0.18% of LOC.


*.py3034 LOC (91%) 22 files
*.xml112 LOC (3%) 2 files
*.feature83 LOC (2%) 2 files
*.yaml73 LOC (2%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
  • 3 files match defined criteria (199 LOC, 2.0% vs. main code). All matches are in *.sh files.


*.sh199 LOC (100%) 3 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 82 files match defined criteria (7,007 LOC, 72.2% vs. main code):
    • 22 *.py files (3,232 LOC)
    • 29 *.md files (3,137 LOC)
    • 14 *.json files (512 LOC)
    • 7 *.sh files (68 LOC)
    • 10 *.rst files (58 LOC)
  • " *.py" is biggest, containing 46.13% of LOC.
  • " *.rst" is smallest, containing 0.83% of LOC.


*.py3232 LOC (46%) 22 files
*.md3137 LOC (44%) 29 files
*.json512 LOC (7%) 14 files
*.sh68 LOC (<1%) 7 files
*.rst58 LOC (<1%) 10 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:56