ajaxorg / ace
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
snippets
txt
jade
tex
styl
slim
hs
gcode
hx
nim
sass
scm
nix
sco
ahk
io
textile
frt
zeek
diff
pgsql
as
wlk
eslintignore
abap
fsi
rq
jl
nsi
scad
vbs
jq
Rhtml
latte
cabal
Rd
feature
vala
lgt
e
haml
cshtml
cr
ejs
liquid
v
wiki
ls
pig
red
mysql
soy
ml
ada
matlab
elm
lisp
cirru
proto
hbs
gitmodules
lsl
CBL
glsl
qml
prisma
twig
eex
tcl
mask
asciidoc
orc
ini
ttl
vhd
csd
coffee
gbs
lua
xq
f90
sjs
properties
  • 132 extensions are included in analyses: js, json, snippets, html, css, txt, md, svg, jade, ts, xml, tex, sh, gitignore, php, yml, styl, slim, py, hs, gcode, hx, nim, java, bat, sass, scm, nix, sco, clj, ahk, io, textile, frt, zeek, diff, pgsql, rb, as, groovy, wlk, eslintignore, abap, fsi, rq, rs, jl, nsi, scad, json5, vbs, jsp, jq, Rhtml, jsx, latte, cabal, dart, rst, Rd, feature, erb, vala, lgt, erl, ftl, d, e, haml, kt, toml, m, cshtml, cr, ejs, cs, r, tf, liquid, v, asm, scss, wiki, ls, ps1, pig, red, mysql, soy, ml, yaml, swift, ada, matlab, cpp, pas, elm, lisp, cirru, less, ex, proto, hbs, gitmodules, gql, lsl, scala, CBL, glsl, sql, qml, prisma, twig, tsx, eex, tcl, mask, asciidoc, orc, ini, go, ttl, vhd, csd, coffee, gbs, lua, xq, pl, f90, sjs, properties
  • 12 criteria are used to exclude files from analysis:
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (6 files).
    • exclude files with path like ".*jquery[.].*[.]js" (jQuery library) (0 files).
    • exclude files with path like ".*/bootstrap[.](js|css|less|scss|styl)" (Bootstrap) (2 files).
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (6 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (1 file).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (130 files).
    • exclude files with path like ".*/docs?/_?(build|themes?|templates?|static)/.*" (Sphinx) (10 files).
    • exclude files with path like ".*[.]txt" (Text files) (21 files).
    • exclude files with path like ".*/prettify[.]js" (1 file).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (1 file).
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.

main125070 LOC (63%) 738 files
test17744 LOC (9%) 85 files
generated0 LOC (0%) 0 files
build and deployment90 LOC (<1%) 1 files
other53859 LOC (27%) 207 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
snippets
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 738 files match defined criteria (125,070 lines of code, 100.0% vs. main code):
    • 598 *.js files (91,866 lines of code)
    • 31 *.html files (15,273 lines of code)
    • 63 *.snippets files (12,324 lines of code)
    • 45 *.css files (5,591 lines of code)
    • 1 *.yml files (16 lines of code)
  • " *.js" is biggest, containing 73.45% of code.
  • " *.yml" is smallest, containing 0.01% of code.


*.js91866 LOC (73%) 598 files
*.html15273 LOC (12%) 31 files
*.snippets12324 LOC (9%) 63 files
*.css5591 LOC (4%) 45 files
*.yml16 LOC (<1%) 1 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]feature".
    • files with any line of content like ".*/simpletest/.*".
  • 85 files match defined criteria (17,744 lines of code, 14.2% vs. main code):
    • 84 *.js files (17,706 lines of code)
    • 1 *.html files (38 lines of code)
  • " *.js" is biggest, containing 99.79% of code.
  • " *.html" is smallest, containing 0.21% of code.


*.js17706 LOC (99%) 84 files
*.html38 LOC (<1%) 1 files
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[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (90 lines of code, 0.1% vs. main code). All matches are in *.sh files.


*.sh90 LOC (100%) 1 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]scm".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]diff".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 207 files match defined criteria (53,859 lines of code, 43.1% vs. main code):
    • 163 *.json files (49,709 lines of code)
    • 14 *.js files (2,735 lines of code)
    • 18 *.html files (1,125 lines of code)
    • 8 *.md files (163 lines of code)
    • 1 *.css files (84 lines of code)
    • 1 *.xml files (18 lines of code)
    • 1 *.ts files (14 lines of code)
    • 1 *.svg files (11 lines of code)
  • " *.json" is biggest, containing 92.29% of code.
  • " *.svg" is smallest, containing 0.02% of code.


*.json49709 LOC (92%) 163 files
*.js2735 LOC (5%) 14 files
*.html1125 LOC (2%) 18 files
*.md163 LOC (<1%) 8 files
*.css84 LOC (<1%) 1 files
*.xml18 LOC (<1%) 1 files
*.ts14 LOC (<1%) 1 files
*.svg11 LOC (<1%) 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
  • *.yml files are analyzed with YamlAnalyzer:
    • 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


2022-02-01 04:01