aws / aws-iot-device-sdk-java-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
properties
pro
txt
feature
gitattributes
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.

main20915 LOC (48%) 331 files
test8863 LOC (20%) 115 files
generated0 LOC (0%) 0 files
build and deployment704 LOC (1%) 12 files
other12376 LOC (28%) 129 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 331 files match defined criteria (20,915 LOC, 100.0% vs. main code):
    • 319 *.java files (19,776 LOC)
    • 11 *.py files (1,138 LOC)
    • 1 *.pro files (1 LOC)
  • " *.java" is biggest, containing 94.55% of LOC.
  • " *.pro" is smallest, containing 0% of LOC.


*.java19776 LOC (94%) 319 files
*.py1138 LOC (5%) 11 files
*.pro1 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 ".*/src/androidTest/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.]feature".
  • 115 files match defined criteria (8,863 LOC, 42.4% vs. main code):
    • 80 *.java files (7,180 LOC)
    • 21 *.xml files (944 LOC)
    • 5 *.py files (279 LOC)
    • 2 *.kt files (153 LOC)
    • 2 *.sh files (84 LOC)
    • 2 *.feature files (83 LOC)
    • 2 *.yaml files (72 LOC)
    • 1 *.gradle files (68 LOC)
  • " *.java" is biggest, containing 81.01% of LOC.
  • " *.gradle" is smallest, containing 0.77% of LOC.


*.java7180 LOC (81%) 80 files
*.xml944 LOC (10%) 21 files
*.py279 LOC (3%) 5 files
*.kt153 LOC (1%) 2 files
*.sh84 LOC (<1%) 2 files
*.feature83 LOC (<1%) 2 files
*.yaml72 LOC (<1%) 2 files
*.gradle68 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 12 files match defined criteria (704 LOC, 3.4% vs. main code):
    • 4 *.xml files (326 LOC)
    • 3 *.gradle files (204 LOC)
    • 4 *.sh files (106 LOC)
    • 1 *.bat files (68 LOC)
  • " *.xml" is biggest, containing 46.31% of LOC.
  • " *.bat" is smallest, containing 9.66% of LOC.


*.xml326 LOC (46%) 4 files
*.gradle204 LOC (28%) 3 files
*.sh106 LOC (15%) 4 files
*.bat68 LOC (9%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
  • 129 files match defined criteria (12,376 LOC, 59.2% vs. main code):
    • 29 *.java files (5,633 LOC)
    • 35 *.md files (4,147 LOC)
    • 33 *.xml files (1,859 LOC)
    • 14 *.json files (489 LOC)
    • 10 *.sh files (103 LOC)
    • 2 *.gradle files (61 LOC)
    • 3 *.properties files (59 LOC)
    • 2 *.kt files (23 LOC)
    • 1 *.txt files (2 LOC)
  • " *.java" is biggest, containing 45.52% of LOC.
  • " *.txt" is smallest, containing 0.02% of LOC.


*.java5633 LOC (45%) 29 files
*.md4147 LOC (33%) 35 files
*.xml1859 LOC (15%) 33 files
*.json489 LOC (3%) 14 files
*.sh103 LOC (<1%) 10 files
*.gradle61 LOC (<1%) 2 files
*.properties59 LOC (<1%) 3 files
*.kt23 LOC (<1%) 2 files
*.txt2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 23:55