TypeProf icon
TypeProf icon

TypeProf

TypeProf is a Ruby interpreter that abstractly executes Ruby programs at the type level. It executes a given program and observes what types are passed to and returned from methods and what types are assigned to instance variables.

Cost / License

  • Free
  • Open Source

Platforms

  • Mac
  • Windows
  • Linux
  • BSD
  • Ruby
-
No reviews
0likes
0comments
0news articles

Features

Suggest and vote on features
No features, maybe you want to suggest one?

 Tags

TypeProf News & Activities

Highlights All activities

Recent activities

No activities found.

TypeProf information

AlternativeTo Category

Development

GitHub repository

  •  803 Stars
  •  94 Forks
  •  21 Open Issues
  •   Updated  
View on GitHub

Popular alternatives

View all
TypeProf was added to AlternativeTo by Paul on and this page was last updated .
No comments or reviews, maybe you want to be first?
Post comment/review

What is TypeProf?

TypeProf is a Ruby interpreter that abstractly executes Ruby programs at the type level. It executes a given program and observes what types are passed to and returned from methods and what types are assigned to instance variables. All values are, in principle, abstracted to the class to which the object belongs, not the object itself (detailed in the next section).

Here is a list of currently available options:

  • -o OUTFILE: Write the analyze result to OUTFILE instead of standard output
  • -q: Hide the progress indicator
  • -v: Alias to -fshow-errors
  • -d: Show the analysis log (Currently, the log is just for debugging and may become very huge)
  • -I DIR: Add DIR to the file search path of require
  • -r GEMNAME: Load the RBS files of GEMNAME
  • --exclude-dir DIR: Omit the result of files that are placed under the directory DIR. If there are some directory specifications, the latter one is stronger. (Assuming that --include-dir foo --exclude-dir foo/bar is specified, the analysis result of foo/bar/baz.rb is omitted, but foo/baz.rb is shown.)
  • --include-dir DIR: Show the result of files that are placed under the directory DIR. If there are some directory specifications, the latter one is stronger. (Assuming that --exclude-dir foo --include-dir foo/bar is specified, the analysis result of foo/bar/baz.rb is shown, but foo/baz.rb is omitted.)
  • --show-errors: Prints out possible bugs found during execution (often a lot of false positives).
  • --show-untyped: When TypeProf infers a type A | untyped, it simply outputs A by default. But this option forces to output A | untyped.
  • --type-depth-limit=NUM: (undocumented yet)

Official Links