openai / snap-o
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
mjs
properties
plist
npmrc
prettierignore
  • 22 extensions are included in analyses: swift, xml, kt, ts, tsx, kts, md, gitignore, json, yaml, toml, pro, mjs, properties, css, plist, bat, sh, html, npmrc, txt, prettierignore
  • 4 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/proguard[-]rules[.]pro" (ProGuard) (2 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (1 file).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
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.

main24169 LOC (68%) 163 files
test0 LOC (0%) 0 files
generated4301 LOC (12%) 1 file
build and deployment466 LOC (1%) 22 files
other6189 LOC (17%) 52 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 163 files match defined criteria (24,169 LOC, 100.0% vs. main code):
    • 86 *.swift files (14,192 LOC)
    • 23 *.kt files (4,121 LOC)
    • 22 *.ts files (2,994 LOC)
    • 15 *.tsx files (1,510 LOC)
    • 1 *.css files (1,045 LOC)
    • 9 *.kts files (174 LOC)
    • 3 *.toml files (80 LOC)
    • 2 *.mjs files (37 LOC)
    • 1 *.html files (12 LOC)
    • 1 *.yaml files (4 LOC)
  • " *.swift" is biggest, containing 58.72% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.swift14192 LOC (58%) 86 files
*.kt4121 LOC (17%) 23 files
*.ts2994 LOC (12%) 22 files
*.tsx1510 LOC (6%) 15 files
*.css1045 LOC (4%) 1 file
*.kts174 LOC (<1%) 9 files
*.toml80 LOC (<1%) 3 files
*.mjs37 LOC (<1%) 2 files
*.html12 LOC (<1%) 1 file
*.yaml4 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".
  • 1 file matches defined criteria (4,301 LOC, 17.8% vs. main code). All matches are in *.json files.


*.json4301 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
prettierignore
npmrc
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 ".*[.]sh".
    • files with paths like "(.*/)?[.]prettierrc([.].*)?".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like "(.*/)?[.]prettierignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 22 files match defined criteria (466 LOC, 1.9% vs. main code):
    • 10 *.xml files (280 LOC)
    • 8 *.gitignore files (100 LOC)
    • 1 *.bat files (68 LOC)
    • 1 *.sh files (15 LOC)
    • 1 *.prettierignore files (2 LOC)
    • 1 *.npmrc files (1 LOC)
  • " *.xml" is biggest, containing 60.09% of LOC.
  • " *.npmrc" is smallest, containing 0.21% of LOC.


*.xml280 LOC (60%) 10 files
*.gitignore100 LOC (21%) 8 files
*.bat68 LOC (14%) 1 file
*.sh15 LOC (3%) 1 file
*.prettierignore2 LOC (<1%) 1 file
*.npmrc1 LOC (<1%) 1 file
Other Code
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 ".*[.]json".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 52 files match defined criteria (6,189 LOC, 25.6% vs. main code):
    • 8 *.json files (4,478 LOC)
    • 4 *.kt files (706 LOC)
    • 21 *.xml files (532 LOC)
    • 11 *.md files (310 LOC)
    • 4 *.kts files (111 LOC)
    • 1 *.properties files (29 LOC)
    • 1 *.plist files (21 LOC)
    • 2 *.gitignore files (2 LOC)
  • " *.json" is biggest, containing 72.35% of LOC.
  • " *.gitignore" is smallest, containing 0.03% of LOC.


*.json4478 LOC (72%) 8 files
*.kt706 LOC (11%) 4 files
*.xml532 LOC (8%) 21 files
*.md310 LOC (5%) 11 files
*.kts111 LOC (1%) 4 files
*.properties29 LOC (<1%) 1 file
*.plist21 LOC (<1%) 1 file
*.gitignore2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.swift files are analyzed with SwiftAnalyzer:
    • 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
  • *.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
  • *.tsx 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
  • *.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
  • *.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)
  • *.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
  • *.mjs 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
  • *.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
  • *.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


2026-06-24 10:39