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
osm
txt
properties
proto
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.

main50369 LOC (67%) 686 files
test8100 LOC (10%) 111 files
generated2859 LOC (3%) 8 files
build and deployment2131 LOC (2%) 26 files
other11141 LOC (14%) 226 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
osm
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 686 files match defined criteria (50,369 LOC, 100.0% vs. main code):
    • 391 *.java files (29,522 LOC)
    • 104 *.js files (6,609 LOC)
    • 32 *.sql files (6,390 LOC)
    • 130 *.osm files (4,498 LOC)
    • 7 *.html files (893 LOC)
    • 7 *.xml files (770 LOC)
    • 3 *.proto files (603 LOC)
    • 3 *.ftl files (576 LOC)
    • 8 *.ts files (457 LOC)
    • 1 *.py files (51 LOC)
  • " *.java" is biggest, containing 58.61% of LOC.
  • " *.py" is smallest, containing 0.1% of LOC.


*.java29522 LOC (58%) 391 files
*.js6609 LOC (13%) 104 files
*.sql6390 LOC (12%) 32 files
*.osm4498 LOC (8%) 130 files
*.html893 LOC (1%) 7 files
*.xml770 LOC (1%) 7 files
*.proto603 LOC (1%) 3 files
*.ftl576 LOC (1%) 3 files
*.ts457 LOC (<1%) 8 files
*.py51 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]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 111 files match defined criteria (8,100 LOC, 16.1% vs. main code):
    • 100 *.java files (7,841 LOC)
    • 10 *.sql files (147 LOC)
    • 1 *.ts files (112 LOC)
  • " *.java" is biggest, containing 96.8% of LOC.
  • " *.ts" is smallest, containing 1.38% of LOC.


*.java7841 LOC (96%) 100 files
*.sql147 LOC (1%) 10 files
*.ts112 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 ".*/generated/.*".
    • files with paths like ".*/package[-]lock[.]json".
  • 8 files match defined criteria (2,859 LOC, 5.7% vs. main code):
    • 1 *.json files (1,797 LOC)
    • 7 *.java files (1,062 LOC)
  • " *.json" is biggest, containing 62.85% of LOC.
  • " *.java" is smallest, containing 37.15% of LOC.


*.json1797 LOC (62%) 1 file
*.java1062 LOC (37%) 7 files
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 ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 26 files match defined criteria (2,131 LOC, 4.2% vs. main code):
    • 18 *.xml files (1,924 LOC)
    • 8 *.sh files (207 LOC)
  • " *.xml" is biggest, containing 90.29% of LOC.
  • " *.sh" is smallest, containing 9.71% of LOC.


*.xml1924 LOC (90%) 18 files
*.sh207 LOC (9%) 8 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]prettierignore".
  • 226 files match defined criteria (11,141 LOC, 22.1% vs. main code):
    • 182 *.json files (9,168 LOC)
    • 7 *.sql files (668 LOC)
    • 16 *.md files (635 LOC)
    • 3 *.properties files (349 LOC)
    • 4 *.js files (153 LOC)
    • 12 *.txt files (79 LOC)
    • 1 *.html files (70 LOC)
    • 1 *.yaml files (19 LOC)
  • " *.json" is biggest, containing 82.29% of LOC.
  • " *.yaml" is smallest, containing 0.17% of LOC.


*.json9168 LOC (82%) 182 files
*.sql668 LOC (5%) 7 files
*.md635 LOC (5%) 16 files
*.properties349 LOC (3%) 3 files
*.js153 LOC (1%) 4 files
*.txt79 LOC (<1%) 12 files
*.html70 LOC (<1%) 1 file
*.yaml19 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:47