alibaba / Appactive
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
lua
properties
cfg
txt
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.

main8276 LOC (71%) 184 files
test445 LOC (3%) 12 files
generated0 LOC (0%) 0 files
build and deployment1485 LOC (12%) 34 files
other1427 LOC (12%) 58 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lua
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 184 files match defined criteria (8,276 LOC, 100.0% vs. main code):
    • 156 *.java files (6,984 LOC)
    • 12 *.html files (689 LOC)
    • 13 *.lua files (572 LOC)
    • 2 *.cfg files (21 LOC)
    • 1 *.sql files (10 LOC)
  • " *.java" is biggest, containing 84.39% of LOC.
  • " *.sql" is smallest, containing 0.12% of LOC.


*.java6984 LOC (84%) 156 files
*.html689 LOC (8%) 12 files
*.lua572 LOC (6%) 13 files
*.cfg21 LOC (<1%) 2 files
*.sql10 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 12 files match defined criteria (445 LOC, 5.4% vs. main code):
    • 8 *.java files (270 LOC)
    • 4 *.lua files (175 LOC)
  • " *.java" is biggest, containing 60.67% of LOC.
  • " *.lua" is smallest, containing 39.33% of LOC.


*.java270 LOC (60%) 8 files
*.lua175 LOC (39%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 34 files match defined criteria (1,485 LOC, 17.9% vs. main code):
    • 25 *.xml files (1,266 LOC)
    • 9 *.sh files (219 LOC)
  • " *.xml" is biggest, containing 85.25% of LOC.
  • " *.sh" is smallest, containing 14.75% of LOC.


*.xml1266 LOC (85%) 25 files
*.sh219 LOC (14%) 9 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
  • 58 files match defined criteria (1,427 LOC, 17.2% vs. main code):
    • 30 *.java files (1,004 LOC)
    • 10 *.md files (168 LOC)
    • 15 *.json files (148 LOC)
    • 3 *.properties files (107 LOC)
  • " *.java" is biggest, containing 70.36% of LOC.
  • " *.properties" is smallest, containing 7.5% of LOC.


*.java1004 LOC (70%) 30 files
*.md168 LOC (11%) 10 files
*.json148 LOC (10%) 15 files
*.properties107 LOC (7%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:54