Source Code Analysis Scope
Files includes and excluded from analyses
pig
properties
ru

scoping details...
  • 20 extensions are included in analyses: js, java, css, html, json, less, rb, xml, gradle, py, pig, txt, properties, gitignore, mustache, bat, md, svg, xhtml, ru
  • 14 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/bootstrap[.](js|css|less|scss|styl)" (Bootstrap) (4 files).
    • exclude files with path like ".*[.]min[.]js" (Minimized JS library) (2 files).
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (3 files).
    • exclude files with path like ".*jquery[.].*[.]js" (jQuery library) (0 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (2 files).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • exclude files with path like ".*/fuelux[.]js" (Fuel UX) (1 file).
    • exclude files with path like "(?i).*/require.*[.]js" (RequireJS files) (1 file).
    • exclude files with path like ".*/knockout-(\d+\.){3}(debug\.)?js" (Knockout) (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) (1 file).
    • exclude files with path like ".*/_sokrates/.*" (Sokrates files) (0 files).
    • exclude files with path like ".*/_sokrates_landscape/.*" (Sokrates landscape files) (0 files).
    • exclude files with path like ".*/sokrates_.*?[.]json" (Sokrates conventions and configurations) (0 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.
main37694 LOC (88%) 174 files
test1555 LOC (3%) 18 files
generated0 LOC (0%) 0 files
build and deployment891 LOC (2%) 17 files
other2617 LOC (6%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ru
Explore:   circles  |  sunburst

js16193 LOC (42%) 45 files
css12408 LOC (32%) 22 files
java4662 LOC (12%) 52 files
rb1846 LOC (4%) 8 files
html1155 LOC (3%) 16 files
less752 LOC (1%) 13 files
py410 LOC (1%) 4 files
xml148 LOC (<1%) 9 files
mustache75 LOC (<1%) 2 files
xhtml41 LOC (<1%) 2 files
ru4 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 174 files match defined criteria (37,694 LOC, 100.0% vs. main code):
    • 45 js files (16,193 LOC)
    • 22 css files (12,408 LOC)
    • 52 java files (4,662 LOC)
    • 8 rb files (1,846 LOC)
    • 16 html files (1,155 LOC)
    • 13 less files (752 LOC)
    • 4 py files (410 LOC)
    • 9 xml files (148 LOC)
    • 2 mustache files (75 LOC)
    • 2 xhtml files (41 LOC)
    • 1 ru files (4 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pig
Explore:   circles  |  sunburst

java968 LOC (62%) 10 files
pig384 LOC (24%) 5 files
rb203 LOC (13%) 3 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 18 files match defined criteria (1,555 LOC, 4.1% vs. main code):
    • 10 java files (968 LOC)
    • 5 pig files (384 LOC)
    • 3 rb files (203 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst

gradle525 LOC (58%) 10 files
bat132 LOC (14%) 2 files
gitignore115 LOC (12%) 3 files
xml104 LOC (11%) 1 file
py15 LOC (1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/setup[.]py".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
  • 17 files match defined criteria (891 LOC, 2.4% vs. main code):
    • 10 gradle files (525 LOC)
    • 2 bat files (132 LOC)
    • 3 gitignore files (115 LOC)
    • 1 xml files (104 LOC)
    • 1 py files (15 LOC)
Other Code
properties
Explore:   circles  |  sunburst

json2542 LOC (97%) 10 files
txt42 LOC (1%) 2 files
svg19 LOC (<1%) 1 file
md10 LOC (<1%) 2 files
properties4 LOC (<1%) 3 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ee]xamples/.*".
  • 18 files match defined criteria (2,617 LOC, 6.9% vs. main code):
    • 10 json files (2,542 LOC)
    • 2 txt files (42 LOC)
    • 1 svg files (19 LOC)
    • 2 md files (10 LOC)
    • 3 properties files (4 LOC)
About This Analysis
learn more about scopes (main, test, generated, build, 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.

learn more about used code analyzers...
  • *.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
  • *.java files are analyzed with JavaAnalyzer:
    • 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 (based on package names)
  • *.rb files are analyzed with RubyAnalyzer:
    • 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
    • Basic heuristic 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
  • *.less files are analyzed with LessAnalyzer:
    • 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
  • *.py files are analyzed with PythonAnalyzer:
    • 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
    • Basic heuristic dependency analysis
  • *.xml files are analyzed with XmlAnalyzer:
    • 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
  • *.mustache 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
  • *.xhtml 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
  • *.ru files are analyzed with RubyAnalyzer:
    • 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
    • Basic heuristic dependency analysis