guardian / source-apps
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
pro
properties
txt
plist
editorconfig
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.

main20603 LOC (73%) 280 files
test384 LOC (1%) 12 files
generated0 LOC (0%) 0 files
build and deployment100 LOC (<1%) 3 files
other6998 LOC (24%) 445 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 280 files match defined criteria (20,603 LOC, 100.0% vs. main code):
    • 232 *.kt files (18,205 LOC)
    • 26 *.swift files (1,825 LOC)
    • 6 *.kts files (278 LOC)
    • 13 *.xml files (181 LOC)
    • 1 *.toml files (104 LOC)
    • 1 *.css files (9 LOC)
    • 1 *.pro files (1 LOC)
  • " *.kt" is biggest, containing 88.36% of LOC.
  • " *.pro" is smallest, containing 0% of LOC.


*.kt18205 LOC (88%) 232 files
*.swift1825 LOC (8%) 26 files
*.kts278 LOC (1%) 6 files
*.xml181 LOC (<1%) 13 files
*.toml104 LOC (<1%) 1 file
*.css9 LOC (<1%) 1 file
*.pro1 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/.*".
  • 12 files match defined criteria (384 LOC, 1.9% vs. main code). All matches are in *.kt files.


*.kt384 LOC (100%) 12 files
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 ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 3 files match defined criteria (100 LOC, 0.5% vs. main code):
    • 1 *.bat files (73 LOC)
    • 2 *.xml files (27 LOC)
  • " *.bat" is biggest, containing 73% of LOC.
  • " *.xml" is smallest, containing 27% of LOC.


*.bat73 LOC (73%) 1 file
*.xml27 LOC (27%) 2 files
Other Code
txt
properties
plist
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 ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]plist".
  • 445 files match defined criteria (6,998 LOC, 34.0% vs. main code):
    • 277 *.json files (4,661 LOC)
    • 1 *.txt files (1,090 LOC)
    • 9 *.md files (698 LOC)
    • 155 *.svg files (510 LOC)
    • 2 *.properties files (31 LOC)
    • 1 *.plist files (8 LOC)
  • " *.json" is biggest, containing 66.6% of LOC.
  • " *.plist" is smallest, containing 0.11% of LOC.


*.json4661 LOC (66%) 277 files
*.txt1090 LOC (15%) 1 file
*.md698 LOC (9%) 9 files
*.svg510 LOC (7%) 155 files
*.properties31 LOC (<1%) 2 files
*.plist8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 20:59