apache / infrastructure-jenkins
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
jelly
properties
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.

main1569 LOC (6%) 18 files
test493 LOC (1%) 4 files
generated0 LOC (0%) 0 files
build and deployment133 LOC (<1%) 2 files
other23425 LOC (91%) 217 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jelly
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 18 files match defined criteria (1,569 LOC, 100.0% vs. main code):
    • 9 *.java files (1,515 LOC)
    • 3 *.jelly files (34 LOC)
    • 6 *.html files (20 LOC)
  • " *.java" is biggest, containing 96.56% of LOC.
  • " *.html" is smallest, containing 1.27% of LOC.


*.java1515 LOC (96%) 9 files
*.jelly34 LOC (2%) 3 files
*.html20 LOC (1%) 6 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/.*".
  • 4 files match defined criteria (493 LOC, 31.4% vs. main code). All matches are in *.java files.


*.java493 LOC (100%) 4 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".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (133 LOC, 8.5% vs. main code):
    • 1 *.xml files (116 LOC)
    • 1 *.sh files (17 LOC)
  • " *.xml" is biggest, containing 87.22% of LOC.
  • " *.sh" is smallest, containing 12.78% of LOC.


*.xml116 LOC (87%) 1 file
*.sh17 LOC (12%) 1 file
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
  • 217 files match defined criteria (23,425 LOC, 1493.0% vs. main code):
    • 108 *.txt files (20,525 LOC)
    • 107 *.json files (2,868 LOC)
    • 1 *.properties files (21 LOC)
    • 1 *.md files (11 LOC)
  • " *.txt" is biggest, containing 87.62% of LOC.
  • " *.md" is smallest, containing 0.05% of LOC.


*.txt20525 LOC (87%) 108 files
*.json2868 LOC (12%) 107 files
*.properties21 LOC (<1%) 1 file
*.md11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 23:38