twitter / TwitterTextEditor
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
plist
storyboard
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.

main2176 LOC (48%) 21 files
test625 LOC (13%) 4 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1665 LOC (37%) 28 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 ".*".
  • 21 files match defined criteria (2,176 LOC, 100.0% vs. main code):
    • 19 *.swift files (2,069 LOC)
    • 2 *.rb files (107 LOC)
  • " *.swift" is biggest, containing 95.08% of LOC.
  • " *.rb" is smallest, containing 4.92% of LOC.


*.swift2069 LOC (95%) 19 files
*.rb107 LOC (4%) 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]ests/.*".
  • 4 files match defined criteria (625 LOC, 28.7% vs. main code). All matches are in *.swift files.


*.swift625 LOC (100%) 4 files
Other Code
plist
storyboard
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]txt".
  • 28 files match defined criteria (1,665 LOC, 76.5% vs. main code):
    • 11 *.swift files (1,047 LOC)
    • 6 *.md files (254 LOC)
    • 4 *.json files (137 LOC)
    • 1 *.m files (109 LOC)
    • 3 *.plist files (78 LOC)
    • 1 *.storyboard files (24 LOC)
    • 2 *.h files (16 LOC)
  • " *.swift" is biggest, containing 62.88% of LOC.
  • " *.h" is smallest, containing 0.96% of LOC.


*.swift1047 LOC (62%) 11 files
*.md254 LOC (15%) 6 files
*.json137 LOC (8%) 4 files
*.m109 LOC (6%) 1 file
*.plist78 LOC (4%) 3 files
*.storyboard24 LOC (1%) 1 file
*.h16 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 12:00