cgag / loc

Count lines of code quickly.
MIT License
2.29k stars 126 forks source link

Treat `*.rbi` files as `*.rb` files #145

Closed jez closed 1 year ago

jez commented 2 years ago

Sorbet, the Ruby type checker, uses *.rbi files (Ruby interface files) to provide optional type annotations without touching the source *.rb files. They act similar to *.h files in C/C++ and *.d.ts files in TypeScript.

The syntax of RBI files is a subset of Ruby syntax, so ever line of an RBI file is effectively a line of Ruby code.