alibaba / nacos
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
proto
txt
editorconfig
cmd
babelrc
eslintignore
gitattributes
ejs
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.

main151593 LOC (58%) 2,125 files
test94852 LOC (36%) 1,019 files
generated0 LOC (0%) 0 files
build and deployment4029 LOC (1%) 43 files
other8240 LOC (3%) 65 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
ejs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2125 files match defined criteria (151,593 LOC, 100.0% vs. main code):
    • 1,909 *.java files (116,451 LOC)
    • 128 *.js files (21,596 LOC)
    • 16 *.proto files (6,921 LOC)
    • 15 *.xml files (2,797 LOC)
    • 37 *.scss files (1,843 LOC)
    • 6 *.sql files (787 LOC)
    • 3 *.css files (560 LOC)
    • 5 *.jsx files (424 LOC)
    • 2 *.tsx files (82 LOC)
    • 2 *.html files (63 LOC)
    • 1 *.ejs files (55 LOC)
    • 1 *.ts files (14 LOC)
  • " *.java" is biggest, containing 76.82% of LOC.
  • " *.ts" is smallest, containing 0.01% of LOC.


*.java116451 LOC (76%) 1,909 files
*.js21596 LOC (14%) 128 files
*.proto6921 LOC (4%) 16 files
*.xml2797 LOC (1%) 15 files
*.scss1843 LOC (1%) 37 files
*.sql787 LOC (<1%) 6 files
*.css560 LOC (<1%) 3 files
*.jsx424 LOC (<1%) 5 files
*.tsx82 LOC (<1%) 2 files
*.html63 LOC (<1%) 2 files
*.ejs55 LOC (<1%) 1 file
*.ts14 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 ".*/test[.].*".
    • files with paths like ".*[.]spec[.]js".
  • 1019 files match defined criteria (94,852 LOC, 62.6% vs. main code):
    • 999 *.java files (92,906 LOC)
    • 3 *.js files (1,354 LOC)
    • 3 *.sql files (387 LOC)
    • 11 *.xml files (190 LOC)
    • 2 *.sh files (9 LOC)
    • 1 *.bat files (6 LOC)
  • " *.java" is biggest, containing 97.95% of LOC.
  • " *.bat" is smallest, containing 0.01% of LOC.


*.java92906 LOC (97%) 999 files
*.js1354 LOC (1%) 3 files
*.sql387 LOC (<1%) 3 files
*.xml190 LOC (<1%) 11 files
*.sh9 LOC (<1%) 2 files
*.bat6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]bat".
  • 43 files match defined criteria (4,029 LOC, 2.7% vs. main code):
    • 40 *.xml files (3,855 LOC)
    • 3 *.js files (174 LOC)
  • " *.xml" is biggest, containing 95.68% of LOC.
  • " *.js" is smallest, containing 4.32% of LOC.


*.xml3855 LOC (95%) 40 files
*.js174 LOC (4%) 3 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
  • 65 files match defined criteria (8,240 LOC, 5.4% vs. main code):
    • 16 *.json files (6,326 LOC)
    • 28 *.properties files (1,125 LOC)
    • 15 *.md files (742 LOC)
    • 6 *.txt files (47 LOC)
  • " *.json" is biggest, containing 76.77% of LOC.
  • " *.txt" is smallest, containing 0.57% of LOC.


*.json6326 LOC (76%) 16 files
*.properties1125 LOC (13%) 28 files
*.md742 LOC (9%) 15 files
*.txt47 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:51