aws / aws-xray-sdk-java
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
txt
properties
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.

main13266 LOC (41%) 183 files
test7121 LOC (22%) 62 files
generated0 LOC (0%) 0 files
build and deployment78 LOC (<1%) 1 file
other11398 LOC (35%) 39 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 183 files match defined criteria (13,266 LOC, 100.0% vs. main code):
    • 159 *.java files (12,468 LOC)
    • 21 *.kts files (713 LOC)
    • 3 *.xml files (85 LOC)
  • " *.java" is biggest, containing 93.98% of LOC.
  • " *.xml" is smallest, containing 0.64% of LOC.


*.java12468 LOC (93%) 159 files
*.kts713 LOC (5%) 21 files
*.xml85 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 ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
  • 62 files match defined criteria (7,121 LOC, 53.7% vs. main code):
    • 61 *.java files (7,106 LOC)
    • 1 *.kts files (15 LOC)
  • " *.java" is biggest, containing 99.79% of LOC.
  • " *.kts" is smallest, containing 0.21% of LOC.


*.java7106 LOC (99%) 61 files
*.kts15 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 1 file matches defined criteria (78 LOC, 0.6% vs. main code). All matches are in *.bat files.


*.bat78 LOC (100%) 1 file
Other Code
txt
properties
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 ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
  • 39 files match defined criteria (11,398 LOC, 85.9% vs. main code):
    • 15 *.txt files (4,783 LOC)
    • 5 *.md files (3,825 LOC)
    • 16 *.json files (2,565 LOC)
    • 2 *.xml files (224 LOC)
    • 1 *.properties files (1 LOC)
  • " *.txt" is biggest, containing 41.96% of LOC.
  • " *.properties" is smallest, containing 0.01% of LOC.


*.txt4783 LOC (41%) 15 files
*.md3825 LOC (33%) 5 files
*.json2565 LOC (22%) 16 files
*.xml224 LOC (1%) 2 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 22:09