azure / azure-sdk-for-android
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
txt
cmd
pro
gitattributes
editorconfig
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.

main34537 LOC (48%) 418 files
test17183 LOC (24%) 146 files
generated2786 LOC (3%) 1 file
build and deployment785 LOC (1%) 30 files
other16155 LOC (22%) 208 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 418 files match defined criteria (34,537 LOC, 100.0% vs. main code):
    • 307 *.java files (17,180 LOC)
    • 97 *.ps1 files (15,414 LOC)
    • 4 *.html files (1,000 LOC)
    • 1 *.psm1 files (263 LOC)
    • 1 *.css files (247 LOC)
    • 4 *.xml files (201 LOC)
    • 1 *.js files (196 LOC)
    • 3 *.cmd files (36 LOC)
  • " *.java" is biggest, containing 49.74% of LOC.
  • " *.cmd" is smallest, containing 0.1% of LOC.


*.java17180 LOC (49%) 307 files
*.ps115414 LOC (44%) 97 files
*.html1000 LOC (2%) 4 files
*.psm1263 LOC (<1%) 1 file
*.css247 LOC (<1%) 1 file
*.xml201 LOC (<1%) 4 files
*.js196 LOC (<1%) 1 file
*.cmd36 LOC (<1%) 3 files
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 ".*/[Tt]est/.*".
    • files with paths like ".*/src/androidTest/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
  • 146 files match defined criteria (17,183 LOC, 49.8% vs. main code):
    • 139 *.java files (16,587 LOC)
    • 3 *.ps1 files (544 LOC)
    • 4 *.xml files (52 LOC)
  • " *.java" is biggest, containing 96.53% of LOC.
  • " *.xml" is smallest, containing 0.3% of LOC.


*.java16587 LOC (96%) 139 files
*.ps1544 LOC (3%) 3 files
*.xml52 LOC (<1%) 4 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (2,786 LOC, 8.1% vs. main code). All matches are in *.json files.


*.json2786 LOC (100%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 30 files match defined criteria (785 LOC, 2.3% vs. main code):
    • 15 *.gradle files (541 LOC)
    • 2 *.bat files (154 LOC)
    • 12 *.xml files (66 LOC)
    • 1 *.sh files (24 LOC)
  • " *.gradle" is biggest, containing 68.92% of LOC.
  • " *.sh" is smallest, containing 3.06% of LOC.


*.gradle541 LOC (68%) 15 files
*.bat154 LOC (19%) 2 files
*.xml66 LOC (8%) 12 files
*.sh24 LOC (3%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • 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 ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 208 files match defined criteria (16,155 LOC, 46.8% vs. main code):
    • 88 *.json files (8,095 LOC)
    • 46 *.md files (3,940 LOC)
    • 40 *.java files (3,235 LOC)
    • 10 *.xml files (687 LOC)
    • 1 *.svg files (76 LOC)
    • 15 *.properties files (53 LOC)
    • 1 *.gradle files (45 LOC)
    • 7 *.txt files (24 LOC)
  • " *.json" is biggest, containing 50.11% of LOC.
  • " *.txt" is smallest, containing 0.15% of LOC.


*.json8095 LOC (50%) 88 files
*.md3940 LOC (24%) 46 files
*.java3235 LOC (20%) 40 files
*.xml687 LOC (4%) 10 files
*.svg76 LOC (<1%) 1 file
*.properties53 LOC (<1%) 15 files
*.gradle45 LOC (<1%) 1 file
*.txt24 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:31