apache / avro
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
csproj
t
in
properties
props
proto
ini
mod
editorconfig
vim
clang-format
gitattributes
cfg
launch
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.

main108023 LOC (48%) 858 files
test85491 LOC (38%) 584 files
generated10495 LOC (4%) 43 files
build and deployment5563 LOC (2%) 55 files
other14257 LOC (6%) 167 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
t
props
in
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 858 files match defined criteria (108,023 LOC, 100.0% vs. main code):
    • 419 *.java files (41,455 LOC)
    • 40 *.c files (18,825 LOC)
    • 136 *.cs files (14,273 LOC)
    • 26 *.cc files (7,153 LOC)
    • 43 *.hh files (4,893 LOC)
    • 13 *.js files (4,724 LOC)
    • 20 *.py files (3,507 LOC)
    • 37 *.php files (2,808 LOC)
    • 10 *.rb files (2,363 LOC)
    • 24 *.h files (1,945 LOC)
    • 9 *.pm files (1,704 LOC)
    • 36 *.html files (1,272 LOC)
    • 10 *.t files (1,213 LOC)
    • 10 *.xml files (601 LOC)
    • 2 *.toml files (373 LOC)
    • 6 *.avsc files (236 LOC)
    • 1 *.g4 files (210 LOC)
    • 3 *.cmake files (130 LOC)
    • 2 *.props files (91 LOC)
    • 3 *.in files (77 LOC)
    • 1 *.cfg files (59 LOC)
    • 1 *.rdf files (47 LOC)
    • 3 *.css files (23 LOC)
    • 1 *.gemspec files (22 LOC)
    • 2 *.scss files (19 LOC)
  • " *.java" is biggest, containing 38.38% of LOC.
  • " *.scss" is smallest, containing 0.02% of LOC.


*.java41455 LOC (38%) 419 files
*.c18825 LOC (17%) 40 files
*.cs14273 LOC (13%) 136 files
*.cc7153 LOC (6%) 26 files
*.hh4893 LOC (4%) 43 files
*.js4724 LOC (4%) 13 files
*.py3507 LOC (3%) 20 files
*.php2808 LOC (2%) 37 files
*.rb2363 LOC (2%) 10 files
*.h1945 LOC (1%) 24 files
*.pm1704 LOC (1%) 9 files
*.html1272 LOC (1%) 36 files
*.t1213 LOC (1%) 10 files
*.xml601 LOC (<1%) 10 files
*.toml373 LOC (<1%) 2 files
*.avsc236 LOC (<1%) 6 files
*.g4210 LOC (<1%) 1 file
*.cmake130 LOC (<1%) 3 files
*.props91 LOC (<1%) 2 files
*.in77 LOC (<1%) 3 files
*.cfg59 LOC (<1%) 1 file
*.rdf47 LOC (<1%) 1 file
*.css23 LOC (<1%) 3 files
*.gemspec22 LOC (<1%) 1 file
*.scss19 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
proto
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 ".*/test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.][Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 584 files match defined criteria (85,491 LOC, 79.1% vs. main code):
    • 335 *.java files (46,388 LOC)
    • 52 *.cs files (9,760 LOC)
    • 16 *.cc files (6,893 LOC)
    • 29 *.c files (4,889 LOC)
    • 7 *.js files (4,877 LOC)
    • 20 *.py files (4,167 LOC)
    • 19 *.rb files (3,626 LOC)
    • 11 *.php files (1,879 LOC)
    • 70 *.avsc files (1,520 LOC)
    • 14 *.xml files (653 LOC)
    • 1 *.sh files (339 LOC)
    • 1 *.h files (190 LOC)
    • 6 *.csproj files (154 LOC)
    • 2 *.proto files (117 LOC)
    • 1 *.thrift files (39 LOC)
  • " *.java" is biggest, containing 54.26% of LOC.
  • " *.thrift" is smallest, containing 0.05% of LOC.


