aws / aws-lambda-java-libs
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
clang-tidy
03
04
patch
mk
in
clang-format
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.

main14146 LOC (56%) 193 files
test5077 LOC (20%) 66 files
generated0 LOC (0%) 0 files
build and deployment1847 LOC (7%) 23 files
other4138 LOC (16%) 110 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 ".*".
  • 193 files match defined criteria (14,146 LOC, 100.0% vs. main code):
    • 187 *.java files (13,958 LOC)
    • 2 *.cpp files (133 LOC)
    • 3 *.h files (35 LOC)
    • 1 *.xml files (20 LOC)
  • " *.java" is biggest, containing 98.67% of LOC.
  • " *.xml" is smallest, containing 0.14% of LOC.


*.java13958 LOC (98%) 187 files
*.cpp133 LOC (<1%) 2 files
*.h35 LOC (<1%) 3 files
*.xml20 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 ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
  • 66 files match defined criteria (5,077 LOC, 35.9% vs. main code):
    • 57 *.java files (4,415 LOC)
    • 7 *.sh files (362 LOC)
    • 2 *.xml files (300 LOC)
  • " *.java" is biggest, containing 86.96% of LOC.
  • " *.xml" is smallest, containing 5.91% of LOC.


*.java4415 LOC (86%) 57 files
*.sh362 LOC (7%) 7 files
*.xml300 LOC (5%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]mk".
  • 23 files match defined criteria (1,847 LOC, 13.1% vs. main code):
    • 6 *.xml files (1,273 LOC)
    • 13 *.sh files (430 LOC)
    • 1 *.bat files (73 LOC)
    • 2 *.gradle files (50 LOC)
    • 1 *.mk files (21 LOC)
  • " *.xml" is biggest, containing 68.92% of LOC.
  • " *.mk" is smallest, containing 1.14% of LOC.


*.xml1273 LOC (68%) 6 files
*.sh430 LOC (23%) 13 files
*.bat73 LOC (3%) 1 file
*.gradle50 LOC (2%) 2 files
*.mk21 LOC (1%) 1 file
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Ss]amples/.*".
  • 110 files match defined criteria (4,138 LOC, 29.3% vs. main code):
    • 24 *.md files (1,415 LOC)
    • 50 *.json files (1,400 LOC)
    • 22 *.java files (647 LOC)
    • 8 *.xml files (486 LOC)
    • 5 *.yaml files (175 LOC)
    • 1 *.gradle files (15 LOC)
  • " *.md" is biggest, containing 34.2% of LOC.
  • " *.gradle" is smallest, containing 0.36% of LOC.


*.md1415 LOC (34%) 24 files
*.json1400 LOC (33%) 50 files
*.java647 LOC (15%) 22 files
*.xml486 LOC (11%) 8 files
*.yaml175 LOC (4%) 5 files
*.gradle15 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 21:59