aws / 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
txt
csproj
editorconfig
patch
properties
mod
gitattributes
props
eslintignore
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.

main179460 LOC (82%) 2,182 files
test6308 LOC (2%) 93 files
generated7874 LOC (3%) 3 files
build and deployment493 LOC (<1%) 23 files
other23239 LOC (10%) 140 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 ".*".
  • 2182 files match defined criteria (179,460 LOC, 100.0% vs. main code):
    • 1,908 *.kt files (166,248 LOC)
    • 39 *.ts files (5,625 LOC)
    • 48 *.kts files (2,196 LOC)
    • 79 *.cs files (1,781 LOC)
    • 82 *.xml files (1,682 LOC)
    • 10 *.vue files (1,135 LOC)
    • 4 *.java files (340 LOC)
    • 1 *.toml files (127 LOC)
    • 4 *.yaml files (95 LOC)
    • 2 *.scss files (90 LOC)
    • 2 *.css files (86 LOC)
    • 1 *.js files (44 LOC)
    • 1 *.props files (10 LOC)
    • 1 *.ps1 files (1 LOC)
  • " *.kt" is biggest, containing 92.64% of LOC.
  • " *.ps1" is smallest, containing 0% of LOC.


*.kt166248 LOC (92%) 1,908 files
*.ts5625 LOC (3%) 39 files
*.kts2196 LOC (1%) 48 files
*.cs1781 LOC (<1%) 79 files
*.xml1682 LOC (<1%) 82 files
*.vue1135 LOC (<1%) 10 files
*.java340 LOC (<1%) 4 files
*.toml127 LOC (<1%) 1 file
*.yaml95 LOC (<1%) 4 files
*.scss90 LOC (<1%) 2 files
*.css86 LOC (<1%) 2 files
*.js44 LOC (<1%) 1 file
*.props10 LOC (<1%) 1 file
*.ps11 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/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[-]tests[-].*".
  • 93 files match defined criteria (6,308 LOC, 3.5% vs. main code):
    • 68 *.kt files (5,868 LOC)
    • 10 *.java files (140 LOC)
    • 2 *.kts files (135 LOC)
    • 10 *.xml files (126 LOC)
    • 2 *.gradle files (38 LOC)
    • 1 *.js files (1 LOC)
  • " *.kt" is biggest, containing 93.02% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.kt5868 LOC (93%) 68 files
*.java140 LOC (2%) 10 files
*.kts135 LOC (2%) 2 files
*.xml126 LOC (1%) 10 files
*.gradle38 LOC (<1%) 2 files
*.js1 LOC (<1%) 1 file
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".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 3 files match defined criteria (7,874 LOC, 4.4% vs. main code):
    • 2 *.json files (7,663 LOC)
    • 1 *.cs files (211 LOC)
  • " *.json" is biggest, containing 97.32% of LOC.
  • " *.cs" is smallest, containing 2.68% of LOC.


*.json7663 LOC (97%) 2 files
*.cs211 LOC (2%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]gradle".
  • 23 files match defined criteria (493 LOC, 0.3% vs. main code):
    • 2 *.js files (169 LOC)
    • 10 *.csproj files (132 LOC)
    • 7 *.sh files (87 LOC)
    • 2 *.bat files (75 LOC)
    • 2 *.xml files (30 LOC)
  • " *.js" is biggest, containing 34.28% of LOC.
  • " *.xml" is smallest, containing 6.09% of LOC.


*.js169 LOC (34%) 2 files
*.csproj132 LOC (26%) 10 files
*.sh87 LOC (17%) 7 files
*.bat75 LOC (15%) 2 files
*.xml30 LOC (6%) 2 files
Other Code
patch
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]svg".
  • 140 files match defined criteria (23,239 LOC, 12.9% vs. main code):
    • 31 *.json files (18,899 LOC)
    • 15 *.md files (2,193 LOC)
    • 5 *.patch files (1,031 LOC)
    • 80 *.svg files (805 LOC)
    • 6 *.txt files (265 LOC)
    • 3 *.properties files (46 LOC)
  • " *.json" is biggest, containing 81.32% of LOC.
  • " *.properties" is smallest, containing 0.2% of LOC.


*.json18899 LOC (81%) 31 files
*.md2193 LOC (9%) 15 files
*.patch1031 LOC (4%) 5 files
*.svg805 LOC (3%) 80 files
*.txt265 LOC (1%) 6 files
*.properties46 LOC (<1%) 3 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)
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • 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
  • *.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)
  • *.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)
  • *.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
  • *.vue 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
  • *.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
  • *.scss files are analyzed with ScssAnalyzer:
    • 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
  • *.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
  • *.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
  • *.ps1 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


2025-05-03 23:07