*.java46388 LOC (54%) 335 files
*.cs9760 LOC (11%) 52 files
*.cc6893 LOC (8%) 16 files
*.c4889 LOC (5%) 29 files
*.js4877 LOC (5%) 7 files
*.py4167 LOC (4%) 20 files
*.rb3626 LOC (4%) 19 files
*.php1879 LOC (2%) 11 files
*.avsc1520 LOC (1%) 70 files
*.xml653 LOC (<1%) 14 files
*.sh339 LOC (<1%) 1 file
*.h190 LOC (<1%) 1 file
*.csproj154 LOC (<1%) 6 files
*.proto117 LOC (<1%) 2 files
*.thrift39 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 43 files match defined criteria (10,495 LOC, 9.7% vs. main code):
    • 7 *.java files (5,201 LOC)
    • 2 *.json files (3,345 LOC)
    • 34 *.cs files (1,949 LOC)
  • " *.java" is biggest, containing 49.56% of LOC.
  • " *.cs" is smallest, containing 18.57% of LOC.


*.java5201 LOC (49%) 7 files
*.json3345 LOC (31%) 2 files
*.cs1949 LOC (18%) 34 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]csproj".
  • 55 files match defined criteria (5,563 LOC, 5.1% vs. main code):
    • 30 *.xml files (4,439 LOC)
    • 14 *.sh files (835 LOC)
    • 10 *.csproj files (251 LOC)
    • 1 *.bat files (38 LOC)
  • " *.xml" is biggest, containing 79.8% of LOC.
  • " *.bat" is smallest, containing 0.68% of LOC.


*.xml4439 LOC (79%) 30 files
*.sh835 LOC (15%) 14 files
*.csproj251 LOC (4%) 10 files
*.bat38 LOC (<1%) 1 file
Other Code
txt
ini
vim
properties
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]vim".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]editorconfig".
  • 167 files match defined criteria (14,257 LOC, 13.2% vs. main code):
    • 96 *.md files (6,110 LOC)
    • 16 *.json files (3,708 LOC)
    • 13 *.java files (1,746 LOC)
    • 18 *.txt files (1,704 LOC)
    • 3 *.xml files (208 LOC)
    • 7 *.cc files (207 LOC)
    • 1 *.c files (176 LOC)
    • 2 *.ini files (112 LOC)
    • 1 *.vim files (73 LOC)
    • 3 *.properties files (49 LOC)
    • 2 *.hh files (47 LOC)
    • 1 *.php files (41 LOC)
    • 1 *.svg files (27 LOC)
    • 1 *.mod files (23 LOC)
    • 1 *.py files (17 LOC)
    • 1 *.avsc files (9 LOC)
  • " *.md" is biggest, containing 42.86% of LOC.
  • " *.avsc" is smallest, containing 0.06% of LOC.


*.md6110 LOC (42%) 96 files
*.json3708 LOC (26%) 16 files
*.java1746 LOC (12%) 13 files
*.txt1704 LOC (11%) 18 files
*.xml208 LOC (1%) 3 files
*.cc207 LOC (1%) 7 files
*.c176 LOC (1%) 1 file
*.ini112 LOC (<1%) 2 files
*.vim73 LOC (<1%) 1 file
*.properties49 LOC (<1%) 3 files
*.hh47 LOC (<1%) 2 files
*.php41 LOC (<1%) 1 file
*.svg27 LOC (<1%) 1 file
*.mod23 LOC (<1%) 1 file
*.py17 LOC (<1%) 1 file
*.avsc9 LOC (<1%) 1 file
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)
  • *.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
  • *.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)
  • *.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
  • *.hh 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
  • *.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
  • *.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
  • *.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
  • *.pm 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
  • *.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
  • *.t 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
  • *.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
  • *.toml 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
  • *.avsc files are analyzed with JsonAnalyzer:
    • 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
  • *.g4 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
  • *.cmake 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
  • *.props 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
  • *.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
  • *.rdf 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
  • *.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
  • *.gemspec 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
  • *.scss files are analyzed with ScssAnalyzer:
    • 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


2025-05-07 15:20