apache / wookie
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
properties
as
mxml
xsd
prefs
csproj
project
plist
classpath
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.

main50678 LOC (74%) 628 files
test11669 LOC (17%) 81 files
generated62 LOC (<1%) 1 file
build and deployment1735 LOC (2%) 57 files
other4106 LOC (6%) 88 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
as
xsd
mxml
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 628 files match defined criteria (50,678 LOC, 100.0% vs. main code):
    • 230 *.java files (16,425 LOC)
    • 86 *.js files (12,975 LOC)
    • 52 *.css files (8,822 LOC)
    • 86 *.xml files (4,138 LOC)
    • 13 *.as files (2,880 LOC)
    • 98 *.html files (2,718 LOC)
    • 12 *.php files (783 LOC)
    • 10 *.py files (452 LOC)
    • 3 *.xsd files (379 LOC)
    • 8 *.cs files (329 LOC)
    • 1 *.sql files (256 LOC)
    • 3 *.jsp files (185 LOC)
    • 12 *.htm files (176 LOC)
    • 6 *.rb files (126 LOC)
    • 8 *.mxml files (34 LOC)
  • " *.java" is biggest, containing 32.41% of LOC.
  • " *.mxml" is smallest, containing 0.07% of LOC.


*.java16425 LOC (32%) 230 files
*.js12975 LOC (25%) 86 files
*.css8822 LOC (17%) 52 files
*.xml4138 LOC (8%) 86 files
*.as2880 LOC (5%) 13 files
*.html2718 LOC (5%) 98 files
*.php783 LOC (1%) 12 files
*.py452 LOC (<1%) 10 files
*.xsd379 LOC (<1%) 3 files
*.cs329 LOC (<1%) 8 files
*.sql256 LOC (<1%) 1 file
*.jsp185 LOC (<1%) 3 files
*.htm176 LOC (<1%) 12 files
*.rb126 LOC (<1%) 6 files
*.mxml34 LOC (<1%) 8 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/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
  • 81 files match defined criteria (11,669 LOC, 23.0% vs. main code):
    • 65 *.java files (11,462 LOC)
    • 1 *.js files (90 LOC)
    • 12 *.xml files (86 LOC)
    • 1 *.htm files (18 LOC)
    • 2 *.css files (13 LOC)
  • " *.java" is biggest, containing 98.23% of LOC.
  • " *.css" is smallest, containing 0.11% of LOC.


*.java11462 LOC (98%) 65 files
*.js90 LOC (<1%) 1 file
*.xml86 LOC (<1%) 12 files
*.htm18 LOC (<1%) 1 file
*.css13 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (62 LOC, 0.1% vs. main code). All matches are in *.html files.


*.html62 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]csproj".
  • 57 files match defined criteria (1,735 LOC, 3.4% vs. main code):
    • 49 *.xml files (1,393 LOC)
    • 2 *.csproj files (170 LOC)
    • 3 *.bat files (109 LOC)
    • 3 *.sh files (63 LOC)
  • " *.xml" is biggest, containing 80.29% of LOC.
  • " *.sh" is smallest, containing 3.63% of LOC.


*.xml1393 LOC (80%) 49 files
*.csproj170 LOC (9%) 2 files
*.bat109 LOC (6%) 3 files
*.sh63 LOC (3%) 3 files
Other Code
txt
plist
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]plist".
  • 88 files match defined criteria (4,106 LOC, 8.1% vs. main code):
    • 41 *.txt files (1,375 LOC)
    • 1 *.plist files (1,276 LOC)
    • 40 *.properties files (955 LOC)
    • 4 *.js files (288 LOC)
    • 1 *.css files (122 LOC)
    • 1 *.htm files (90 LOC)
  • " *.txt" is biggest, containing 33.49% of LOC.
  • " *.htm" is smallest, containing 2.19% of LOC.


*.txt1375 LOC (33%) 41 files
*.plist1276 LOC (31%) 1 file
*.properties955 LOC (23%) 40 files
*.js288 LOC (7%) 4 files
*.css122 LOC (2%) 1 file
*.htm90 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:56