apache / servicecomb-pack
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
feature
properties
proto
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.

main20778 LOC (43%) 425 files
test17141 LOC (36%) 190 files
generated0 LOC (0%) 0 files
build and deployment3605 LOC (7%) 42 files
other6070 LOC (12%) 168 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 ".*".
  • 425 files match defined criteria (20,778 LOC, 100.0% vs. main code):
    • 308 *.java files (14,209 LOC)
    • 52 *.ts files (2,379 LOC)
    • 24 *.html files (1,186 LOC)
    • 6 *.js files (1,127 LOC)
    • 18 *.scss files (1,043 LOC)
    • 5 *.yaml files (276 LOC)
    • 2 *.sql files (195 LOC)
    • 3 *.proto files (171 LOC)
    • 4 *.xml files (117 LOC)
    • 3 *.css files (75 LOC)
  • " *.java" is biggest, containing 68.38% of LOC.
  • " *.css" is smallest, containing 0.36% of LOC.


*.java14209 LOC (68%) 308 files
*.ts2379 LOC (11%) 52 files
*.html1186 LOC (5%) 24 files
*.js1127 LOC (5%) 6 files
*.scss1043 LOC (5%) 18 files
*.yaml276 LOC (1%) 5 files
*.sql195 LOC (<1%) 2 files
*.proto171 LOC (<1%) 3 files
*.xml117 LOC (<1%) 4 files
*.css75 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 190 files match defined criteria (17,141 LOC, 82.5% vs. main code):
    • 123 *.java files (11,919 LOC)
    • 30 *.xml files (3,644 LOC)
    • 32 *.feature files (1,301 LOC)
    • 3 *.yaml files (185 LOC)
    • 2 *.sql files (92 LOC)
  • " *.java" is biggest, containing 69.54% of LOC.
  • " *.sql" is smallest, containing 0.54% of LOC.


*.java11919 LOC (69%) 123 files
*.xml3644 LOC (21%) 30 files
*.feature1301 LOC (7%) 32 files
*.yaml185 LOC (1%) 3 files
*.sql92 LOC (<1%) 2 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 ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly[.]xml".
  • 42 files match defined criteria (3,605 LOC, 17.4% vs. main code):
    • 41 *.xml files (3,586 LOC)
    • 1 *.sh files (19 LOC)
  • " *.xml" is biggest, containing 99.47% of LOC.
  • " *.sh" is smallest, containing 0.53% of LOC.


*.xml3586 LOC (99%) 41 files
*.sh19 LOC (<1%) 1 file
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
  • 168 files match defined criteria (6,070 LOC, 29.2% vs. main code):
    • 57 *.java files (1,903 LOC)
    • 38 *.yaml files (1,472 LOC)
    • 37 *.xml files (1,341 LOC)
    • 14 *.md files (739 LOC)
    • 4 *.json files (216 LOC)
    • 4 *.sh files (182 LOC)
    • 2 *.html files (95 LOC)
    • 7 *.sql files (65 LOC)
    • 3 *.properties files (55 LOC)
    • 2 *.svg files (2 LOC)
  • " *.java" is biggest, containing 31.35% of LOC.
  • " *.svg" is smallest, containing 0.03% of LOC.


*.java1903 LOC (31%) 57 files
*.yaml1472 LOC (24%) 38 files
*.xml1341 LOC (22%) 37 files
*.md739 LOC (12%) 14 files
*.json216 LOC (3%) 4 files
*.sh182 LOC (2%) 4 files
*.html95 LOC (1%) 2 files
*.sql65 LOC (1%) 7 files
*.properties55 LOC (<1%) 3 files
*.svg2 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:38