uber / okbuck
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
properties
txt
watchmanconfig
xsl
pro
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.

main20108 LOC (89%) 302 files
test532 LOC (2%) 31 files
generated0 LOC (0%) 0 files
build and deployment1347 LOC (5%) 42 files
other583 LOC (2%) 30 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 302 files match defined criteria (20,108 LOC, 100.0% vs. main code):
    • 241 *.java files (19,427 LOC)
    • 41 *.xml files (431 LOC)
    • 13 *.kt files (143 LOC)
    • 4 *.bzl files (54 LOC)
    • 1 *.xsl files (40 LOC)
    • 1 *.scala files (7 LOC)
    • 1 *.groovy files (6 LOC)
  • " *.java" is biggest, containing 96.61% of LOC.
  • " *.groovy" is smallest, containing 0.03% of LOC.


*.java19427 LOC (96%) 241 files
*.xml431 LOC (2%) 41 files
*.kt143 LOC (<1%) 13 files
*.bzl54 LOC (<1%) 4 files
*.xsl40 LOC (<1%) 1 file
*.scala7 LOC (<1%) 1 file
*.groovy6 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 ".*/src/androidTest/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 31 files match defined criteria (532 LOC, 2.6% vs. main code):
    • 12 *.java files (260 LOC)
    • 11 *.kt files (169 LOC)
    • 5 *.xml files (57 LOC)
    • 1 *.sh files (23 LOC)
    • 1 *.groovy files (13 LOC)
    • 1 *.scala files (10 LOC)
  • " *.java" is biggest, containing 48.87% of LOC.
  • " *.scala" is smallest, containing 1.88% of LOC.


*.java260 LOC (48%) 12 files
*.kt169 LOC (31%) 11 files
*.xml57 LOC (10%) 5 files
*.sh23 LOC (4%) 1 file
*.groovy13 LOC (2%) 1 file
*.scala10 LOC (1%) 1 file
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 ".*[.]gradle".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 42 files match defined criteria (1,347 LOC, 6.7% vs. main code):
    • 26 *.gradle files (1,103 LOC)
    • 11 *.xml files (124 LOC)
    • 1 *.bat files (68 LOC)
    • 4 *.sh files (52 LOC)
  • " *.gradle" is biggest, containing 81.89% of LOC.
  • " *.sh" is smallest, containing 3.86% of LOC.


*.gradle1103 LOC (81%) 26 files
*.xml124 LOC (9%) 11 files
*.bat68 LOC (5%) 1 file
*.sh52 LOC (3%) 4 files
Other Code
properties
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
  • 30 files match defined criteria (583 LOC, 2.9% vs. main code):
    • 9 *.md files (364 LOC)
    • 10 *.kt files (131 LOC)
    • 5 *.properties files (41 LOC)
    • 3 *.java files (28 LOC)
    • 2 *.xml files (18 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 62.44% of LOC.
  • " *.txt" is smallest, containing 0.17% of LOC.


*.md364 LOC (62%) 9 files
*.kt131 LOC (22%) 10 files
*.properties41 LOC (7%) 5 files
*.java28 LOC (4%) 3 files
*.xml18 LOC (3%) 2 files
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 07:36