GoogleCloudPlatform / appengine-java-standard
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
proto
properties
xsd
cfg
txt
cmd
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.

main141508 LOC (63%) 1,507 files
test69336 LOC (31%) 372 files
generated0 LOC (0%) 0 files
build and deployment10142 LOC (4%) 109 files
other2125 LOC (<1%) 37 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1507 files match defined criteria (141,508 LOC, 100.0% vs. main code):
    • 1,147 *.java files (122,237 LOC)
    • 50 *.proto files (8,621 LOC)
    • 174 *.xml files (4,971 LOC)
    • 70 *.jsp files (2,910 LOC)
    • 18 *.css files (1,056 LOC)
    • 3 *.g files (1,008 LOC)
    • 6 *.js files (332 LOC)
    • 22 *.html files (102 LOC)
    • 4 *.cfg files (72 LOC)
    • 2 *.bzl files (71 LOC)
    • 10 *.yaml files (69 LOC)
    • 1 *.ftl files (59 LOC)
  • " *.java" is biggest, containing 86.38% of LOC.
  • " *.ftl" is smallest, containing 0.04% of LOC.


*.java122237 LOC (86%) 1,147 files
*.proto8621 LOC (6%) 50 files
*.xml4971 LOC (3%) 174 files
*.jsp2910 LOC (2%) 70 files
*.css1056 LOC (<1%) 18 files
*.g1008 LOC (<1%) 3 files
*.js332 LOC (<1%) 6 files
*.html102 LOC (<1%) 22 files
*.cfg72 LOC (<1%) 4 files
*.bzl71 LOC (<1%) 2 files
*.yaml69 LOC (<1%) 10 files
*.ftl59 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 ".*/test[.].*".
    • files with paths like ".*/testing[.].*".
  • 372 files match defined criteria (69,336 LOC, 49.0% vs. main code):
    • 357 *.java files (69,021 LOC)
    • 7 *.xml files (277 LOC)
    • 6 *.yaml files (23 LOC)
    • 1 *.jsp files (14 LOC)
    • 1 *.html files (1 LOC)
  • " *.java" is biggest, containing 99.55% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java69021 LOC (99%) 357 files
*.xml277 LOC (<1%) 7 files
*.yaml23 LOC (<1%) 6 files
*.jsp14 LOC (<1%) 1 file
*.html1 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 109 files match defined criteria (10,142 LOC, 7.2% vs. main code):
    • 105 *.xml files (9,957 LOC)
    • 4 *.sh files (185 LOC)
  • " *.xml" is biggest, containing 98.18% of LOC.
  • " *.sh" is smallest, containing 1.82% of LOC.


*.xml9957 LOC (98%) 105 files
*.sh185 LOC (1%) 4 files
Other Code
xsd
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 ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]json".
  • 37 files match defined criteria (2,125 LOC, 1.5% vs. main code):
    • 9 *.md files (890 LOC)
    • 8 *.xsd files (586 LOC)
    • 13 *.properties files (334 LOC)
    • 2 *.txt files (240 LOC)
    • 4 *.java files (39 LOC)
    • 1 *.json files (36 LOC)
  • " *.md" is biggest, containing 41.88% of LOC.
  • " *.json" is smallest, containing 1.69% of LOC.


*.md890 LOC (41%) 9 files
*.xsd586 LOC (27%) 8 files
*.properties334 LOC (15%) 13 files
*.txt240 LOC (11%) 2 files
*.java39 LOC (1%) 4 files
*.json36 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:44