twitter / hadoop-lzo
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
m4
txt
in
cfg
gitattributes
vcxproj
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.

main4123 LOC (31%) 32 files
test655 LOC (5%) 6 files
generated0 LOC (0%) 0 files
build and deployment7146 LOC (54%) 5 files
other1128 LOC (8%) 5 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
vcxproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 32 files match defined criteria (4,123 LOC, 100.0% vs. main code):
    • 25 *.java files (2,779 LOC)
    • 2 *.in files (609 LOC)
    • 2 *.c files (474 LOC)
    • 1 *.vcxproj files (159 LOC)
    • 2 *.h files (102 LOC)
  • " *.java" is biggest, containing 67.4% of LOC.
  • " *.h" is smallest, containing 2.47% of LOC.


*.java2779 LOC (67%) 25 files
*.in609 LOC (14%) 2 files
*.c474 LOC (11%) 2 files
*.vcxproj159 LOC (3%) 1 file
*.h102 LOC (2%) 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/.*".
  • 6 files match defined criteria (655 LOC, 15.9% vs. main code). All matches are in *.java files.


*.java655 LOC (100%) 6 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".
    • files with paths like ".*/[.]gitattributes".
  • 5 files match defined criteria (7,146 LOC, 173.3% vs. main code):
    • 4 *.sh files (6,670 LOC)
    • 1 *.xml files (476 LOC)
  • " *.sh" is biggest, containing 93.34% of LOC.
  • " *.xml" is smallest, containing 6.66% of LOC.


*.sh6670 LOC (93%) 4 files
*.xml476 LOC (6%) 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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
  • 5 files match defined criteria (1,128 LOC, 27.4% vs. main code):
    • 4 *.txt files (1,107 LOC)
    • 1 *.properties files (21 LOC)
  • " *.txt" is biggest, containing 98.14% of LOC.
  • " *.properties" is smallest, containing 1.86% of LOC.


*.txt1107 LOC (98%) 4 files
*.properties21 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58