corretto / corretto-8
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
properties
policy
txt
make
in
nr
xsd
cfg
xsl
awk
m4
patch
s
props
plist
obj
tab
wsdl
Policy
csh
sed
dsp
lex
TXT
sp
cxx
fx
hs
login
spec
  • 54 extensions are included in analyses: java, properties, js, hpp, cpp, c, xml, h, html, sh, policy, txt, make, m, bat, in, nr, xsd, cfg, d, xsl, awk, m4, gradle, patch, s, props, md, ksh, plist, obj, tab, css, wsdl, Policy, csh, sed, cs, dsp, pl, lex, jsp, TXT, sp, cc, gitignore, asm, cxx, fx, json, hs, login, spec, inc
  • 21 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 ".*/gradle/wrapper/.*" (Gradle) (1 file).
    • exclude files with path like "(?i).*/jquery.*[.]js" (jQuery files) (1 file).
    • exclude files with path like ".*/prototype(.*)\.js" (Prototype) (1 file).
    • exclude files with path like ".*/yui([^.]*)\.js" (YUI) (1 file).
    • exclude files with path like ".*/underscore\.js" (Underscore.js) (1 file).
    • exclude files with path like ".*/controls\.js" (Prototype) (1 file).
    • exclude files with path like ".*/bootstrap[.](js|css|less|scss|styl)" (Bootstrap) (1 file).
    • exclude files with path like ".*/docs/.*" (Documentation) (19 files).
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (54 files).
    • exclude files with path like ".*/deps/.*" (Dependencies) (4 files).
    • exclude files with path like ".*/testdata/.*" (Test data) (2 files).
    • exclude files with path like ".*[.]m4" (stuff autogenerated by autoconf - still C deps) (16 files).
    • exclude files with path like ".*/[Jj]avadoc/.*" (Generated documentation) (769 files).
    • exclude files with path like ".*/target/.*" (Compiled files) (6 files).
    • exclude files with path like ".*/dependencies/.*" (Dependencies) (2 files).
    • exclude files with path like ".*/extern(al)?/.*" (Dependencies) (35 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 ".*[.]txt" (Text files) (186 files).
    • 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.

main3629915 LOC (62%) 22084 files
test1530100 LOC (26%) 16444 files
generated606 LOC (<1%) 8 files
build and deployment61370 LOC (1%) 262 files
other619578 LOC (10%) 3317 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
s
spec
nr
in
hs
sed
policy
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 22084 files match defined criteria (3,629,915 lines of code, 100.0% vs. main code):
    • 17,510 *.java files (2,400,227 lines of code)
    • 1,191 *.cpp files (567,374 lines of code)
    • 875 *.c files (346,185 lines of code)
    • 1,222 *.hpp files (148,161 lines of code)
    • 737 *.h files (91,245 lines of code)
    • 317 *.html files (29,654 lines of code)
    • 101 *.m files (22,823 lines of code)
    • 8 *.xsl files (4,417 lines of code)
    • 10 *.s files (3,796 lines of code)
    • 26 *.js files (3,739 lines of code)
    • 1 *.spec files (3,180 lines of code)
    • 22 *.d files (2,695 lines of code)
    • 1 *.ksh files (1,954 lines of code)
    • 36 *.nr files (1,852 lines of code)
    • 9 *.in files (924 lines of code)
    • 2 *.css files (711 lines of code)
    • 1 *.hs files (240 lines of code)
    • 1 *.cc files (234 lines of code)
    • 2 *.sed files (172 lines of code)
    • 2 *.pl files (126 lines of code)
    • 6 *.policy files (101 lines of code)
    • 2 *.cs files (72 lines of code)
    • 1 *.inc files (17 lines of code)
    • 1 *.cfg files (16 lines of code)
  • " *.java" is biggest, containing 66.12% of code.
  • " *.cfg" is smallest, containing 0% of code.


*.java2400227 LOC (66%) 17510 files
*.cpp567374 LOC (15%) 1191 files
*.c346185 LOC (9%) 875 files
*.hpp148161 LOC (4%) 1222 files
*.h91245 LOC (2%) 737 files
*.html29654 LOC (<1%) 317 files
*.m22823 LOC (<1%) 101 files
*.xsl4417 LOC (<1%) 8 files
*.s3796 LOC (<1%) 10 files
*.js3739 LOC (<1%) 26 files
*.spec3180 LOC (<1%) 1 files
*.d2695 LOC (<1%) 22 files
*.ksh1954 LOC (<1%) 1 files
*.nr1852 LOC (<1%) 36 files
*.in924 LOC (<1%) 9 files
*.css711 LOC (<1%) 2 files
*.hs240 LOC (<1%) 1 files
*.cc234 LOC (<1%) 1 files
*.sed172 LOC (<1%) 2 files
*.pl126 LOC (<1%) 2 files
*.policy101 LOC (<1%) 6 files
*.cs72 LOC (<1%) 2 files
*.inc17 LOC (<1%) 1 files
*.cfg16 LOC (<1%) 1 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xsl
policy
props
awk
wsdl
cfg
in
csh
cxx
txt
login
sp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/UITests?/.*".
    • files with any line of content like ".*/simpletest/.*".
  • 16444 files match defined criteria (1,530,100 lines of code, 42.2% vs. main code):
    • 14,268 *.java files (1,362,620 lines of code)
    • 1,217 *.js files (126,541 lines of code)
    • 446 *.sh files (20,237 lines of code)
    • 14 *.xsl files (10,677 lines of code)
    • 176 *.html files (2,668 lines of code)
    • 211 *.policy files (2,507 lines of code)
    • 10 *.props files (2,210 lines of code)
    • 20 *.c files (1,261 lines of code)
    • 20 *.awk files (519 lines of code)
    • 5 *.ksh files (228 lines of code)
    • 3 *.wsdl files (168 lines of code)
    • 11 *.cfg files (107 lines of code)
    • 31 *.in files (99 lines of code)
    • 3 *.csh files (77 lines of code)
    • 1 *.cpp files (53 lines of code)
    • 1 *.m files (37 lines of code)
    • 1 *.cxx files (33 lines of code)
    • 1 *.jsp files (24 lines of code)
    • 1 *.h files (12 lines of code)
    • 1 *.txt files (10 lines of code)
    • 1 *.css files (4 lines of code)
    • 1 *.login files (4 lines of code)
    • 1 *.sp files (4 lines of code)
  • " *.java" is biggest, containing 89.05% of code.
  • " *.sp" is smallest, containing 0% of code.


*.java1362620 LOC (89%) 14268 files
*.js126541 LOC (8%) 1217 files
*.sh20237 LOC (1%) 446 files
*.xsl10677 LOC (<1%) 14 files
*.html2668 LOC (<1%) 176 files
*.policy2507 LOC (<1%) 211 files
*.props2210 LOC (<1%) 10 files
*.c1261 LOC (<1%) 20 files
*.awk519 LOC (<1%) 20 files
*.ksh228 LOC (<1%) 5 files
*.wsdl168 LOC (<1%) 3 files
*.cfg107 LOC (<1%) 11 files
*.in99 LOC (<1%) 31 files
*.csh77 LOC (<1%) 3 files
*.cpp53 LOC (<1%) 1 files
*.m37 LOC (<1%) 1 files
*.cxx33 LOC (<1%) 1 files
*.jsp24 LOC (<1%) 1 files
*.h12 LOC (<1%) 1 files
*.txt10 LOC (<1%) 1 files
*.css4 LOC (<1%) 1 files
*.login4 LOC (<1%) 1 files
*.sp4 LOC (<1%) 1 files
Generated Code
Automatically generated files, not manually changed after generation.
dsp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]h" AND any line of content like ".* DO NOT EDIT THIS FILE [-] it is machine generated .*".
    • files with paths like ".*[.]dsp" AND any line of content like ".*[#] Microsoft Developer Studio Generated Build File.*".
  • 8 files match defined criteria (606 lines of code, 0.0% vs. main code):
    • 6 *.h files (370 lines of code)
    • 2 *.dsp files (236 lines of code)
  • " *.h" is biggest, containing 61.06% of code.
  • " *.dsp" is smallest, containing 38.94% of code.


