apache / incubator-baremaps
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
proto
properties
geojson
cmd
prettierignore
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.

main30072 LOC (67%) 476 files
test4830 LOC (10%) 99 files
generated1722 LOC (3%) 1 file
build and deployment1420 LOC (3%) 8 files
other6712 LOC (14%) 117 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 476 files match defined criteria (30,072 LOC, 100.0% vs. main code):
    • 302 *.java files (16,568 LOC)
    • 96 *.js files (6,784 LOC)
    • 1 *.yaml files (2,726 LOC)
    • 51 *.sql files (1,554 LOC)
    • 7 *.html files (744 LOC)
    • 3 *.proto files (603 LOC)
    • 9 *.ts files (564 LOC)
    • 4 *.xml files (442 LOC)
    • 1 *.py files (51 LOC)
    • 2 *.css files (36 LOC)
  • " *.java" is biggest, containing 55.09% of LOC.
  • " *.css" is smallest, containing 0.12% of LOC.


*.java16568 LOC (55%) 302 files
*.js6784 LOC (22%) 96 files
*.yaml2726 LOC (9%) 1 file
*.sql1554 LOC (5%) 51 files
*.html744 LOC (2%) 7 files
*.proto603 LOC (2%) 3 files
*.ts564 LOC (1%) 9 files
*.xml442 LOC (1%) 4 files
*.py51 LOC (<1%) 1 file
*.css36 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
geojson
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 99 files match defined criteria (4,830 LOC, 16.1% vs. main code):
    • 86 *.java files (4,440 LOC)
    • 2 *.xml files (292 LOC)
    • 9 *.sql files (72 LOC)
    • 1 *.geojson files (25 LOC)
    • 1 *.yaml files (1 LOC)
  • " *.java" is biggest, containing 91.93% of LOC.
  • " *.yaml" is smallest, containing 0.02% of LOC.


*.java4440 LOC (91%) 86 files
*.xml292 LOC (6%) 2 files
*.sql72 LOC (1%) 9 files
*.geojson25 LOC (<1%) 1 file
*.yaml1 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (1,722 LOC, 5.7% vs. main code). All matches are in *.json files.


*.json1722 LOC (100%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]sh".
  • 8 files match defined criteria (1,420 LOC, 4.7% vs. main code):
    • 7 *.xml files (1,405 LOC)
    • 1 *.sh files (15 LOC)
  • " *.xml" is biggest, containing 98.94% of LOC.
  • " *.sh" is smallest, containing 1.06% of LOC.


*.xml1405 LOC (98%) 7 files
*.sh15 LOC (1%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
  • 117 files match defined criteria (6,712 LOC, 22.3% vs. main code):
    • 51 *.json files (5,468 LOC)
    • 12 *.md files (517 LOC)
    • 43 *.txt files (416 LOC)
    • 5 *.sql files (176 LOC)
    • 3 *.js files (114 LOC)
    • 1 *.yaml files (19 LOC)
    • 1 *.svg files (1 LOC)
    • 1 *.properties files (1 LOC)
  • " *.json" is biggest, containing 81.47% of LOC.
  • " *.properties" is smallest, containing 0.01% of LOC.


*.json5468 LOC (81%) 51 files
*.md517 LOC (7%) 12 files
*.txt416 LOC (6%) 43 files
*.sql176 LOC (2%) 5 files
*.js114 LOC (1%) 3 files
*.yaml19 LOC (<1%) 1 file
*.svg1 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:01