elastic / apm-agent-android
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
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.

main8701 LOC (68%) 246 files
test3332 LOC (26%) 36 files
generated0 LOC (0%) 0 files
build and deployment314 LOC (2%) 13 files
other309 LOC (2%) 22 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 ".*".
  • 246 files match defined criteria (8,701 LOC, 100.0% vs. main code):
    • 129 *.kt files (4,991 LOC)
    • 59 *.java files (2,307 LOC)
    • 32 *.kts files (771 LOC)
    • 20 *.xml files (457 LOC)
    • 2 *.toml files (74 LOC)
    • 1 *.yaml files (61 LOC)
    • 3 *.pro files (40 LOC)
  • " *.kt" is biggest, containing 57.36% of LOC.
  • " *.pro" is smallest, containing 0.46% of LOC.


*.kt4991 LOC (57%) 129 files
*.java2307 LOC (26%) 59 files
*.kts771 LOC (8%) 32 files
*.xml457 LOC (5%) 20 files
*.toml74 LOC (<1%) 2 files
*.yaml61 LOC (<1%) 1 file
*.pro40 LOC (<1%) 3 files
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 ".*_tests[.].*".
    • files with paths like ".*/src/androidTest/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 36 files match defined criteria (3,332 LOC, 38.3% vs. main code):
    • 30 *.kt files (3,238 LOC)
    • 3 *.kts files (74 LOC)
    • 1 *.java files (16 LOC)
    • 1 *.sh files (2 LOC)
    • 1 *.xml files (2 LOC)
  • " *.kt" is biggest, containing 97.18% of LOC.
  • " *.xml" is smallest, containing 0.06% of LOC.


*.kt3238 LOC (97%) 30 files
*.kts74 LOC (2%) 3 files
*.java16 LOC (<1%) 1 file
*.sh2 LOC (<1%) 1 file
*.xml2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/AndroidManifest[.]xml".
  • 13 files match defined criteria (314 LOC, 3.6% vs. main code):
    • 3 *.bat files (219 LOC)
    • 8 *.xml files (68 LOC)
    • 2 *.sh files (27 LOC)
  • " *.bat" is biggest, containing 69.75% of LOC.
  • " *.sh" is smallest, containing 8.6% of LOC.


*.bat219 LOC (69%) 3 files
*.xml68 LOC (21%) 8 files
*.sh27 LOC (8%) 2 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 ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
  • 22 files match defined criteria (309 LOC, 3.6% vs. main code):
    • 4 *.md files (251 LOC)
    • 13 *.properties files (30 LOC)
    • 4 *.txt files (14 LOC)
    • 1 *.json files (14 LOC)
  • " *.md" is biggest, containing 81.23% of LOC.
  • " *.json" is smallest, containing 4.53% of LOC.


*.md251 LOC (81%) 4 files
*.properties30 LOC (9%) 13 files
*.txt14 LOC (4%) 4 files
*.json14 LOC (4%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 19:59