apache / lucenenet
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
props
liquid
targets
resx
xslt
xsl
gitattributes
htaccess
editorconfig
gnuplot
cmd
dotsettings
properties
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.

main361613 LOC (57%) 2,565 files
test206571 LOC (32%) 1,288 files
generated8627 LOC (1%) 36 files
build and deployment1062 LOC (<1%) 33 files
other54817 LOC (8%) 598 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xslt
liquid
props
targets
gnuplot
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2565 files match defined criteria (361,613 LOC, 100.0% vs. main code):
    • 2,512 *.cs files (356,909 LOC)
    • 17 *.js files (1,261 LOC)
    • 1 *.xml files (1,118 LOC)
    • 5 *.ps1 files (495 LOC)
    • 3 *.css files (463 LOC)
    • 4 *.py files (386 LOC)
    • 4 *.xslt files (311 LOC)
    • 1 *.g4 files (197 LOC)
    • 8 *.liquid files (126 LOC)
    • 6 *.props files (125 LOC)
    • 2 *.targets files (122 LOC)
    • 1 *.gnuplot files (67 LOC)
    • 1 *.rdf files (33 LOC)
  • " *.cs" is biggest, containing 98.7% of LOC.
  • " *.rdf" is smallest, containing 0.01% of LOC.


*.cs356909 LOC (98%) 2,512 files
*.js1261 LOC (<1%) 17 files
*.xml1118 LOC (<1%) 1 file
*.ps1495 LOC (<1%) 5 files
*.css463 LOC (<1%) 3 files
*.py386 LOC (<1%) 4 files
*.xslt311 LOC (<1%) 4 files
*.g4197 LOC (<1%) 1 file
*.liquid126 LOC (<1%) 8 files
*.props125 LOC (<1%) 6 files
*.targets122 LOC (<1%) 2 files
*.gnuplot67 LOC (<1%) 1 file
*.rdf33 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.][Tt]ests[.].*".
    • files with paths like ".*/TestUtilities/.*".
    • files with paths like ".*[.][Tt]ests/.*".
  • 1288 files match defined criteria (206,571 LOC, 57.1% vs. main code):
    • 1,225 *.cs files (203,349 LOC)
    • 36 *.csproj files (1,431 LOC)
    • 22 *.xml files (1,426 LOC)
    • 1 *.html files (269 LOC)
    • 3 *.xsl files (70 LOC)
    • 1 *.htm files (26 LOC)
  • " *.cs" is biggest, containing 98.44% of LOC.
  • " *.htm" is smallest, containing 0.01% of LOC.


*.cs203349 LOC (98%) 1,225 files
*.csproj1431 LOC (<1%) 36 files
*.xml1426 LOC (<1%) 22 files
*.html269 LOC (<1%) 1 file
*.xsl70 LOC (<1%) 3 files
*.htm26 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 ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 36 files match defined criteria (8,627 LOC, 2.4% vs. main code). All matches are in *.cs files.


*.cs8627 LOC (100%) 36 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 ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 33 files match defined criteria (1,062 LOC, 0.3% vs. main code):
    • 32 *.csproj files (1,009 LOC)
    • 1 *.bat files (53 LOC)
  • " *.csproj" is biggest, containing 95.01% of LOC.
  • " *.bat" is smallest, containing 4.99% of LOC.


*.csproj1009 LOC (95%) 32 files
*.bat53 LOC (4%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]editorconfig".
  • 598 files match defined criteria (54,817 LOC, 15.2% vs. main code):
    • 230 *.txt files (35,017 LOC)
    • 295 *.md files (13,976 LOC)
    • 41 *.json files (3,289 LOC)
    • 10 *.svg files (1,832 LOC)
    • 21 *.cs files (658 LOC)
    • 1 *.properties files (45 LOC)
  • " *.txt" is biggest, containing 63.88% of LOC.
  • " *.properties" is smallest, containing 0.08% of LOC.


*.txt35017 LOC (63%) 230 files
*.md13976 LOC (25%) 295 files
*.json3289 LOC (5%) 41 files
*.svg1832 LOC (3%) 10 files
*.cs658 LOC (1%) 21 files
*.properties45 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.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)
  • *.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
  • *.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
  • *.ps1 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
  • *.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
  • *.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
  • *.xslt 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
  • *.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
  • *.liquid 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
  • *.targets 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
  • *.gnuplot 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
  • *.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


2025-05-07 15:15