azure / azure-iot-sdk-java
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
http
cfg
txt
pro
cmd
gitattributes
targets
editorconfig
nuspec
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.

main28122 LOC (27%) 362 files
test61285 LOC (58%) 354 files
generated0 LOC (0%) 0 files
build and deployment3907 LOC (3%) 55 files
other10650 LOC (10%) 121 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
targets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 362 files match defined criteria (28,122 LOC, 100.0% vs. main code):
    • 343 *.java files (27,012 LOC)
    • 9 *.ps1 files (572 LOC)
    • 3 *.yaml files (456 LOC)
    • 6 *.xml files (69 LOC)
    • 1 *.targets files (13 LOC)
  • " *.java" is biggest, containing 96.05% of LOC.
  • " *.targets" is smallest, containing 0.05% of LOC.


*.java27012 LOC (96%) 343 files
*.ps1572 LOC (2%) 9 files
*.yaml456 LOC (1%) 3 files
*.xml69 LOC (<1%) 6 files
*.targets13 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
http
cmd
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 ".*/[Tt]ests/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/src/androidTest/.*".
    • files with paths like ".*/e2e/.*".
  • 354 files match defined criteria (61,285 LOC, 217.9% vs. main code):
    • 329 *.java files (60,276 LOC)
    • 6 *.xml files (604 LOC)
    • 3 *.cfg files (102 LOC)
    • 3 *.gradle files (97 LOC)
    • 1 *.sh files (83 LOC)
    • 7 *.http files (49 LOC)
    • 2 *.py files (48 LOC)
    • 2 *.cmd files (24 LOC)
    • 1 *.ps1 files (2 LOC)
  • " *.java" is biggest, containing 98.35% of LOC.
  • " *.ps1" is smallest, containing 0% of LOC.


*.java60276 LOC (98%) 329 files
*.xml604 LOC (<1%) 6 files
*.cfg102 LOC (<1%) 3 files
*.gradle97 LOC (<1%) 3 files
*.sh83 LOC (<1%) 1 file
*.http49 LOC (<1%) 7 files
*.py48 LOC (<1%) 2 files
*.cmd24 LOC (<1%) 2 files
*.ps12 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]nuspec".
  • 55 files match defined criteria (3,907 LOC, 13.9% vs. main code):
    • 49 *.xml files (3,757 LOC)
    • 3 *.gradle files (76 LOC)
    • 2 *.sh files (57 LOC)
    • 1 *.nuspec files (17 LOC)
  • " *.xml" is biggest, containing 96.16% of LOC.
  • " *.nuspec" is smallest, containing 0.44% of LOC.


*.xml3757 LOC (96%) 49 files
*.gradle76 LOC (1%) 3 files
*.sh57 LOC (1%) 2 files
*.nuspec17 LOC (<1%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 121 files match defined criteria (10,650 LOC, 37.9% vs. main code):
    • 44 *.java files (5,301 LOC)
    • 29 *.md files (3,155 LOC)
    • 8 *.json files (1,384 LOC)
    • 2 *.txt files (370 LOC)
    • 34 *.properties files (346 LOC)
    • 4 *.svg files (94 LOC)
  • " *.java" is biggest, containing 49.77% of LOC.
  • " *.svg" is smallest, containing 0.88% of LOC.


*.java5301 LOC (49%) 44 files
*.md3155 LOC (29%) 29 files
*.json1384 LOC (12%) 8 files
*.txt370 LOC (3%) 2 files
*.properties346 LOC (3%) 34 files
*.svg94 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:18