apache / incubator-taverna-server
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
txt
xsd
policy
tcl
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.

main25135 LOC (81%) 315 files
test1872 LOC (6%) 12 files
generated1528 LOC (4%) 23 files
build and deployment1523 LOC (4%) 10 files
other694 LOC (2%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tcl
xsd
policy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 315 files match defined criteria (25,135 LOC, 100.0% vs. main code):
    • 295 *.java files (22,465 LOC)
    • 12 *.xml files (1,119 LOC)
    • 1 *.js files (485 LOC)
    • 1 *.tcl files (391 LOC)
    • 2 *.html files (337 LOC)
    • 2 *.xsd files (296 LOC)
    • 2 *.policy files (42 LOC)
  • " *.java" is biggest, containing 89.38% of LOC.
  • " *.policy" is smallest, containing 0.17% of LOC.


*.java22465 LOC (89%) 295 files
*.xml1119 LOC (4%) 12 files
*.js485 LOC (1%) 1 file
*.tcl391 LOC (1%) 1 file
*.html337 LOC (1%) 2 files
*.xsd296 LOC (1%) 2 files
*.policy42 LOC (<1%) 2 files
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,872 LOC, 7.4% vs. main code):
    • 11 *.java files (1,831 LOC)
    • 1 *.xml files (41 LOC)
  • " *.java" is biggest, containing 97.81% of LOC.
  • " *.xml" is smallest, containing 2.19% of LOC.


*.java1831 LOC (97%) 11 files
*.xml41 LOC (2%) 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 any line of content like "// This file was generated .*".
  • 23 files match defined criteria (1,528 LOC, 6.1% vs. main code). All matches are in *.java files.


*.java1528 LOC (100%) 23 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".
  • 10 files match defined criteria (1,523 LOC, 6.1% vs. main code). All matches are in *.xml files.


*.xml1523 LOC (100%) 10 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
  • 12 files match defined criteria (694 LOC, 2.8% vs. main code):
    • 2 *.md files (310 LOC)
    • 7 *.properties files (299 LOC)
    • 3 *.txt files (85 LOC)
  • " *.md" is biggest, containing 44.67% of LOC.
  • " *.txt" is smallest, containing 12.25% of LOC.


*.md310 LOC (44%) 2 files
*.properties299 LOC (43%) 7 files
*.txt85 LOC (12%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:30