apache / commons-bsf
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
rex
xsl
properties
cgi
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.

main9101 LOC (75%) 80 files
test1030 LOC (8%) 12 files
generated0 LOC (0%) 0 files
build and deployment566 LOC (4%) 5 files
other1307 LOC (10%) 32 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 80 files match defined criteria (9,101 LOC, 100.0% vs. main code):
    • 62 *.java files (6,306 LOC)
    • 14 *.xml files (2,192 LOC)
    • 1 *.xsl files (417 LOC)
    • 1 *.c files (157 LOC)
    • 1 *.h files (25 LOC)
    • 1 *.cgi files (4 LOC)
  • " *.java" is biggest, containing 69.29% of LOC.
  • " *.cgi" is smallest, containing 0.04% of LOC.


*.java6306 LOC (69%) 62 files
*.xml2192 LOC (24%) 14 files
*.xsl417 LOC (4%) 1 file
*.c157 LOC (1%) 1 file
*.h25 LOC (<1%) 1 file
*.cgi4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 12 files match defined criteria (1,030 LOC, 11.3% vs. main code). All matches are in *.java files.


*.java1030 LOC (100%) 12 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 ".*/build[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 5 files match defined criteria (566 LOC, 6.2% vs. main code):
    • 3 *.xml files (515 LOC)
    • 1 *.bat files (41 LOC)
    • 1 *.sh files (10 LOC)
  • " *.xml" is biggest, containing 90.99% of LOC.
  • " *.sh" is smallest, containing 1.77% of LOC.


*.xml515 LOC (90%) 3 files
*.bat41 LOC (7%) 1 file
*.sh10 LOC (1%) 1 file
Other Code
txt
rex
properties
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
  • 32 files match defined criteria (1,307 LOC, 14.4% vs. main code):
    • 9 *.txt files (460 LOC)
    • 4 *.rex files (225 LOC)
    • 3 *.md files (118 LOC)
    • 3 *.java files (115 LOC)
    • 3 *.properties files (114 LOC)
    • 1 *.jsp files (110 LOC)
    • 3 *.js files (58 LOC)
    • 2 *.py files (57 LOC)
    • 2 *.xsl files (28 LOC)
    • 2 *.xml files (22 LOC)
  • " *.txt" is biggest, containing 35.2% of LOC.
  • " *.xml" is smallest, containing 1.68% of LOC.


*.txt460 LOC (35%) 9 files
*.rex225 LOC (17%) 4 files
*.md118 LOC (9%) 3 files
*.java115 LOC (8%) 3 files
*.properties114 LOC (8%) 3 files
*.jsp110 LOC (8%) 1 file
*.js58 LOC (4%) 3 files
*.py57 LOC (4%) 2 files
*.xsl28 LOC (2%) 2 files
*.xml22 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:50