*.h370 LOC (61%) 6 files
*.dsp236 LOC (38%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
make
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]make".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 262 files match defined criteria (61,370 lines of code, 1.7% vs. main code):
    • 67 *.sh files (43,286 lines of code)
    • 141 *.make files (15,522 lines of code)
    • 43 *.bat files (1,532 lines of code)
    • 11 *.gradle files (1,030 lines of code)
  • " *.sh" is biggest, containing 70.53% of code.
  • " *.gradle" is smallest, containing 1.68% of code.


*.sh43286 LOC (70%) 67 files
*.make15522 LOC (25%) 141 files
*.bat1532 LOC (2%) 43 files
*.gradle1030 LOC (1%) 11 files
Other Code
properties
obj
xsd
patch
tab
dsp
plist
fx
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]tab".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/COPYING[.][a-z0-9]+".
    • files with paths like ".*/COPYRIGHT[.][a-z0-9]+".
    • files with paths like ".*[.]dsp".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 3317 files match defined criteria (619,578 lines of code, 17.1% vs. main code):
    • 835 *.xml files (434,316 lines of code)
    • 1,493 *.properties files (109,630 lines of code)
    • 699 *.java files (39,180 lines of code)
    • 37 *.c files (17,430 lines of code)
    • 4 *.obj files (4,475 lines of code)
    • 111 *.js files (3,544 lines of code)
    • 29 *.xsd files (2,580 lines of code)
    • 10 *.patch files (2,409 lines of code)
    • 4 *.tab files (1,548 lines of code)
    • 37 *.html files (1,508 lines of code)
    • 33 *.h files (1,137 lines of code)
    • 6 *.md files (708 lines of code)
    • 4 *.cpp files (433 lines of code)
    • 2 *.dsp files (236 lines of code)
    • 6 *.plist files (180 lines of code)
    • 1 *.asm files (89 lines of code)
    • 1 *.fx files (78 lines of code)
    • 3 *.hpp files (59 lines of code)
    • 1 *.sh files (33 lines of code)
    • 1 *.policy files (5 lines of code)
  • " *.xml" is biggest, containing 70.1% of code.
  • " *.policy" is smallest, containing 0% of code.


