twitter / ios-twitter-image-pipeline
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
in
po
plist
m4
storyboard
txt
mk
properties
podspec
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.

main96338 LOC (88%) 367 files
test0 LOC (0%) 0 files
generated94 LOC (<1%) 1 file
build and deployment916 LOC (<1%) 8 files
other11613 LOC (10%) 54 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 367 files match defined criteria (96,338 LOC, 100.0% vs. main code):
    • 134 *.c files (56,082 LOC)
    • 67 *.m files (21,857 LOC)
    • 138 *.h files (8,740 LOC)
    • 17 *.in files (8,461 LOC)
    • 4 *.swift files (555 LOC)
    • 2 *.cmake files (285 LOC)
    • 2 *.py files (188 LOC)
    • 2 *.html files (150 LOC)
    • 1 *.go files (20 LOC)
  • " *.c" is biggest, containing 58.21% of LOC.
  • " *.go" is smallest, containing 0.02% of LOC.


*.c56082 LOC (58%) 134 files
*.m21857 LOC (22%) 67 files
*.h8740 LOC (9%) 138 files
*.in8461 LOC (8%) 17 files
*.swift555 LOC (<1%) 4 files
*.cmake285 LOC (<1%) 2 files
*.py188 LOC (<1%) 2 files
*.html150 LOC (<1%) 2 files
*.go20 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 paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 1 file matches defined criteria (94 LOC, 0.1% vs. main code). All matches are in *.html files.


*.html94 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
  • 8 files match defined criteria (916 LOC, 1.0% vs. main code):
    • 1 *.gradle files (413 LOC)
    • 2 *.mk files (267 LOC)
    • 3 *.sh files (134 LOC)
    • 1 *.bat files (66 LOC)
    • 1 *.podspec files (36 LOC)
  • " *.gradle" is biggest, containing 45.09% of LOC.
  • " *.podspec" is smallest, containing 3.93% of LOC.


*.gradle413 LOC (45%) 1 file
*.mk267 LOC (29%) 2 files
*.sh134 LOC (14%) 3 files
*.bat66 LOC (7%) 1 file
*.podspec36 LOC (3%) 1 file
Other Code
txt
in
plist
storyboard
mk
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]xib".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Mm]an/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
  • 54 files match defined criteria (11,613 LOC, 12.1% vs. main code):
    • 12 *.c files (6,173 LOC)
    • 3 *.txt files (2,040 LOC)
    • 2 *.in files (1,482 LOC)
    • 4 *.md files (743 LOC)
    • 9 *.json files (306 LOC)
    • 10 *.plist files (275 LOC)
    • 6 *.h files (271 LOC)
    • 5 *.storyboard files (212 LOC)
    • 1 *.mk files (58 LOC)
    • 1 *.xib files (42 LOC)
    • 1 *.properties files (11 LOC)
  • " *.c" is biggest, containing 53.16% of LOC.
  • " *.properties" is smallest, containing 0.09% of LOC.


*.c6173 LOC (53%) 12 files
*.txt2040 LOC (17%) 3 files
*.in1482 LOC (12%) 2 files
*.md743 LOC (6%) 4 files
*.json306 LOC (2%) 9 files
*.plist275 LOC (2%) 10 files
*.h271 LOC (2%) 6 files
*.storyboard212 LOC (1%) 5 files
*.mk58 LOC (<1%) 1 file
*.xib42 LOC (<1%) 1 file
*.properties11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-17 12:00