aws / aws-iot-fleetwise-edge
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
proto
dbc
patch
ini
in
lds
properties
bb
mk
cfg
clang-format
clang-tidy
prettierignore
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.

main42354 LOC (37%) 291 files
test41568 LOC (36%) 153 files
generated0 LOC (0%) 0 files
build and deployment4815 LOC (4%) 39 files
other24689 LOC (21%) 154 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
dbc
in
bb
lds
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 291 files match defined criteria (42,354 LOC, 100.0% vs. main code):
    • 92 *.cpp files (26,156 LOC)
    • 123 *.h files (10,202 LOC)
    • 22 *.py files (2,667 LOC)
    • 10 *.proto files (1,275 LOC)
    • 8 *.java files (1,036 LOC)
    • 12 *.cmake files (362 LOC)
    • 3 *.hpp files (279 LOC)
    • 12 *.xml files (209 LOC)
    • 2 *.dbc files (114 LOC)
    • 2 *.in files (24 LOC)
    • 1 *.bb files (14 LOC)
    • 2 *.lds files (8 LOC)
    • 1 *.toml files (7 LOC)
    • 1 *.cfg files (1 LOC)
  • " *.cpp" is biggest, containing 61.76% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.cpp26156 LOC (61%) 92 files
*.h10202 LOC (24%) 123 files
*.py2667 LOC (6%) 22 files
*.proto1275 LOC (3%) 10 files
*.java1036 LOC (2%) 8 files
*.cmake362 LOC (<1%) 12 files
*.hpp279 LOC (<1%) 3 files
*.xml209 LOC (<1%) 12 files
*.dbc114 LOC (<1%) 2 files
*.in24 LOC (<1%) 2 files
*.bb14 LOC (<1%) 1 file
*.lds8 LOC (<1%) 2 files
*.toml7 LOC (<1%) 1 file
*.cfg1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
dbc
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 153 files match defined criteria (41,568 LOC, 98.1% vs. main code):
    • 66 *.cpp files (25,105 LOC)
    • 44 *.py files (11,807 LOC)
    • 23 *.h files (3,267 LOC)
    • 3 *.dbc files (725 LOC)
    • 6 *.hpp files (251 LOC)
    • 4 *.sh files (203 LOC)
    • 1 *.proto files (88 LOC)
    • 4 *.xml files (50 LOC)
    • 1 *.cmake files (45 LOC)
    • 1 *.yaml files (27 LOC)
  • " *.cpp" is biggest, containing 60.4% of LOC.
  • " *.yaml" is smallest, containing 0.06% of LOC.


*.cpp25105 LOC (60%) 66 files
*.py11807 LOC (28%) 44 files
*.h3267 LOC (7%) 23 files
*.dbc725 LOC (1%) 3 files
*.hpp251 LOC (<1%) 6 files
*.sh203 LOC (<1%) 4 files
*.proto88 LOC (<1%) 1 file
*.xml50 LOC (<1%) 4 files
*.cmake45 LOC (<1%) 1 file
*.yaml27 LOC (<1%) 1 file
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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]mk".
  • 39 files match defined criteria (4,815 LOC, 11.4% vs. main code):
    • 34 *.sh files (4,622 LOC)
    • 1 *.xml files (76 LOC)
    • 1 *.bat files (68 LOC)
    • 3 *.gradle files (49 LOC)
  • " *.sh" is biggest, containing 95.99% of LOC.
  • " *.gradle" is smallest, containing 1.02% of LOC.


*.sh4622 LOC (95%) 34 files
*.xml76 LOC (1%) 1 file
*.bat68 LOC (1%) 1 file
*.gradle49 LOC (1%) 3 files
Other Code
txt
patch
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]patch".
  • 154 files match defined criteria (24,689 LOC, 58.3% vs. main code):
    • 89 *.json files (19,486 LOC)
    • 23 *.md files (2,312 LOC)
    • 15 *.cpp files (1,149 LOC)
    • 11 *.txt files (977 LOC)
    • 3 *.patch files (477 LOC)
    • 9 *.h files (236 LOC)
    • 3 *.ini files (31 LOC)
    • 1 *.properties files (21 LOC)
  • " *.json" is biggest, containing 78.93% of LOC.
  • " *.properties" is smallest, containing 0.09% of LOC.


*.json19486 LOC (78%) 89 files
*.md2312 LOC (9%) 23 files
*.cpp1149 LOC (4%) 15 files
*.txt977 LOC (3%) 11 files
*.patch477 LOC (1%) 3 files
*.h236 LOC (<1%) 9 files
*.ini31 LOC (<1%) 3 files
*.properties21 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:38