Source Code Analysis Scope
Files includes and excluded from analyses
mk
gyp
gypi
m4
in
plist
cproject

scoping details...
  • 24 extensions are included in analyses: h, cc, py, mk, html, js, cpp, txt, c, gyp, gypi, css, sh, m4, in, cmake, plist, json, xml, md, gitignore, r, cproject, php
  • 9 criteria are used to exclude files from analysis:
    • exclude files with path like ".*[.]m4" (stuff autogenerated by autoconf - still C deps) (8 files).
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (1 file).
    • exclude files with path like ".*[.]min[.]js" (Minimized JS library) (0 files).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (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.
main122578 LOC (57%) 1,184 files
test74859 LOC (34%) 327 files
generated0 LOC (0%) 0 files
build and deployment8067 LOC (3%) 43 files
other8847 LOC (4%) 105 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
gyp
gypi
cproject
in
Explore:   circles  |  sunburst

cc58788 LOC (47%) 446 files
h30744 LOC (25%) 601 files
js12501 LOC (10%) 27 files
py5994 LOC (4%) 31 files
cpp5741 LOC (4%) 34 files
c5638 LOC (4%) 13 files
gyp1430 LOC (1%) 14 files
gypi1279 LOC (1%) 9 files
html198 LOC (<1%) 3 files
css153 LOC (<1%) 2 files
cproject58 LOC (<1%) 1 file
in23 LOC (<1%) 1 file
php20 LOC (<1%) 1 file
r11 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1184 files match defined criteria (122,578 LOC, 100.0% vs. main code):
    • 446 cc files (58,788 LOC)
    • 601 h files (30,744 LOC)
    • 27 js files (12,501 LOC)
    • 31 py files (5,994 LOC)
    • 34 cpp files (5,741 LOC)
    • 13 c files (5,638 LOC)
    • 14 gyp files (1,430 LOC)
    • 9 gypi files (1,279 LOC)
    • 3 html files (198 LOC)
    • 2 css files (153 LOC)
    • 1 cproject files (58 LOC)
    • 1 in files (23 LOC)
    • 1 php files (20 LOC)
    • 1 r files (11 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
gypi
gyp
Explore:   circles  |  sunburst

cc39312 LOC (52%) 155 files
h16231 LOC (21%) 101 files
sh6643 LOC (8%) 2 files
js5481 LOC (7%) 7 files
py2796 LOC (3%) 22 files
html1831 LOC (2%) 27 files
in1528 LOC (2%) 4 files
gypi431 LOC (<1%) 1 file
cmake199 LOC (<1%) 1 file
c187 LOC (<1%) 4 files
cpp151 LOC (<1%) 1 file
css55 LOC (<1%) 1 file
gyp14 LOC (<1%) 1 file

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_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 327 files match defined criteria (74,859 LOC, 61.1% vs. main code):
    • 155 cc files (39,312 LOC)
    • 101 h files (16,231 LOC)
    • 2 sh files (6,643 LOC)
    • 7 js files (5,481 LOC)
    • 22 py files (2,796 LOC)
    • 27 html files (1,831 LOC)
    • 4 in files (1,528 LOC)
    • 1 gypi files (431 LOC)
    • 1 cmake files (199 LOC)
    • 4 c files (187 LOC)
    • 1 cpp files (151 LOC)
    • 1 css files (55 LOC)
    • 1 gyp files (14 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst

mk7956 LOC (98%) 38 files
cmake79 LOC (<1%) 3 files
sh30 LOC (<1%) 1 file
gitignore2 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/CMakeLists[.]txt".
    • files with paths like ".*[.]cmake".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 43 files match defined criteria (8,067 LOC, 6.6% vs. main code):
    • 38 mk files (7,956 LOC)
    • 3 cmake files (79 LOC)
    • 1 sh files (30 LOC)
    • 1 gitignore files (2 LOC)
Other Code
plist
Explore:   circles  |  sunburst

cc4196 LOC (47%) 37 files
css1266 LOC (14%) 6 files
txt1169 LOC (13%) 18 files
html708 LOC (8%) 19 files
md341 LOC (3%) 2 files
xml340 LOC (3%) 2 files
py214 LOC (2%) 2 files
h194 LOC (2%) 6 files
c176 LOC (1%) 2 files
sh110 LOC (1%) 5 files
plist104 LOC (1%) 3 files
json29 LOC (<1%) 3 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 105 files match defined criteria (8,847 LOC, 7.2% vs. main code):
    • 37 cc files (4,196 LOC)
    • 6 css files (1,266 LOC)
    • 18 txt files (1,169 LOC)
    • 19 html files (708 LOC)
    • 2 md files (341 LOC)
    • 2 xml files (340 LOC)
    • 2 py files (214 LOC)
    • 6 h files (194 LOC)
    • 2 c files (176 LOC)
    • 5 sh files (110 LOC)
    • 3 plist files (104 LOC)
    • 3 json files (29 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...
  • *.cc files are analyzed with CppAnalyzer:
    • 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
  • *.h files are analyzed with CppAnalyzer:
    • 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
  • *.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
  • *.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
  • *.cpp files are analyzed with CppAnalyzer:
    • 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
  • *.c files are analyzed with CStyleAnalyzer:
    • 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
  • *.gyp 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
  • *.gypi 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
  • *.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
  • *.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
  • *.cproject 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
  • *.in files are analyzed with RustAnalyzer:
    • 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
  • *.php files are analyzed with PhpAnalyzer:
    • 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
  • *.r files are analyzed with RAnalyzer:
    • 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