apache / echarts-www
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
jade
txt
tpl
coffee
jshintrc
babelrc
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.

main68527 LOC (75%) 398 files
test1 LOC (<1%) 1 file
generated8882 LOC (9%) 2 files
build and deployment95 LOC (<1%) 3 files
other13361 LOC (14%) 87 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jade
coffee
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 398 files match defined criteria (68,527 LOC, 100.0% vs. main code):
    • 139 *.js files (42,877 LOC)
    • 85 *.html files (16,582 LOC)
    • 115 *.jade files (3,955 LOC)
    • 25 *.scss files (2,607 LOC)
    • 22 *.css files (1,404 LOC)
    • 2 *.less files (728 LOC)
    • 3 *.coffee files (179 LOC)
    • 6 *.tpl files (111 LOC)
    • 1 *.xml files (84 LOC)
  • " *.js" is biggest, containing 62.57% of LOC.
  • " *.xml" is smallest, containing 0.12% of LOC.


*.js42877 LOC (62%) 139 files
*.html16582 LOC (24%) 85 files
*.jade3955 LOC (5%) 115 files
*.scss2607 LOC (3%) 25 files
*.css1404 LOC (2%) 22 files
*.less728 LOC (1%) 2 files
*.coffee179 LOC (<1%) 3 files
*.tpl111 LOC (<1%) 6 files
*.xml84 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 ".*/test[.].*".
  • 1 file matches defined criteria (1 LOC, 0.0% vs. main code). All matches are in *.html files.


*.html1 LOC (100%) 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".
    • files with any line of content like "//[ ]*Generated by .*".
  • 2 files match defined criteria (8,882 LOC, 13.0% vs. main code):
    • 1 *.json files (8,852 LOC)
    • 1 *.js files (30 LOC)
  • " *.json" is biggest, containing 99.66% of LOC.
  • " *.js" is smallest, containing 0.34% of LOC.


*.json8852 LOC (99%) 1 file
*.js30 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (95 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh95 LOC (100%) 3 files
Other Code
txt
jade
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 ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 87 files match defined criteria (13,361 LOC, 19.5% vs. main code):
    • 8 *.json files (10,476 LOC)
    • 54 *.svg files (1,702 LOC)
    • 13 *.md files (954 LOC)
    • 2 *.txt files (170 LOC)
    • 10 *.jade files (59 LOC)
  • " *.json" is biggest, containing 78.41% of LOC.
  • " *.jade" is smallest, containing 0.44% of LOC.


*.json10476 LOC (78%) 8 files
*.svg1702 LOC (12%) 54 files
*.md954 LOC (7%) 13 files
*.txt170 LOC (1%) 2 files
*.jade59 LOC (<1%) 10 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:49