twitter / twitter-text
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
plist
gitmodules
podspec
npmrc
sublime-project
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.

main9761 LOC (59%) 176 files
test2469 LOC (14%) 18 files
generated0 LOC (0%) 0 files
build and deployment275 LOC (1%) 2 files
other4016 LOC (24%) 22 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 176 files match defined criteria (9,761 LOC, 100.0% vs. main code):
    • 12 *.java files (3,205 LOC)
    • 22 *.rb files (3,149 LOC)
    • 135 *.js files (2,031 LOC)
    • 3 *.m files (1,229 LOC)
    • 2 *.h files (70 LOC)
    • 1 *.scala files (52 LOC)
    • 1 *.gemspec files (25 LOC)
  • " *.java" is biggest, containing 32.83% of LOC.
  • " *.gemspec" is smallest, containing 0.26% of LOC.


*.java3205 LOC (32%) 12 files
*.rb3149 LOC (32%) 22 files
*.js2031 LOC (20%) 135 files
*.m1229 LOC (12%) 3 files
*.h70 LOC (<1%) 2 files
*.scala52 LOC (<1%) 1 file
*.gemspec25 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 ".*_tests[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 18 files match defined criteria (2,469 LOC, 25.3% vs. main code):
    • 9 *.java files (1,249 LOC)
    • 2 *.m files (682 LOC)
    • 2 *.js files (350 LOC)
    • 1 *.rb files (179 LOC)
    • 2 *.h files (7 LOC)
    • 2 *.html files (2 LOC)
  • " *.java" is biggest, containing 50.59% of LOC.
  • " *.html" is smallest, containing 0.08% of LOC.


*.java1249 LOC (50%) 9 files
*.m682 LOC (27%) 2 files
*.js350 LOC (14%) 2 files
*.rb179 LOC (7%) 1 file
*.h7 LOC (<1%) 2 files
*.html2 LOC (<1%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]podspec".
  • 2 files match defined criteria (275 LOC, 2.8% vs. main code):
    • 1 *.xml files (250 LOC)
    • 1 *.podspec files (25 LOC)
  • " *.xml" is biggest, containing 90.91% of LOC.
  • " *.podspec" is smallest, containing 9.09% of LOC.


*.xml250 LOC (90%) 1 file
*.podspec25 LOC (9%) 1 file
Other Code
txt
plist
sublime-project
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 ".*[.]npmrc".
    • files with paths like ".*[.]sublime-project".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]plist".
  • 22 files match defined criteria (4,016 LOC, 41.1% vs. main code):
    • 6 *.json files (2,279 LOC)
    • 2 *.txt files (962 LOC)
    • 11 *.md files (695 LOC)
    • 2 *.plist files (46 LOC)
    • 1 *.sublime-project files (34 LOC)
  • " *.json" is biggest, containing 56.75% of LOC.
  • " *.sublime-project" is smallest, containing 0.85% of LOC.


*.json2279 LOC (56%) 6 files
*.txt962 LOC (23%) 2 files
*.md695 LOC (17%) 11 files
*.plist46 LOC (1%) 2 files
*.sublime-project34 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 11:59