apache / james-project
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
eml
txt
mdown
zone
tpl
cgi
hbs
cfg
di
project
gitattributes
xsl
feature
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.

main283280 LOC (35%) 4,131 files
test345659 LOC (43%) 3,033 files
generated0 LOC (0%) 0 files
build and deployment30130 LOC (3%) 271 files
other131181 LOC (16%) 807 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
eml
xsl
tpl
di
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 4131 files match defined criteria (283,280 LOC, 100.0% vs. main code):
    • 3,425 *.java files (231,372 LOC)
    • 386 *.xml files (23,234 LOC)
    • 241 *.scala files (19,951 LOC)
    • 7 *.css files (3,671 LOC)
    • 31 *.html files (2,245 LOC)
    • 13 *.eml files (933 LOC)
    • 8 *.js files (859 LOC)
    • 10 *.yaml files (692 LOC)
    • 1 *.xsl files (212 LOC)
    • 3 *.tpl files (47 LOC)
    • 1 *.di files (23 LOC)
    • 1 *.sql files (17 LOC)
    • 2 *.cgi files (12 LOC)
    • 2 *.mustache files (12 LOC)
  • " *.java" is biggest, containing 81.68% of LOC.
  • " *.mustache" is smallest, containing 0% of LOC.


*.java231372 LOC (81%) 3,425 files
*.xml23234 LOC (8%) 386 files
*.scala19951 LOC (7%) 241 files
*.css3671 LOC (1%) 7 files
*.html2245 LOC (<1%) 31 files
*.eml933 LOC (<1%) 13 files
*.js859 LOC (<1%) 8 files
*.yaml692 LOC (<1%) 10 files
*.xsl212 LOC (<1%) 1 file
*.tpl47 LOC (<1%) 3 files
*.di23 LOC (<1%) 1 file
*.sql17 LOC (<1%) 1 file
*.cgi12 LOC (<1%) 2 files
*.mustache12 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
eml
feature
zone
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[-]tests[-].*".
  • 3033 files match defined criteria (345,659 LOC, 122.0% vs. main code):
    • 2,481 *.java files (252,649 LOC)
    • 155 *.scala files (74,112 LOC)
    • 102 *.eml files (11,270 LOC)
    • 280 *.xml files (7,138 LOC)
    • 1 *.feature files (272 LOC)
    • 8 *.zone files (188 LOC)
    • 2 *.html files (26 LOC)
    • 4 *.mustache files (4 LOC)
  • " *.java" is biggest, containing 73.09% of LOC.
  • " *.mustache" is smallest, containing 0% of LOC.


*.java252649 LOC (73%) 2,481 files
*.scala74112 LOC (21%) 155 files
*.eml11270 LOC (3%) 102 files
*.xml7138 LOC (2%) 280 files
*.feature272 LOC (<1%) 1 file
*.zone188 LOC (<1%) 8 files
*.html26 LOC (<1%) 2 files
*.mustache4 LOC (<1%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 271 files match defined criteria (30,130 LOC, 10.6% vs. main code):
    • 264 *.xml files (30,029 LOC)
    • 7 *.sh files (101 LOC)
  • " *.xml" is biggest, containing 99.66% of LOC.
  • " *.sh" is smallest, containing 0.34% of LOC.


*.xml30029 LOC (99%) 264 files
*.sh101 LOC (<1%) 7 files
Other Code
txt
mdown
properties
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/changes[.]xml".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]mdown".
  • 807 files match defined criteria (131,181 LOC, 46.3% vs. main code):
    • 182 *.json files (56,612 LOC)
    • 107 *.txt files (46,041 LOC)
    • 127 *.md files (12,543 LOC)
    • 29 *.mdown files (4,511 LOC)
    • 158 *.properties files (4,193 LOC)
    • 44 *.xml files (2,595 LOC)
    • 116 *.markdown files (2,158 LOC)
    • 18 *.adoc files (1,165 LOC)
    • 18 *.java files (814 LOC)
    • 2 *.yaml files (260 LOC)
    • 2 *.svg files (211 LOC)
    • 3 *.sh files (49 LOC)
    • 1 *.cfg files (29 LOC)
  • " *.json" is biggest, containing 43.16% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.json56612 LOC (43%) 182 files
*.txt46041 LOC (35%) 107 files
*.md12543 LOC (9%) 127 files
*.mdown4511 LOC (3%) 29 files
*.properties4193 LOC (3%) 158 files
*.xml2595 LOC (1%) 44 files
*.markdown2158 LOC (1%) 116 files
*.adoc1165 LOC (<1%) 18 files
*.java814 LOC (<1%) 18 files
*.yaml260 LOC (<1%) 2 files
*.svg211 LOC (<1%) 2 files
*.sh49 LOC (<1%) 3 files
*.cfg29 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:54