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
tpl
txt
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.

main68646 LOC (77%) 400 files
test0 LOC (0%) 0 files
generated7851 LOC (8%) 2 files
build and deployment95 LOC (<1%) 3 files
other12328 LOC (13%) 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 ".*".
  • 400 files match defined criteria (68,646 LOC, 100.0% vs. main code):
    • 139 *.js files (42,754 LOC)
    • 86 *.html files (16,764 LOC)
    • 116 *.jade files (4,017 LOC)
    • 25 *.scss files (2,604 LOC)
    • 22 *.css files (1,404 LOC)
    • 2 *.less files (729 LOC)
    • 3 *.coffee files (179 LOC)
    • 6 *.tpl files (111 LOC)
    • 1 *.xml files (84 LOC)
  • " *.js" is biggest, containing 62.28% of LOC.
  • " *.xml" is smallest, containing 0.12% of LOC.


*.js42754 LOC (62%) 139 files
*.html16764 LOC (24%) 86 files
*.jade4017 LOC (5%) 116 files
*.scss2604 LOC (3%) 25 files
*.css1404 LOC (2%) 22 files
*.less729 LOC (1%) 2 files
*.coffee179 LOC (<1%) 3 files
*.tpl111 LOC (<1%) 6 files
*.xml84 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 any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (7,851 LOC, 11.4% vs. main code):
    • 1 *.json files (7,821 LOC)
    • 1 *.js files (30 LOC)
  • " *.json" is biggest, containing 99.62% of LOC.
  • " *.js" is smallest, containing 0.38% of LOC.


*.json7821 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
  • 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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
  • 87 files match defined criteria (12,328 LOC, 18.0% vs. main code):
    • 8 *.json files (9,443 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 76.6% of LOC.
  • " *.jade" is smallest, containing 0.48% of LOC.


*.json9443 LOC (76%) 8 files
*.svg1702 LOC (13%) 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.


2023-08-10 15:46