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

main181587 LOC (95%) 1043 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other8578 LOC (4%) 31 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1043 files match defined criteria (181,587 lines of code, 100.0% vs. main code):
    • 1,001 *.js files (176,537 lines of code)
    • 40 *.css files (4,978 lines of code)
    • 2 *.html files (72 lines of code)
  • " *.js" is biggest, containing 97.22% of code.
  • " *.html" is smallest, containing 0.04% of code.


*.js176537 LOC (97%) 1001 files
*.css4978 LOC (2%) 40 files
*.html72 LOC (<1%) 2 files
Other Code
jsm
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • 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 ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 31 files match defined criteria (8,578 lines of code, 4.7% vs. main code):
    • 3 *.js files (6,977 lines of code)
    • 18 *.html files (1,176 lines of code)
    • 2 *.css files (272 lines of code)
    • 3 *.md files (57 lines of code)
    • 2 *.json files (40 lines of code)
    • 1 *.xml files (28 lines of code)
    • 1 *.jsm files (17 lines of code)
    • 1 *.svg files (11 lines of code)
  • " *.js" is biggest, containing 81.34% of code.
  • " *.svg" is smallest, containing 0.13% of code.


*.js6977 LOC (81%) 3 files
*.html1176 LOC (13%) 18 files
*.css272 LOC (3%) 2 files
*.md57 LOC (<1%) 3 files
*.json40 LOC (<1%) 2 files
*.xml28 LOC (<1%) 1 files
*.jsm17 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
  • *.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
  • *.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


2022-02-01 04:02