*.xml434316 LOC (70%) 835 files
*.properties109630 LOC (17%) 1493 files
*.java39180 LOC (6%) 699 files
*.c17430 LOC (2%) 37 files
*.obj4475 LOC (<1%) 4 files
*.js3544 LOC (<1%) 111 files
*.xsd2580 LOC (<1%) 29 files
*.patch2409 LOC (<1%) 10 files
*.tab1548 LOC (<1%) 4 files
*.html1508 LOC (<1%) 37 files
*.h1137 LOC (<1%) 33 files
*.md708 LOC (<1%) 6 files
*.cpp433 LOC (<1%) 4 files
*.dsp236 LOC (<1%) 2 files
*.plist180 LOC (<1%) 6 files
*.asm89 LOC (<1%) 1 files
*.fx78 LOC (<1%) 1 files
*.hpp59 LOC (<1%) 3 files
*.sh33 LOC (<1%) 1 files
*.policy5 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.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)
  • *.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
  • *.hpp 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
  • *.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
  • *.m 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
  • *.xsl 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
  • *.s 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
  • *.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
  • *.spec 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
  • *.d files are analyzed with DAnalyzer:
    • 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
  • *.ksh files are analyzed with ShellAnalyzer:
    • 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
  • *.nr 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
  • *.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
  • *.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
  • *.hs 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
  • *.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
  • *.sed 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
  • *.pl files are analyzed with PerlAnalyzer:
    • 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
  • *.policy 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
  • *.cs files are analyzed with CSharpAnalyzer:
    • 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 namespace heuristics)
  • *.inc 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
  • *.cfg files are analyzed with CfgAnalyzer:
    • 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:23