apache / servicecomb-samples
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
properties
txt
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.

main2475 LOC (8%) 106 files
test15675 LOC (53%) 273 files
generated0 LOC (0%) 0 files
build and deployment2842 LOC (9%) 83 files
other8556 LOC (28%) 285 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 ".*".
  • 106 files match defined criteria (2,475 LOC, 100.0% vs. main code):
    • 48 *.xml files (1,041 LOC)
    • 31 *.yaml files (690 LOC)
    • 11 *.yml files (242 LOC)
    • 5 *.html files (209 LOC)
    • 4 *.js files (154 LOC)
    • 2 *.css files (56 LOC)
    • 2 *.sql files (46 LOC)
    • 3 *.java files (37 LOC)
  • " *.xml" is biggest, containing 42.06% of LOC.
  • " *.java" is smallest, containing 1.49% of LOC.


*.xml1041 LOC (42%) 48 files
*.yaml690 LOC (27%) 31 files
*.yml242 LOC (9%) 11 files
*.html209 LOC (8%) 5 files
*.js154 LOC (6%) 4 files
*.css56 LOC (2%) 2 files
*.sql46 LOC (1%) 2 files
*.java37 LOC (1%) 3 files
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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]tests[-].*".
  • 273 files match defined criteria (15,675 LOC, 633.3% vs. main code):
    • 208 *.java files (12,760 LOC)
    • 32 *.xml files (1,500 LOC)
    • 31 *.yaml files (1,407 LOC)
    • 1 *.yml files (6 LOC)
    • 1 *.sh files (2 LOC)
  • " *.java" is biggest, containing 81.4% of LOC.
  • " *.sh" is smallest, containing 0.01% of LOC.


*.java12760 LOC (81%) 208 files
*.xml1500 LOC (9%) 32 files
*.yaml1407 LOC (8%) 31 files
*.yml6 LOC (<1%) 1 file
*.sh2 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 ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 83 files match defined criteria (2,842 LOC, 114.8% vs. main code):
    • 73 *.xml files (2,646 LOC)
    • 8 *.gradle files (172 LOC)
    • 1 *.bat files (14 LOC)
    • 1 *.sh files (10 LOC)
  • " *.xml" is biggest, containing 93.1% of LOC.
  • " *.sh" is smallest, containing 0.35% of LOC.


*.xml2646 LOC (93%) 73 files
*.gradle172 LOC (6%) 8 files
*.bat14 LOC (<1%) 1 file
*.sh10 LOC (<1%) 1 file
Other Code
properties
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 ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*[.]txt".
  • 285 files match defined criteria (8,556 LOC, 345.7% vs. main code):
    • 245 *.java files (7,253 LOC)
    • 22 *.md files (891 LOC)
    • 16 *.properties files (326 LOC)
    • 2 *.xml files (86 LOC)
  • " *.java" is biggest, containing 84.77% of LOC.
  • " *.xml" is smallest, containing 1.01% of LOC.


*.java7253 LOC (84%) 245 files
*.md891 LOC (10%) 22 files
*.properties326 LOC (3%) 16 files
*.xml86 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:08