azure / iot-central-paad
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
plist
properties
gitattributes
watchmanconfig
patch
pro
storyboard
txt
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.

main6474 LOC (86%) 73 files
test95 LOC (1%) 2 files
generated0 LOC (0%) 0 files
build and deployment275 LOC (3%) 8 files
other628 LOC (8%) 21 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 73 files match defined criteria (6,474 LOC, 100.0% vs. main code):
    • 27 *.tsx files (4,285 LOC)
    • 29 *.ts files (1,961 LOC)
    • 4 *.js files (71 LOC)
    • 2 *.m files (61 LOC)
    • 2 *.kt files (42 LOC)
    • 5 *.xml files (24 LOC)
    • 1 *.mm files (22 LOC)
    • 2 *.h files (7 LOC)
    • 1 *.swift files (1 LOC)
  • " *.tsx" is biggest, containing 66.19% of LOC.
  • " *.swift" is smallest, containing 0.02% of LOC.


*.tsx4285 LOC (66%) 27 files
*.ts1961 LOC (30%) 29 files
*.js71 LOC (1%) 4 files
*.m61 LOC (<1%) 2 files
*.kt42 LOC (<1%) 2 files
*.xml24 LOC (<1%) 5 files
*.mm22 LOC (<1%) 1 file
*.h7 LOC (<1%) 2 files
*.swift1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*__tests__.*".
  • 2 files match defined criteria (95 LOC, 1.5% vs. main code):
    • 1 *.ts files (88 LOC)
    • 1 *.js files (7 LOC)
  • " *.ts" is biggest, containing 92.63% of LOC.
  • " *.js" is smallest, containing 7.37% of LOC.


*.ts88 LOC (92%) 1 file
*.js7 LOC (7%) 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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 8 files match defined criteria (275 LOC, 4.2% vs. main code):
    • 3 *.gradle files (126 LOC)
    • 1 *.bat files (71 LOC)
    • 2 *.xml files (41 LOC)
    • 2 *.sh files (37 LOC)
  • " *.gradle" is biggest, containing 45.82% of LOC.
  • " *.sh" is smallest, containing 13.45% of LOC.


*.gradle126 LOC (45%) 3 files
*.bat71 LOC (25%) 1 file
*.xml41 LOC (14%) 2 files
*.sh37 LOC (13%) 2 files
Other Code
plist
storyboard
properties
patch
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 ".*[.]svg".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
  • 21 files match defined criteria (628 LOC, 9.7% vs. main code):
    • 6 *.json files (225 LOC)
    • 7 *.svg files (122 LOC)
    • 3 *.plist files (110 LOC)
    • 2 *.md files (70 LOC)
    • 1 *.storyboard files (46 LOC)
    • 1 *.properties files (31 LOC)
    • 1 *.patch files (24 LOC)
  • " *.json" is biggest, containing 35.83% of LOC.
  • " *.patch" is smallest, containing 3.82% of LOC.


*.json225 LOC (35%) 6 files
*.svg122 LOC (19%) 7 files
*.plist110 LOC (17%) 3 files
*.md70 LOC (11%) 2 files
*.storyboard46 LOC (7%) 1 file
*.properties31 LOC (4%) 1 file
*.patch24 LOC (3%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 22:05