Clou9 Ace Editor
Source Code Overview

Source Code Analysis Scope
Files includes and excluded from analyses
  • 7 extensions are included in analyses: js, snippets, json, html, css, tmtheme, md
  • 5 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-z]+/.*" (0 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (6 files).
    • exclude files with path like ".*/xquery/xqlint[.]js" (Documentation) (0 files).
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (6 files).
    • exclude files with path like ".*/bootstrap[.]js" (3rd party library) (2 files).
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.

main124365 LOC (65%) 765 files
test66262 LOC (34%) 241 files
other189 LOC (<1%) 9 files
build and deployment128 LOC (<1%) 7 files
generated0 LOC (0%) 0 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 765 files match defined criteria (124,365 lines of code, 100.0% vs. main code):
    • 609 *.js files (89,431 lines of code)
    • 47 *.html files (16,360 lines of code)
    • 63 *.snippets files (12,326 lines of code)
    • 46 *.css files (6,248 lines of code)
  • " *.js" is biggest, containing 71.91% of code.
  • " *.css" is smallest, containing 5.02% of code.


*.js89431 LOC (71%) 609 files
*.html16360 LOC (13%) 47 files
*.snippets12326 LOC (9%) 63 files
*.css6248 LOC (5%) 46 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
  • The following criteria are used to filter files:
    • files with paths like ".*/_test/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test/.*".
  • 241 files match defined criteria (66,262 lines of code, 53.3% vs. main code):
    • 157 *.json files (49,293 lines of code)
    • 82 *.js files (16,925 lines of code)
    • 1 *.html files (38 lines of code)
    • 1 *.md files (6 lines of code)
  • " *.json" is biggest, containing 74.39% of code.
  • " *.md" is smallest, containing 0.01% of code.


*.json49293 LOC (74%) 157 files
*.js16925 LOC (25%) 82 files
*.html38 LOC (<1%) 1 files
*.md6 LOC (<1%) 1 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
  • The following criteria are used to filter files:
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/package[.]json".
  • 7 files match defined criteria (128 lines of code, 0.1% vs. main code):
    • 4 *.json files (81 lines of code)
    • 2 *.js files (42 lines of code)
    • 1 *.html files (5 lines of code)
  • " *.json" is biggest, containing 63.28% of code.
  • " *.html" is smallest, containing 3.91% of code.


*.json81 LOC (63%) 4 files
*.js42 LOC (32%) 2 files
*.html5 LOC (3%) 1 files
Other Code
  • The following criteria are used to filter files:
    • files with paths like ".*/additionalObjs[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]tmtheme".
  • 9 files match defined criteria (189 lines of code, 0.2% vs. main code):
    • 8 *.md files (163 lines of code)
    • 1 *.json files (26 lines of code)
  • " *.md" is biggest, containing 86.24% of code.
  • " *.json" is smallest, containing 13.76% of code.


*.md163 LOC (86%) 8 files
*.json26 LOC (13%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.snippets files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.css files are analyzed with CssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2020-09-11 22:46