JetBrains / azure-tools-for-intellij
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
feature
txt
csproj
cmd
gitattributes
xsl
props
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.

main219158 LOC (85%) 3,069 files
test4707 LOC (1%) 92 files
generated655 LOC (<1%) 4 files
build and deployment4104 LOC (1%) 65 files
other28084 LOC (10%) 1,023 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
cmd
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3069 files match defined criteria (219,158 LOC, 100.0% vs. main code):
    • 2,265 *.java files (173,543 LOC)
    • 450 *.kt files (23,737 LOC)
    • 34 *.js files (6,122 LOC)
    • 133 *.xml files (5,421 LOC)
    • 19 *.css files (3,178 LOC)
    • 79 *.cs files (3,118 LOC)
    • 58 *.kts files (2,377 LOC)
    • 20 *.scala files (610 LOC)
    • 6 *.html files (540 LOC)
    • 1 *.xsl files (214 LOC)
    • 1 *.cmd files (178 LOC)
    • 2 *.toml files (97 LOC)
    • 1 *.props files (23 LOC)
  • " *.java" is biggest, containing 79.19% of LOC.
  • " *.props" is smallest, containing 0.01% of LOC.


*.java173543 LOC (79%) 2,265 files
*.kt23737 LOC (10%) 450 files
*.js6122 LOC (2%) 34 files
*.xml5421 LOC (2%) 133 files
*.css3178 LOC (1%) 19 files
*.cs3118 LOC (1%) 79 files
*.kts2377 LOC (1%) 58 files
*.scala610 LOC (<1%) 20 files
*.html540 LOC (<1%) 6 files
*.xsl214 LOC (<1%) 1 file
*.cmd178 LOC (<1%) 1 file
*.toml97 LOC (<1%) 2 files
*.props23 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/test[.].*".
  • 92 files match defined criteria (4,707 LOC, 2.1% vs. main code):
    • 35 *.java files (2,377 LOC)
    • 36 *.kt files (1,570 LOC)
    • 16 *.feature files (513 LOC)
    • 2 *.html files (194 LOC)
    • 3 *.scala files (53 LOC)
  • " *.java" is biggest, containing 50.5% of LOC.
  • " *.scala" is smallest, containing 1.13% of LOC.


*.java2377 LOC (50%) 35 files
*.kt1570 LOC (33%) 36 files
*.feature513 LOC (10%) 16 files
*.html194 LOC (4%) 2 files
*.scala53 LOC (1%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 4 files match defined criteria (655 LOC, 0.3% vs. main code). All matches are in *.cs files.


*.cs655 LOC (100%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/package[.]json".
  • 65 files match defined criteria (4,104 LOC, 1.9% vs. main code):
    • 52 *.xml files (3,431 LOC)
    • 6 *.bat files (330 LOC)
    • 3 *.gradle files (278 LOC)
    • 4 *.csproj files (65 LOC)
  • " *.xml" is biggest, containing 83.6% of LOC.
  • " *.csproj" is smallest, containing 1.58% of LOC.


*.xml3431 LOC (83%) 52 files
*.bat330 LOC (8%) 6 files
*.gradle278 LOC (6%) 3 files
*.csproj65 LOC (1%) 4 files
Other Code
txt
properties
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 ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/[Ss]amples/.*".
  • 1023 files match defined criteria (28,084 LOC, 12.8% vs. main code):
    • 5 *.txt files (7,401 LOC)
    • 822 *.svg files (5,995 LOC)
    • 89 *.md files (5,852 LOC)
    • 58 *.properties files (4,963 LOC)
    • 38 *.json files (2,649 LOC)
    • 4 *.xml files (627 LOC)
    • 7 *.java files (597 LOC)
  • " *.txt" is biggest, containing 26.35% of LOC.
  • " *.java" is smallest, containing 2.13% of LOC.


*.txt7401 LOC (26%) 5 files
*.svg5995 LOC (21%) 822 files
*.md5852 LOC (20%) 89 files
*.properties4963 LOC (17%) 58 files
*.json2649 LOC (9%) 38 files
*.xml627 LOC (2%) 4 files
*.java597 LOC (2%) 7 files
Analyzers
Info about analyzers used for source code examinations.
  • *.java files are analyzed with JavaAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on package names)
  • *.kt files are analyzed with KotlinAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis (based on imports and package statements)
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.xml files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.css files are analyzed with CssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cs files are analyzed with CSharpAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis (based on namespace heuristics)
  • *.kts files are analyzed with KotlinAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis (based on imports and package statements)
  • *.scala files are analyzed with ScalaAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.xsl files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.cmd files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.toml files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.props files are analyzed with XmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2026-01-18 16:59