fasterer icon indicating copy to clipboard operation
fasterer copied to clipboard

:zap: Don't make your Rubies go fast. Make them go fasterer ™. :zap:

Results 15 fasterer issues
Sort by recently updated
recently updated
newest added

I added the offense `Array#count` vs `Array#size`/`Array#length`. I'm aware that this will generate a lot of noise since `.count` is ActiveRecord method used very often. But keep in mind that...

Updated method `#check_fetch_offense` to verify method `#fetch` if it has a block and return a correct error message. Related issue: https://github.com/DamirSvrtan/fasterer/issues/37

@DamirSvrtan hi! Thanks for gem, we used it as part of our ci linting tools in company. We faces an issue that we want manually disable speedups by comment in...

**Hash.update** is an alias for **Hash.merge!** Currently we have `hash_merge_bang_vs_hash_brackets` which suggests us to replace **Hash#merge!()** with **Hash#[]** but it doesn't suggest for **Hash#update()**. **Example** - hash.merge!({"key" => "value"}) ->...

blocked

It'd be nice to have JSON output, maybe something like `--format` json or even `--json`. This would make the integration with editors like VSCode way easier.

enhancement

I think it would be a great enhancement if I was able to disable/exclude a speed suggestion for a specific line via a magic comment (much like how Rubocop does...

enhancement

From https://github.com/rails/rails/pull/26599 i'm seeing that's not the case. Btw, this is a really cool project. cc/ @timrogers

Hash#update is an alias for Hash#merge! Ergo, the suggestions for Hash#update should be similar to Hash#merge! Ref https://github.com/DamirSvrtan/fasterer/issues/82 Link to Fast-Ruby PR : https://github.com/JuanitoFatas/fast-ruby/pull/195

This change replaces `colorize` gem with `rainbow` gem. That is because `fasterer` has MIT license, and `colorize` has GNU GPL license, hence `rainbow` with its MIT license seems a better...