JetBrains / aws-toolkit-jetbrains
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
csproj
txt
editorconfig
properties
mod
gitattributes
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.

main84282 LOC (90%) 1,200 files
test3035 LOC (3%) 41 files
generated211 LOC (<1%) 1 file
build and deployment201 LOC (<1%) 11 files
other5255 LOC (5%) 59 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
props
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1200 files match defined criteria (84,282 LOC, 100.0% vs. main code):
    • 1,065 *.kt files (79,931 LOC)
    • 78 *.cs files (1,770 LOC)
    • 20 *.kts files (1,037 LOC)
    • 27 *.xml files (819 LOC)
    • 5 *.java files (597 LOC)
    • 1 *.toml files (85 LOC)
    • 3 *.yaml files (33 LOC)
    • 1 *.props files (10 LOC)
  • " *.kt" is biggest, containing 94.84% of LOC.
  • " *.props" is smallest, containing 0.01% of LOC.


*.kt79931 LOC (94%) 1,065 files
*.cs1770 LOC (2%) 78 files
*.kts1037 LOC (1%) 20 files
*.xml819 LOC (<1%) 27 files
*.java597 LOC (<1%) 5 files
*.toml85 LOC (<1%) 1 file
*.yaml33 LOC (<1%) 3 files
*.props10 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 ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 41 files match defined criteria (3,035 LOC, 3.6% vs. main code):
    • 37 *.kt files (2,956 LOC)
    • 1 *.kts files (49 LOC)
    • 3 *.xml files (30 LOC)
  • " *.kt" is biggest, containing 97.4% of LOC.
  • " *.xml" is smallest, containing 0.99% of LOC.


*.kt2956 LOC (97%) 37 files
*.kts49 LOC (1%) 1 file
*.xml30 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 paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 1 file matches defined criteria (211 LOC, 0.3% vs. main code). All matches are in *.cs files.


*.cs211 LOC (100%) 1 file
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 ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/[.]gitattributes".
  • 11 files match defined criteria (201 LOC, 0.2% vs. main code):
    • 10 *.csproj files (133 LOC)
    • 1 *.bat files (68 LOC)
  • " *.csproj" is biggest, containing 66.17% of LOC.
  • " *.bat" is smallest, containing 33.83% of LOC.


*.csproj133 LOC (66%) 10 files
*.bat68 LOC (33%) 1 file
Other Code
properties
txt
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 ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 59 files match defined criteria (5,255 LOC, 6.2% vs. main code):
    • 11 *.json files (2,367 LOC)
    • 12 *.md files (1,186 LOC)
    • 2 *.properties files (1,180 LOC)
    • 5 *.txt files (264 LOC)
    • 29 *.svg files (258 LOC)
  • " *.json" is biggest, containing 45.04% of LOC.
  • " *.svg" is smallest, containing 4.91% of LOC.


*.json2367 LOC (45%) 11 files
*.md1186 LOC (22%) 12 files
*.properties1180 LOC (22%) 2 files
*.txt264 LOC (5%) 5 files
*.svg258 LOC (4%) 29 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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)
  • *.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)
  • *.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
  • *.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)
  • *.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
  • *.yaml files are analyzed with YamlAnalyzer:
    • 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
  • *.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 17:10