twitter / elephant-bird
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
pig
proto
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.

main16140 LOC (62%) 250 files
test6569 LOC (25%) 76 files
generated0 LOC (0%) 0 files
build and deployment1669 LOC (6%) 14 files
other1323 LOC (5%) 35 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 250 files match defined criteria (16,140 LOC, 100.0% vs. main code):
    • 247 *.java files (16,071 LOC)
    • 2 *.proto files (47 LOC)
    • 1 *.xml files (22 LOC)
  • " *.java" is biggest, containing 99.57% of LOC.
  • " *.xml" is smallest, containing 0.14% of LOC.


*.java16071 LOC (99%) 247 files
*.proto47 LOC (<1%) 2 files
*.xml22 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
pig
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[.].*".
  • 76 files match defined criteria (6,569 LOC, 40.7% vs. main code):
    • 69 *.java files (6,168 LOC)
    • 4 *.thrift files (394 LOC)
    • 3 *.pig files (7 LOC)
  • " *.java" is biggest, containing 93.9% of LOC.
  • " *.pig" is smallest, containing 0.11% of LOC.


*.java6168 LOC (93%) 69 files
*.thrift394 LOC (5%) 4 files
*.pig7 LOC (<1%) 3 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".
  • 14 files match defined criteria (1,669 LOC, 10.3% vs. main code):
    • 13 *.xml files (1,432 LOC)
    • 1 *.sh files (237 LOC)
  • " *.xml" is biggest, containing 85.8% of LOC.
  • " *.sh" is smallest, containing 14.2% of LOC.


*.xml1432 LOC (85%) 13 files
*.sh237 LOC (14%) 1 file
Other Code
txt
pig
proto
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 35 files match defined criteria (1,323 LOC, 8.2% vs. main code):
    • 6 *.java files (546 LOC)
    • 3 *.md files (407 LOC)
    • 13 *.txt files (120 LOC)
    • 1 *.xml files (87 LOC)
    • 6 *.pig files (83 LOC)
    • 2 *.thrift files (28 LOC)
    • 2 *.proto files (26 LOC)
    • 1 *.properties files (21 LOC)
    • 1 *.json files (5 LOC)
  • " *.java" is biggest, containing 41.27% of LOC.
  • " *.json" is smallest, containing 0.38% of LOC.


*.java546 LOC (41%) 6 files
*.md407 LOC (30%) 3 files
*.txt120 LOC (9%) 13 files
*.xml87 LOC (6%) 1 file
*.pig83 LOC (6%) 6 files
*.thrift28 LOC (2%) 2 files
*.proto26 LOC (1%) 2 files
*.properties21 LOC (1%) 1 file
*.json5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:58