apache / nutch
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
xsd
xsl
rss
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.

main56406 LOC (72%) 681 files
test11527 LOC (14%) 132 files
generated0 LOC (0%) 0 files
build and deployment1950 LOC (2%) 81 files
other7387 LOC (9%) 70 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
xsl
rss
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 681 files match defined criteria (56,406 LOC, 100.0% vs. main code):
    • 482 *.java files (47,844 LOC)
    • 185 *.xml files (7,782 LOC)
    • 8 *.html files (473 LOC)
    • 2 *.xsd files (201 LOC)
    • 2 *.xsl files (68 LOC)
    • 2 *.rss files (38 LOC)
  • " *.java" is biggest, containing 84.82% of LOC.
  • " *.rss" is smallest, containing 0.07% of LOC.


*.java47844 LOC (84%) 482 files
*.xml7782 LOC (13%) 185 files
*.html473 LOC (<1%) 8 files
*.xsd201 LOC (<1%) 2 files
*.xsl68 LOC (<1%) 2 files
*.rss38 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/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
  • 132 files match defined criteria (11,527 LOC, 20.4% vs. main code):
    • 118 *.java files (11,009 LOC)
    • 6 *.html files (299 LOC)
    • 7 *.xml files (199 LOC)
    • 1 *.js files (20 LOC)
  • " *.java" is biggest, containing 95.51% of LOC.
  • " *.js" is smallest, containing 0.17% of LOC.


*.java11009 LOC (95%) 118 files
*.html299 LOC (2%) 6 files
*.xml199 LOC (1%) 7 files
*.js20 LOC (<1%) 1 file
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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 81 files match defined criteria (1,950 LOC, 3.5% vs. main code):
    • 80 *.xml files (1,935 LOC)
    • 1 *.sh files (15 LOC)
  • " *.xml" is biggest, containing 99.23% of LOC.
  • " *.sh" is smallest, containing 0.77% of LOC.


*.xml1935 LOC (99%) 80 files
*.sh15 LOC (<1%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 70 files match defined criteria (7,387 LOC, 13.1% vs. main code):
    • 44 *.txt files (3,670 LOC)
    • 23 *.md files (3,320 LOC)
    • 3 *.properties files (397 LOC)
  • " *.txt" is biggest, containing 49.68% of LOC.
  • " *.properties" is smallest, containing 5.37% of LOC.


*.txt3670 LOC (49%) 44 files
*.md3320 LOC (44%) 23 files
*.properties397 LOC (5%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:16