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
eml
properties
txt
mdown
feature
mdwn
zone
tpl
cgi
pub
di
project
pri
hbs
gitattributes
xsl
cfg
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.

main271968 LOC (35%) 3,978 files
test346526 LOC (44%) 2,872 files
generated0 LOC (0%) 0 files
build and deployment28069 LOC (3%) 256 files
other128066 LOC (16%) 751 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 ".*".
  • 3978 files match defined criteria (271,968 LOC, 100.0% vs. main code):
    • 3,315 *.java files (222,605 LOC)
    • 355 *.xml files (22,755 LOC)
    • 230 *.scala files (17,874 LOC)
    • 8 *.css files (3,687 LOC)
    • 31 *.html files (2,323 LOC)
    • 10 *.eml files (859 LOC)
    • 8 *.js files (859 LOC)
    • 10 *.yaml files (681 LOC)
    • 1 *.xsl files (212 LOC)
    • 3 *.tpl files (47 LOC)
    • 1 *.di files (23 LOC)
    • 2 *.yml files (19 LOC)
    • 2 *.cgi files (12 LOC)
    • 2 *.mustache files (12 LOC)
  • " *.java" is biggest, containing 81.85% of LOC.
  • " *.mustache" is smallest, containing 0% of LOC.


*.java222605 LOC (81%) 3,315 files
*.xml22755 LOC (8%) 355 files
*.scala17874 LOC (6%) 230 files
*.css3687 LOC (1%) 8 files
*.html2323 LOC (<1%) 31 files
*.eml859 LOC (<1%) 10 files
*.js859 LOC (<1%) 8 files
*.yaml681 LOC (<1%) 10 files
*.xsl212 LOC (<1%) 1 file
*.tpl47 LOC (<1%) 3 files
*.di23 LOC (<1%) 1 file
*.yml19 LOC (<1%) 2 files
*.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
pub
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 ".*[.]feature".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[-]test[-].*".
  • 2872 files match defined criteria (346,526 LOC, 127.4% vs. main code):
    • 2,341 *.java files (257,220 LOC)
    • 129 *.scala files (67,328 LOC)
    • 111 *.eml files (13,252 LOC)
    • 251 *.xml files (6,313 LOC)
    • 25 *.feature files (2,186 LOC)
    • 8 *.zone files (188 LOC)
    • 2 *.html files (26 LOC)
    • 1 *.pub files (9 LOC)
    • 4 *.mustache files (4 LOC)
  • " *.java" is biggest, containing 74.23% of LOC.
  • " *.mustache" is smallest, containing 0% of LOC.


*.java257220 LOC (74%) 2,341 files
*.scala67328 LOC (19%) 129 files
*.eml13252 LOC (3%) 111 files
*.xml6313 LOC (1%) 251 files
*.feature2186 LOC (<1%) 25 files
*.zone188 LOC (<1%) 8 files
*.html26 LOC (<1%) 2 files
*.pub9 LOC (<1%) 1 file
*.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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitattributes".
  • 256 files match defined criteria (28,069 LOC, 10.3% vs. main code):
    • 246 *.xml files (27,728 LOC)
    • 7 *.yml files (273 LOC)
    • 3 *.sh files (68 LOC)
  • " *.xml" is biggest, containing 98.79% of LOC.
  • " *.sh" is smallest, containing 0.24% of LOC.


*.xml27728 LOC (98%) 246 files
*.yml273 LOC (<1%) 7 files
*.sh68 LOC (<1%) 3 files
Other Code
txt
mdown
mdwn
properties
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]mdwn".
    • files with paths like ".*[.]mdown".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*[.]markdown".
  • 751 files match defined criteria (128,066 LOC, 47.1% vs. main code):
    • 170 *.json files (56,043 LOC)
    • 102 *.txt files (43,369 LOC)
    • 117 *.md files (11,369 LOC)
    • 29 *.mdown files (4,504 LOC)
    • 22 *.mdwn files (3,320 LOC)
    • 118 *.properties files (3,053 LOC)
    • 106 *.markdown files (2,005 LOC)
    • 43 *.xml files (1,957 LOC)
    • 13 *.adoc files (943 LOC)
    • 18 *.java files (812 LOC)
    • 2 *.yaml files (256 LOC)
    • 2 *.svg files (211 LOC)
    • 5 *.yml files (146 LOC)
    • 3 *.sh files (49 LOC)
    • 1 *.cfg files (29 LOC)
  • " *.json" is biggest, containing 43.76% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.json56043 LOC (43%) 170 files
*.txt43369 LOC (33%) 102 files
*.md11369 LOC (8%) 117 files
*.mdown4504 LOC (3%) 29 files
*.mdwn3320 LOC (2%) 22 files
*.properties3053 LOC (2%) 118 files
*.markdown2005 LOC (1%) 106 files
*.xml1957 LOC (1%) 43 files
*.adoc943 LOC (<1%) 13 files
*.java812 LOC (<1%) 18 files
*.yaml256 LOC (<1%) 2 files
*.svg211 LOC (<1%) 2 files
*.yml146 LOC (<1%) 5 files
*.sh49 LOC (<1%) 3 files
*.cfg29 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:53