azure / autorest.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
prettierignore
diff
gitmodules
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.

main14154 LOC (3%) 170 files
test350808 LOC (86%) 4,286 files
generated17486 LOC (4%) 226 files
build and deployment1039 LOC (<1%) 12 files
other22636 LOC (5%) 324 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 ".*".
  • 170 files match defined criteria (14,154 LOC, 100.0% vs. main code):
    • 147 *.java files (11,972 LOC)
    • 2 *.xml files (802 LOC)
    • 9 *.ps1 files (541 LOC)
    • 8 *.yaml files (379 LOC)
    • 2 *.py files (295 LOC)
    • 1 *.ts files (83 LOC)
    • 1 *.js files (82 LOC)
  • " *.java" is biggest, containing 84.58% of LOC.
  • " *.js" is smallest, containing 0.58% of LOC.


*.java11972 LOC (84%) 147 files
*.xml802 LOC (5%) 2 files
*.ps1541 LOC (3%) 9 files
*.yaml379 LOC (2%) 8 files
*.py295 LOC (2%) 2 files
*.ts83 LOC (<1%) 1 file
*.js82 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/test[.].*".
  • 4286 files match defined criteria (350,808 LOC, 2478.5% vs. main code):
    • 4,256 *.java files (343,999 LOC)
    • 3 *.yaml files (3,099 LOC)
    • 16 *.xml files (2,514 LOC)
    • 2 *.html files (561 LOC)
    • 4 *.ps1 files (314 LOC)
    • 3 *.py files (284 LOC)
    • 1 *.ts files (20 LOC)
    • 1 *.sh files (17 LOC)
  • " *.java" is biggest, containing 98.06% of LOC.
  • " *.sh" is smallest, containing 0% of LOC.


*.java343999 LOC (98%) 4,256 files
*.yaml3099 LOC (<1%) 3 files
*.xml2514 LOC (<1%) 16 files
*.html561 LOC (<1%) 2 files
*.ps1314 LOC (<1%) 4 files
*.py284 LOC (<1%) 3 files
*.ts20 LOC (<1%) 1 file
*.sh17 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/generated/.*".
  • 226 files match defined criteria (17,486 LOC, 123.5% vs. main code):
    • 2 *.json files (10,056 LOC)
    • 222 *.java files (7,416 LOC)
    • 1 *.xml files (12 LOC)
    • 1 *.properties files (2 LOC)
  • " *.json" is biggest, containing 57.51% of LOC.
  • " *.properties" is smallest, containing 0.01% of LOC.


*.json10056 LOC (57%) 2 files
*.java7416 LOC (42%) 222 files
*.xml12 LOC (<1%) 1 file
*.properties2 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 ".*/package[-]lock[.]json".
    • 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 ".*/[.]gitmodules".
  • 12 files match defined criteria (1,039 LOC, 7.3% vs. main code). All matches are in *.xml files.


*.xml1039 LOC (100%) 12 files
Other Code
properties
txt
diff
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]diff".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 324 files match defined criteria (22,636 LOC, 159.9% vs. main code):
    • 57 *.json files (15,792 LOC)
    • 84 *.java files (3,681 LOC)
    • 27 *.md files (2,014 LOC)
    • 6 *.xml files (703 LOC)
    • 146 *.properties files (338 LOC)
    • 3 *.txt files (64 LOC)
    • 1 *.diff files (44 LOC)
  • " *.json" is biggest, containing 69.76% of LOC.
  • " *.diff" is smallest, containing 0.19% of LOC.


*.json15792 LOC (69%) 57 files
*.java3681 LOC (16%) 84 files
*.md2014 LOC (8%) 27 files
*.xml703 LOC (3%) 6 files
*.properties338 LOC (1%) 146 files
*.txt64 LOC (<1%) 3 files
*.diff44 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-06 21:24