azure / azure-sdk-for-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
txt
cmd
policy
jsonl
xsd
gitattributes
editorconfig
in
xsl
pub
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.

main5881626 LOC (72%) 63,469 files
test736044 LOC (9%) 4,755 files
generated634886 LOC (7%) 26,029 files
build and deployment50106 LOC (<1%) 778 files
other821318 LOC (10%) 15,730 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmd
in
xsl
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 63469 files match defined criteria (5,881,626 LOC, 100.0% vs. main code):
    • 62,851 *.java files (5,826,135 LOC)
    • 165 *.ps1 files (21,256 LOC)
    • 148 *.scala files (15,999 LOC)
    • 144 *.xml files (8,862 LOC)
    • 43 *.py files (5,096 LOC)
    • 79 *.yaml files (1,367 LOC)
    • 14 *.html files (1,054 LOC)
    • 8 *.js files (882 LOC)
    • 2 *.css files (335 LOC)
    • 1 *.psm1 files (263 LOC)
    • 1 *.ipynb files (159 LOC)
    • 6 *.cmd files (156 LOC)
    • 1 *.in files (17 LOC)
    • 1 *.xsl files (17 LOC)
    • 1 *.jsp files (12 LOC)
    • 1 *.groovy files (11 LOC)
    • 2 *.dockerignore files (4 LOC)
    • 1 *.pub files (1 LOC)
  • " *.java" is biggest, containing 99.06% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.java5826135 LOC (99%) 62,851 files
*.ps121256 LOC (<1%) 165 files
*.scala15999 LOC (<1%) 148 files
*.xml8862 LOC (<1%) 144 files
*.py5096 LOC (<1%) 43 files
*.yaml1367 LOC (<1%) 79 files
*.html1054 LOC (<1%) 14 files
*.js882 LOC (<1%) 8 files
*.css335 LOC (<1%) 2 files
*.psm1263 LOC (<1%) 1 file
*.ipynb159 LOC (<1%) 1 file
*.cmd156 LOC (<1%) 6 files
*.in17 LOC (<1%) 1 file
*.xsl17 LOC (<1%) 1 file
*.jsp12 LOC (<1%) 1 file
*.groovy11 LOC (<1%) 1 file
*.dockerignore4 LOC (<1%) 2 files
*.pub1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
policy
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[-]resources/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*[.]tests[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
  • 4755 files match defined criteria (736,044 LOC, 12.5% vs. main code):
    • 4,561 *.java files (711,103 LOC)
    • 73 *.scala files (17,630 LOC)
    • 86 *.xml files (6,092 LOC)
    • 7 *.ps1 files (750 LOC)
    • 9 *.yaml files (277 LOC)
    • 6 *.policy files (73 LOC)
    • 6 *.sh files (33 LOC)
    • 2 *.avsc files (30 LOC)
    • 2 *.py files (30 LOC)
    • 1 *.html files (20 LOC)
    • 2 *.jsonl files (6 LOC)
  • " *.java" is biggest, containing 96.61% of LOC.
  • " *.jsonl" is smallest, containing 0% of LOC.


*.java711103 LOC (96%) 4,561 files
*.scala17630 LOC (2%) 73 files
*.xml6092 LOC (<1%) 86 files
*.ps1750 LOC (<1%) 7 files
*.yaml277 LOC (<1%) 9 files
*.policy73 LOC (<1%) 6 files
*.sh33 LOC (<1%) 6 files
*.avsc30 LOC (<1%) 2 files
*.py30 LOC (<1%) 2 files
*.html20 LOC (<1%) 1 file
*.jsonl6 LOC (<1%) 2 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 ".*/generated/.*".
    • files with any line of content like "// This file was generated .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 26029 files match defined criteria (634,886 LOC, 10.8% vs. main code):
    • 26,028 *.java files (632,100 LOC)
    • 1 *.json files (2,786 LOC)
  • " *.java" is biggest, containing 99.56% of LOC.
  • " *.json" is smallest, containing 0.44% of LOC.


*.java632100 LOC (99%) 26,028 files
*.json2786 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
  • 778 files match defined criteria (50,106 LOC, 0.9% vs. main code):
    • 765 *.xml files (49,776 LOC)
    • 13 *.sh files (330 LOC)
  • " *.xml" is biggest, containing 99.34% of LOC.
  • " *.sh" is smallest, containing 0.66% of LOC.


*.xml49776 LOC (99%) 765 files
*.sh330 LOC (<1%) 13 files
Other Code
txt
properties
xsd
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 ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 15730 files match defined criteria (821,318 LOC, 14.0% vs. main code):
    • 1,319 *.md files (382,705 LOC)
    • 13,014 *.java files (324,859 LOC)
    • 959 *.json files (99,203 LOC)
    • 50 *.txt files (5,346 LOC)
    • 131 *.xml files (3,601 LOC)
    • 8 *.ipynb files (2,534 LOC)
    • 17 *.scala files (1,474 LOC)
    • 224 *.properties files (757 LOC)
    • 2 *.py files (271 LOC)
    • 2 *.xsd files (266 LOC)
    • 1 *.html files (172 LOC)
    • 1 *.svg files (76 LOC)
    • 1 *.css files (34 LOC)
    • 1 *.yaml files (20 LOC)
  • " *.md" is biggest, containing 46.6% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.md382705 LOC (46%) 1,319 files
*.java324859 LOC (39%) 13,014 files
*.json99203 LOC (12%) 959 files
*.txt5346 LOC (<1%) 50 files
*.xml3601 LOC (<1%) 131 files
*.ipynb2534 LOC (<1%) 8 files
*.scala1474 LOC (<1%) 17 files
*.properties757 LOC (<1%) 224 files
*.py271 LOC (<1%) 2 files
*.xsd266 LOC (<1%) 2 files
*.html172 LOC (<1%) 1 file
*.svg76 LOC (<1%) 1 file
*.css34 LOC (<1%) 1 file
*.yaml20 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 10:45