apache / spamassassin
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
t
txt
eml
in
l
com
org
pod
mbox
patch
ps
tex
sty
plist
cfg
cgi
gitattributes
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.

main90906 LOC (89%) 524 files
test81 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment701 LOC (<1%) 11 files
other9676 LOC (9%) 53 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
t
eml
cgi
in
org
com
pod
mbox
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 524 files match defined criteria (90,906 LOC, 100.0% vs. main code):
    • 142 *.pm files (49,423 LOC)
    • 224 *.t files (15,669 LOC)
    • 36 *.c files (13,127 LOC)
    • 44 *.eml files (3,910 LOC)
    • 24 *.pl files (1,834 LOC)
    • 1 *.cgi files (1,760 LOC)
    • 8 *.h files (1,229 LOC)
    • 9 *.in files (866 LOC)
    • 4 *.org files (823 LOC)
    • 5 *.com files (737 LOC)
    • 3 *.pod files (530 LOC)
    • 1 *.js files (339 LOC)
    • 19 *.sql files (297 LOC)
    • 2 *.mbox files (190 LOC)
    • 1 *.css files (123 LOC)
    • 1 *.cfg files (49 LOC)
  • " *.pm" is biggest, containing 54.37% of LOC.
  • " *.cfg" is smallest, containing 0.05% of LOC.


*.pm49423 LOC (54%) 142 files
*.t15669 LOC (17%) 224 files
*.c13127 LOC (14%) 36 files
*.eml3910 LOC (4%) 44 files
*.pl1834 LOC (2%) 24 files
*.cgi1760 LOC (1%) 1 file
*.h1229 LOC (1%) 8 files
*.in866 LOC (<1%) 9 files
*.org823 LOC (<1%) 4 files
*.com737 LOC (<1%) 5 files
*.pod530 LOC (<1%) 3 files
*.js339 LOC (<1%) 1 file
*.sql297 LOC (<1%) 19 files
*.mbox190 LOC (<1%) 2 files
*.css123 LOC (<1%) 1 file
*.cfg49 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
t
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_tests[.].*".
  • 2 files match defined criteria (81 LOC, 0.1% vs. main code). All matches are in *.t files.


*.t81 LOC (100%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 11 files match defined criteria (701 LOC, 0.8% vs. main code). All matches are in *.sh files.


*.sh701 LOC (100%) 11 files
Other Code
txt
l
patch
plist
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[Mm]an/.*".
  • 53 files match defined criteria (9,676 LOC, 10.6% vs. main code):
    • 45 *.txt files (9,394 LOC)
    • 5 *.l files (205 LOC)
    • 2 *.patch files (70 LOC)
    • 1 *.plist files (7 LOC)
  • " *.txt" is biggest, containing 97.09% of LOC.
  • " *.plist" is smallest, containing 0.07% of LOC.


*.txt9394 LOC (97%) 45 files
*.l205 LOC (2%) 5 files
*.patch70 LOC (<1%) 2 files
*.plist7 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:15