alibaba / GaiaX
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
plist
txt
properties
pro
mdx
podspec
texi
storyboard
patch
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.

main110665 LOC (57%) 1,204 files
test28153 LOC (14%) 663 files
generated32801 LOC (17%) 586 files
build and deployment2076 LOC (1%) 50 files
other18644 LOC (9%) 835 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 ".*".
  • 1204 files match defined criteria (110,665 LOC, 100.0% vs. main code):
    • 18 *.c files (27,864 LOC)
    • 207 *.kt files (19,043 LOC)
    • 139 *.m files (15,042 LOC)
    • 135 *.java files (10,281 LOC)
    • 198 *.h files (9,912 LOC)
    • 14 *.cpp files (7,745 LOC)
    • 18 *.rs files (4,819 LOC)
    • 263 *.css files (4,332 LOC)
    • 10 *.js files (3,991 LOC)
    • 39 *.tsx files (2,682 LOC)
    • 50 *.json5 files (1,295 LOC)
    • 9 *.mm files (1,119 LOC)
    • 25 *.ts files (979 LOC)
    • 42 *.xml files (844 LOC)
    • 10 *.swift files (455 LOC)
    • 9 *.toml files (145 LOC)
    • 2 *.hpp files (34 LOC)
    • 10 *.scss files (32 LOC)
    • 5 *.pro files (32 LOC)
    • 1 *.html files (19 LOC)
  • " *.c" is biggest, containing 25.18% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.c27864 LOC (25%) 18 files
*.kt19043 LOC (17%) 207 files
*.m15042 LOC (13%) 139 files
*.java10281 LOC (9%) 135 files
*.h9912 LOC (8%) 198 files
*.cpp7745 LOC (6%) 14 files
*.rs4819 LOC (4%) 18 files
*.css4332 LOC (3%) 263 files
*.js3991 LOC (3%) 10 files
*.tsx2682 LOC (2%) 39 files
*.json51295 LOC (1%) 50 files
*.mm1119 LOC (1%) 9 files
*.ts979 LOC (<1%) 25 files
*.xml844 LOC (<1%) 42 files
*.swift455 LOC (<1%) 10 files
*.toml145 LOC (<1%) 9 files
*.hpp34 LOC (<1%) 2 files
*.scss32 LOC (<1%) 10 files
*.pro32 LOC (<1%) 5 files
*.html19 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 ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/src/androidTest/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 663 files match defined criteria (28,153 LOC, 25.4% vs. main code):
    • 45 *.kt files (11,727 LOC)
    • 10 *.rs files (4,673 LOC)
    • 351 *.css files (4,176 LOC)
    • 238 *.html files (3,920 LOC)
    • 13 *.js files (3,471 LOC)
    • 1 *.swift files (76 LOC)
    • 1 *.c files (65 LOC)
    • 3 *.xml files (26 LOC)
    • 1 *.java files (19 LOC)
  • " *.kt" is biggest, containing 41.65% of LOC.
  • " *.java" is smallest, containing 0.07% of LOC.


*.kt11727 LOC (41%) 45 files
*.rs4673 LOC (16%) 10 files
*.css4176 LOC (14%) 351 files
*.html3920 LOC (13%) 238 files
*.js3471 LOC (12%) 13 files
*.swift76 LOC (<1%) 1 file
*.c65 LOC (<1%) 1 file
*.xml26 LOC (<1%) 3 files
*.java19 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
plist
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/Pods/.*".
    • files with paths like ".*/generated/.*".
  • 586 files match defined criteria (32,801 LOC, 29.6% vs. main code):
    • 478 *.rs files (24,687 LOC)
    • 71 *.swift files (4,728 LOC)
    • 2 *.md files (1,347 LOC)
    • 6 *.plist files (526 LOC)
    • 13 *.m files (492 LOC)
    • 13 *.h files (491 LOC)
    • 1 *.markdown files (361 LOC)
    • 1 *.sh files (126 LOC)
    • 1 *.json files (43 LOC)
  • " *.rs" is biggest, containing 75.26% of LOC.
  • " *.json" is smallest, containing 0.13% of LOC.


*.rs24687 LOC (75%) 478 files
*.swift4728 LOC (14%) 71 files
*.md1347 LOC (4%) 2 files
*.plist526 LOC (1%) 6 files
*.m492 LOC (1%) 13 files
*.h491 LOC (1%) 13 files
*.markdown361 LOC (1%) 1 file
*.sh126 LOC (<1%) 1 file
*.json43 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
  • 50 files match defined criteria (2,076 LOC, 1.9% vs. main code):
    • 14 *.gradle files (1,077 LOC)
    • 11 *.bat files (637 LOC)
    • 11 *.sh files (189 LOC)
    • 10 *.xml files (88 LOC)
    • 4 *.podspec files (85 LOC)
  • " *.gradle" is biggest, containing 51.88% of LOC.
  • " *.podspec" is smallest, containing 4.09% of LOC.


*.gradle1077 LOC (51%) 14 files
*.bat637 LOC (30%) 11 files
*.sh189 LOC (9%) 11 files
*.xml88 LOC (4%) 10 files
*.podspec85 LOC (4%) 4 files
Other Code
texi
plist
txt
storyboard
patch
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]texi".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]storyboard".
  • 835 files match defined criteria (18,644 LOC, 16.8% vs. main code):
    • 722 *.json files (10,616 LOC)
    • 23 *.kt files (2,580 LOC)
    • 19 *.md files (1,931 LOC)
    • 2 *.texi files (1,225 LOC)
    • 25 *.plist files (926 LOC)
    • 20 *.txt files (394 LOC)
    • 1 *.markdown files (361 LOC)
    • 8 *.js files (251 LOC)
    • 2 *.c files (146 LOC)
    • 2 *.storyboard files (74 LOC)
    • 1 *.patch files (68 LOC)
    • 9 *.properties files (52 LOC)
    • 1 *.rs files (20 LOC)
  • " *.json" is biggest, containing 56.94% of LOC.
  • " *.rs" is smallest, containing 0.11% of LOC.


*.json10616 LOC (56%) 722 files
*.kt2580 LOC (13%) 23 files
*.md1931 LOC (10%) 19 files
*.texi1225 LOC (6%) 2 files
*.plist926 LOC (4%) 25 files
*.txt394 LOC (2%) 20 files
*.markdown361 LOC (1%) 1 file
*.js251 LOC (1%) 8 files
*.c146 LOC (<1%) 2 files
*.storyboard74 LOC (<1%) 2 files
*.patch68 LOC (<1%) 1 file
*.properties52 LOC (<1%) 9 files
*.rs20 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:55