alibaba / fastjson2
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
properties
txt
pro
mod
gitattributes
editorconfig
proto
cmd
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.

main173716 LOC (38%) 958 files
test243979 LOC (53%) 3,352 files
generated7866 LOC (1%) 3 files
build and deployment4045 LOC (<1%) 26 files
other26818 LOC (5%) 167 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 958 files match defined criteria (173,716 LOC, 100.0% vs. main code):
    • 935 *.java files (172,865 LOC)
    • 10 *.xml files (296 LOC)
    • 7 *.kt files (278 LOC)
    • 2 *.html files (130 LOC)
    • 2 *.yaml files (86 LOC)
    • 1 *.proto files (38 LOC)
    • 1 *.pro files (23 LOC)
  • " *.java" is biggest, containing 99.51% of LOC.
  • " *.pro" is smallest, containing 0.01% of LOC.


*.java172865 LOC (99%) 935 files
*.xml296 LOC (<1%) 10 files
*.kt278 LOC (<1%) 7 files
*.html130 LOC (<1%) 2 files
*.yaml86 LOC (<1%) 2 files
*.proto38 LOC (<1%) 1 file
*.pro23 LOC (<1%) 1 file
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 ".*/src/androidTest/.*".
    • files with paths like ".*_test[.].*".
  • 3352 files match defined criteria (243,979 LOC, 140.4% vs. main code):
    • 3,311 *.java files (242,496 LOC)
    • 40 *.kt files (1,421 LOC)
    • 1 *.go files (62 LOC)
  • " *.java" is biggest, containing 99.39% of LOC.
  • " *.go" is smallest, containing 0.03% of LOC.


*.java242496 LOC (99%) 3,311 files
*.kt1421 LOC (<1%) 40 files
*.go62 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 3 files match defined criteria (7,866 LOC, 4.5% vs. main code). All matches are in *.java files.


*.java7866 LOC (100%) 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 ".*/[.]gitattributes".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
  • 26 files match defined criteria (4,045 LOC, 2.3% vs. main code):
    • 22 *.xml files (3,897 LOC)
    • 3 *.gradle files (80 LOC)
    • 1 *.bat files (68 LOC)
  • " *.xml" is biggest, containing 96.34% of LOC.
  • " *.bat" is smallest, containing 1.68% of LOC.


*.xml3897 LOC (96%) 22 files
*.gradle80 LOC (1%) 3 files
*.bat68 LOC (1%) 1 file
Other Code
txt
properties
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
  • 167 files match defined criteria (26,818 LOC, 15.4% vs. main code):
    • 144 *.json files (25,447 LOC)
    • 9 *.md files (821 LOC)
    • 2 *.xml files (329 LOC)
    • 4 *.java files (84 LOC)
    • 2 *.txt files (80 LOC)
    • 5 *.properties files (48 LOC)
    • 1 *.mod files (9 LOC)
  • " *.json" is biggest, containing 94.89% of LOC.
  • " *.mod" is smallest, containing 0.03% of LOC.


*.json25447 LOC (94%) 144 files
*.md821 LOC (3%) 9 files
*.xml329 LOC (1%) 2 files
*.java84 LOC (<1%) 4 files
*.txt80 LOC (<1%) 2 files
*.properties48 LOC (<1%) 5 files
*.mod9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:56