├── .fasterer.yml ├── .github └── workflows │ └── ruby.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── CHANGELOG.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── bin └── fasterer ├── fasterer.gemspec ├── lib ├── fasterer.rb └── fasterer │ ├── analyzer.rb │ ├── cli.rb │ ├── config.rb │ ├── file_traverser.rb │ ├── method_call.rb │ ├── method_definition.rb │ ├── offense.rb │ ├── offense_collector.rb │ ├── painter.rb │ ├── parser.rb │ ├── rescue_call.rb │ ├── scanners │ ├── method_call_scanner.rb │ ├── method_definition_scanner.rb │ ├── offensive.rb │ └── rescue_call_scanner.rb │ ├── token.rb │ └── version.rb └── spec ├── lib └── fasterer │ ├── analyzer │ ├── 02_rescue_vs_respond_to_spec.rb │ ├── 03_module_eval_spec.rb │ ├── 06_shuffle_first_vs_sample_spec.rb │ ├── 08_for_loop_vs_each_spec.rb │ ├── 09_each_with_index_vs_while_spec.rb │ ├── 10_map_flatten_vs_flat_map_spec.rb │ ├── 11_reverse_each_vs_reverse_each_spec.rb │ ├── 12_select_first_vs_detect_spec.rb │ ├── 13_sort_vs_sort_by_spec.rb │ ├── 14_fetch_with_argument_vs_block_spec.rb │ ├── 15_keys_each_vs_each_key_spec.rb │ ├── 16_hash_merge_bang_vs_hash_brackets_spec.rb │ ├── 18_block_vs_symbol_to_proc_spec.rb │ ├── 19_proc_call_vs_yield_spec.rb │ ├── 24_gsub_vs_tr_spec.rb │ ├── 25_select_last_vs_reverse_detect_spec.rb │ ├── 26_getter_vs_attr_reader_spec.rb │ ├── 27_setter_vs_attr_writer_spec.rb │ ├── 29_include_vs_cover_on_range_spec.rb │ ├── 98_misc_spec.rb │ └── 99_exceptional_files_spec.rb │ ├── cli_spec.rb │ ├── config_spec.rb │ ├── file_traverser_spec.rb │ ├── method_call_spec.rb │ ├── method_definition_spec.rb │ ├── rescue_call_spec.rb │ └── statistics_spec.rb ├── spec_helper.rb └── support ├── analyzer ├── 02_rescue_vs_respond_to.rb ├── 03_module_eval.rb ├── 06_shuffle_first_vs_sample.rb ├── 08_for_loop_vs_each.rb ├── 09_each_with_index_vs_while.rb ├── 10_map_flatten_vs_flat_map.rb ├── 11_reverse_each_vs_reverse_each.rb ├── 12_select_first_vs_detect.rb ├── 13_sort_vs_sort_by.rb ├── 14_fetch_with_argument_vs_block.rb ├── 15_keys_each_vs_each_key.rb ├── 16_hash_merge_bang_vs_hash_brackets.rb ├── 18_block_vs_symbol_to_proc.rb ├── 19_proc_call_vs_yield.rb ├── 24_gsub_vs_tr.rb ├── 25_select_last_vs_reverse_detect.rb ├── 26_getter_vs_attr_reader.rb ├── 27_setter_vs_attr_writer.rb ├── 29_include_vs_cover_on_range.rb ├── 98_misc.rb └── 99_exceptional_files.rb ├── binary_call └── simple_comparison.rb ├── file_helper.rb ├── isolated_environment.rb ├── method_call ├── method_call_on_constant.rb ├── method_call_on_integer.rb ├── method_call_on_method_call.rb ├── method_call_on_string.rb ├── method_call_on_variable.rb ├── method_call_with_a_block.rb ├── method_call_with_a_integer_argument.rb ├── method_call_with_a_regex_argument.rb ├── method_call_with_an_argument_and_a_block.rb ├── method_call_with_an_implicit_receiver.rb ├── method_call_with_an_implicit_receiver_and_no_brackets.rb ├── method_call_with_an_implicit_receiver_and_no_brackets_and_do_end.rb ├── method_call_with_equals.rb ├── method_call_with_one_argument.rb ├── method_call_with_two_arguments.rb └── method_call_without_brackets.rb ├── method_definition ├── method_with_argument_and_block.rb ├── method_with_block.rb ├── method_with_default_argument.rb ├── method_with_splat_and_block.rb ├── simple_method.rb ├── simple_method_omitted_parenthesis.rb └── simple_method_with_argument.rb ├── output └── sample_code.rb └── rescue_call ├── plain_rescue.rb ├── rescue_with_class.rb ├── rescue_with_class_and_variable.rb ├── rescue_with_multiple_classes.rb ├── rescue_with_multiple_classes_and_variable.rb └── rescue_with_variable.rb /.fasterer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/.fasterer.yml -------------------------------------------------------------------------------- /.github/workflows/ruby.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/.github/workflows/ruby.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/fasterer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/bin/fasterer -------------------------------------------------------------------------------- /fasterer.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/fasterer.gemspec -------------------------------------------------------------------------------- /lib/fasterer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer.rb -------------------------------------------------------------------------------- /lib/fasterer/analyzer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/analyzer.rb -------------------------------------------------------------------------------- /lib/fasterer/cli.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/cli.rb -------------------------------------------------------------------------------- /lib/fasterer/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/config.rb -------------------------------------------------------------------------------- /lib/fasterer/file_traverser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/file_traverser.rb -------------------------------------------------------------------------------- /lib/fasterer/method_call.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/method_call.rb -------------------------------------------------------------------------------- /lib/fasterer/method_definition.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/method_definition.rb -------------------------------------------------------------------------------- /lib/fasterer/offense.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/offense.rb -------------------------------------------------------------------------------- /lib/fasterer/offense_collector.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/offense_collector.rb -------------------------------------------------------------------------------- /lib/fasterer/painter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/painter.rb -------------------------------------------------------------------------------- /lib/fasterer/parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/parser.rb -------------------------------------------------------------------------------- /lib/fasterer/rescue_call.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/rescue_call.rb -------------------------------------------------------------------------------- /lib/fasterer/scanners/method_call_scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/scanners/method_call_scanner.rb -------------------------------------------------------------------------------- /lib/fasterer/scanners/method_definition_scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/scanners/method_definition_scanner.rb -------------------------------------------------------------------------------- /lib/fasterer/scanners/offensive.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/scanners/offensive.rb -------------------------------------------------------------------------------- /lib/fasterer/scanners/rescue_call_scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/scanners/rescue_call_scanner.rb -------------------------------------------------------------------------------- /lib/fasterer/token.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/lib/fasterer/token.rb -------------------------------------------------------------------------------- /lib/fasterer/version.rb: -------------------------------------------------------------------------------- 1 | module Fasterer 2 | VERSION = '0.11.0' 3 | end 4 | -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/02_rescue_vs_respond_to_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/02_rescue_vs_respond_to_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/03_module_eval_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/03_module_eval_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/06_shuffle_first_vs_sample_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/06_shuffle_first_vs_sample_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/08_for_loop_vs_each_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/08_for_loop_vs_each_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/09_each_with_index_vs_while_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/09_each_with_index_vs_while_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/11_reverse_each_vs_reverse_each_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/11_reverse_each_vs_reverse_each_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/13_sort_vs_sort_by_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/13_sort_vs_sort_by_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/14_fetch_with_argument_vs_block_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/14_fetch_with_argument_vs_block_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/15_keys_each_vs_each_key_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/15_keys_each_vs_each_key_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/16_hash_merge_bang_vs_hash_brackets_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/16_hash_merge_bang_vs_hash_brackets_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/19_proc_call_vs_yield_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/19_proc_call_vs_yield_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/24_gsub_vs_tr_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/24_gsub_vs_tr_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/25_select_last_vs_reverse_detect_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/25_select_last_vs_reverse_detect_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/26_getter_vs_attr_reader_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/26_getter_vs_attr_reader_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/27_setter_vs_attr_writer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/27_setter_vs_attr_writer_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/29_include_vs_cover_on_range_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/29_include_vs_cover_on_range_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/98_misc_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/98_misc_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/analyzer/99_exceptional_files_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/analyzer/99_exceptional_files_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/cli_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/cli_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/config_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/config_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/file_traverser_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/file_traverser_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/method_call_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/method_call_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/method_definition_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/method_definition_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/rescue_call_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/rescue_call_spec.rb -------------------------------------------------------------------------------- /spec/lib/fasterer/statistics_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/lib/fasterer/statistics_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/analyzer/02_rescue_vs_respond_to.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/02_rescue_vs_respond_to.rb -------------------------------------------------------------------------------- /spec/support/analyzer/03_module_eval.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/03_module_eval.rb -------------------------------------------------------------------------------- /spec/support/analyzer/06_shuffle_first_vs_sample.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/06_shuffle_first_vs_sample.rb -------------------------------------------------------------------------------- /spec/support/analyzer/08_for_loop_vs_each.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/08_for_loop_vs_each.rb -------------------------------------------------------------------------------- /spec/support/analyzer/09_each_with_index_vs_while.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/09_each_with_index_vs_while.rb -------------------------------------------------------------------------------- /spec/support/analyzer/10_map_flatten_vs_flat_map.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/10_map_flatten_vs_flat_map.rb -------------------------------------------------------------------------------- /spec/support/analyzer/11_reverse_each_vs_reverse_each.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/11_reverse_each_vs_reverse_each.rb -------------------------------------------------------------------------------- /spec/support/analyzer/12_select_first_vs_detect.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/12_select_first_vs_detect.rb -------------------------------------------------------------------------------- /spec/support/analyzer/13_sort_vs_sort_by.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/13_sort_vs_sort_by.rb -------------------------------------------------------------------------------- /spec/support/analyzer/14_fetch_with_argument_vs_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/14_fetch_with_argument_vs_block.rb -------------------------------------------------------------------------------- /spec/support/analyzer/15_keys_each_vs_each_key.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/15_keys_each_vs_each_key.rb -------------------------------------------------------------------------------- /spec/support/analyzer/16_hash_merge_bang_vs_hash_brackets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/16_hash_merge_bang_vs_hash_brackets.rb -------------------------------------------------------------------------------- /spec/support/analyzer/18_block_vs_symbol_to_proc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/18_block_vs_symbol_to_proc.rb -------------------------------------------------------------------------------- /spec/support/analyzer/19_proc_call_vs_yield.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/19_proc_call_vs_yield.rb -------------------------------------------------------------------------------- /spec/support/analyzer/24_gsub_vs_tr.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/24_gsub_vs_tr.rb -------------------------------------------------------------------------------- /spec/support/analyzer/25_select_last_vs_reverse_detect.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/25_select_last_vs_reverse_detect.rb -------------------------------------------------------------------------------- /spec/support/analyzer/26_getter_vs_attr_reader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/26_getter_vs_attr_reader.rb -------------------------------------------------------------------------------- /spec/support/analyzer/27_setter_vs_attr_writer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/27_setter_vs_attr_writer.rb -------------------------------------------------------------------------------- /spec/support/analyzer/29_include_vs_cover_on_range.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/29_include_vs_cover_on_range.rb -------------------------------------------------------------------------------- /spec/support/analyzer/98_misc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/98_misc.rb -------------------------------------------------------------------------------- /spec/support/analyzer/99_exceptional_files.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/analyzer/99_exceptional_files.rb -------------------------------------------------------------------------------- /spec/support/binary_call/simple_comparison.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/support/file_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/file_helper.rb -------------------------------------------------------------------------------- /spec/support/isolated_environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/isolated_environment.rb -------------------------------------------------------------------------------- /spec/support/method_call/method_call_on_constant.rb: -------------------------------------------------------------------------------- 1 | User.hello() 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_on_integer.rb: -------------------------------------------------------------------------------- 1 | 1.hello() 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_on_method_call.rb: -------------------------------------------------------------------------------- 1 | 1.hi(2).hello() 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_on_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_call/method_call_on_string.rb -------------------------------------------------------------------------------- /spec/support/method_call/method_call_on_variable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_call/method_call_on_variable.rb -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_a_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_call/method_call_with_a_block.rb -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_a_integer_argument.rb: -------------------------------------------------------------------------------- 1 | [].flatten(1) 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_a_regex_argument.rb: -------------------------------------------------------------------------------- 1 | {}.fetch(/.*/) 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_an_argument_and_a_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_call/method_call_with_an_argument_and_a_block.rb -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_an_implicit_receiver.rb: -------------------------------------------------------------------------------- 1 | fetch(:writing, :listening) 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets.rb: -------------------------------------------------------------------------------- 1 | fetch :writing, :listening 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets_and_do_end.rb: -------------------------------------------------------------------------------- 1 | fetch :writing do 2 | end 3 | 4 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_equals.rb: -------------------------------------------------------------------------------- 1 | downcase() == 'hombre' 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_one_argument.rb: -------------------------------------------------------------------------------- 1 | {}.fetch(:writing) 2 | -------------------------------------------------------------------------------- /spec/support/method_call/method_call_with_two_arguments.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_call/method_call_with_two_arguments.rb -------------------------------------------------------------------------------- /spec/support/method_call/method_call_without_brackets.rb: -------------------------------------------------------------------------------- 1 | {}.fetch :writing, :listening 2 | -------------------------------------------------------------------------------- /spec/support/method_definition/method_with_argument_and_block.rb: -------------------------------------------------------------------------------- 1 | def hello(name, &block) 2 | puts name 3 | end 4 | -------------------------------------------------------------------------------- /spec/support/method_definition/method_with_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_definition/method_with_block.rb -------------------------------------------------------------------------------- /spec/support/method_definition/method_with_default_argument.rb: -------------------------------------------------------------------------------- 1 | def hello(name = 'John') 2 | puts name 3 | end 4 | -------------------------------------------------------------------------------- /spec/support/method_definition/method_with_splat_and_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_definition/method_with_splat_and_block.rb -------------------------------------------------------------------------------- /spec/support/method_definition/simple_method.rb: -------------------------------------------------------------------------------- 1 | def hello() 2 | end 3 | -------------------------------------------------------------------------------- /spec/support/method_definition/simple_method_omitted_parenthesis.rb: -------------------------------------------------------------------------------- 1 | def hello 2 | end 3 | -------------------------------------------------------------------------------- /spec/support/method_definition/simple_method_with_argument.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/method_definition/simple_method_with_argument.rb -------------------------------------------------------------------------------- /spec/support/output/sample_code.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/output/sample_code.rb -------------------------------------------------------------------------------- /spec/support/rescue_call/plain_rescue.rb: -------------------------------------------------------------------------------- 1 | begin 2 | 'abakus'.to_a 3 | rescue 4 | 5 | end 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/support/rescue_call/rescue_with_class.rb: -------------------------------------------------------------------------------- 1 | begin 2 | 'abakus'.to_a 3 | rescue NoMethodError 4 | 5 | end 6 | -------------------------------------------------------------------------------- /spec/support/rescue_call/rescue_with_class_and_variable.rb: -------------------------------------------------------------------------------- 1 | begin 2 | 'abakus'.to_a 3 | rescue NoMethodError => e 4 | 5 | end 6 | -------------------------------------------------------------------------------- /spec/support/rescue_call/rescue_with_multiple_classes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/rescue_call/rescue_with_multiple_classes.rb -------------------------------------------------------------------------------- /spec/support/rescue_call/rescue_with_multiple_classes_and_variable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DamirSvrtan/fasterer/HEAD/spec/support/rescue_call/rescue_with_multiple_classes_and_variable.rb -------------------------------------------------------------------------------- /spec/support/rescue_call/rescue_with_variable.rb: -------------------------------------------------------------------------------- 1 | begin 2 | 'abakus'.to_a 3 | rescue => e 4 | 5 | end 6 | 7 | --------------------------------------------------------------------------------