apache / poi
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
pub
xsd
properties
vba
xmi
gitattributes
i
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.

main277589 LOC (61%) 2,464 files
test156127 LOC (34%) 1,188 files
generated0 LOC (0%) 0 files
build and deployment5329 LOC (1%) 20 files
other15322 LOC (3%) 176 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
i
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2464 files match defined criteria (277,589 LOC, 100.0% vs. main code):
    • 2,436 *.java files (272,800 LOC)
    • 17 *.xsd files (3,592 LOC)
    • 1 *.i files (529 LOC)
    • 1 *.rdf files (252 LOC)
    • 3 *.xml files (198 LOC)
    • 1 *.jsp files (85 LOC)
    • 1 *.groovy files (72 LOC)
    • 1 *.scala files (24 LOC)
    • 1 *.cpp files (17 LOC)
    • 1 *.clj files (15 LOC)
    • 1 *.sbt files (5 LOC)
  • " *.java" is biggest, containing 98.27% of LOC.
  • " *.sbt" is smallest, containing 0% of LOC.


*.java272800 LOC (98%) 2,436 files
*.xsd3592 LOC (1%) 17 files
*.i529 LOC (<1%) 1 file
*.rdf252 LOC (<1%) 1 file
*.xml198 LOC (<1%) 3 files
*.jsp85 LOC (<1%) 1 file
*.groovy72 LOC (<1%) 1 file
*.scala24 LOC (<1%) 1 file
*.cpp17 LOC (<1%) 1 file
*.clj15 LOC (<1%) 1 file
*.sbt5 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pub
vba
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[-]data/.*".
  • 1188 files match defined criteria (156,127 LOC, 56.2% vs. main code):
    • 1,152 *.java files (145,916 LOC)
    • 22 *.pub files (9,725 LOC)
    • 6 *.xml files (376 LOC)
    • 3 *.rb files (78 LOC)
    • 4 *.vba files (20 LOC)
    • 1 *.html files (12 LOC)
  • " *.java" is biggest, containing 93.46% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.java145916 LOC (93%) 1,152 files
*.pub9725 LOC (6%) 22 files
*.xml376 LOC (<1%) 6 files
*.rb78 LOC (<1%) 3 files
*.vba20 LOC (<1%) 4 files
*.html12 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 ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/jenkins/.*[.]groovy".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/pom[.]xml".
  • 20 files match defined criteria (5,329 LOC, 1.9% vs. main code):
    • 3 *.xml files (2,825 LOC)
    • 14 *.gradle files (1,859 LOC)
    • 1 *.groovy files (552 LOC)
    • 1 *.bat files (73 LOC)
    • 1 *.sh files (20 LOC)
  • " *.xml" is biggest, containing 53.01% of LOC.
  • " *.sh" is smallest, containing 0.38% of LOC.


*.xml2825 LOC (53%) 3 files
*.gradle1859 LOC (34%) 14 files
*.groovy552 LOC (10%) 1 file
*.bat73 LOC (1%) 1 file
*.sh20 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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
  • 176 files match defined criteria (15,322 LOC, 5.5% vs. main code):
    • 140 *.java files (11,621 LOC)
    • 28 *.txt files (2,535 LOC)
    • 4 *.properties files (998 LOC)
    • 1 *.rst files (69 LOC)
    • 2 *.md files (52 LOC)
    • 1 *.css files (47 LOC)
  • " *.java" is biggest, containing 75.85% of LOC.
  • " *.css" is smallest, containing 0.31% of LOC.


*.java11621 LOC (75%) 140 files
*.txt2535 LOC (16%) 28 files
*.properties998 LOC (6%) 4 files
*.rst69 LOC (<1%) 1 file
*.md52 LOC (<1%) 2 files
*.css47 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:17