├── .appends └── .github │ └── labels.yml ├── .dockerignore ├── .github ├── CODEOWNERS ├── dependabot.yml ├── labels.yml └── workflows │ ├── deploy.yml │ ├── pause-community-contributions.yml │ ├── ping-cross-track-maintainers-team.yml │ ├── rubocop.yml │ ├── sync-labels.yml │ └── tests.yml ├── .gitignore ├── .rubocop.yml ├── .ruby-version ├── CODE_OF_CONDUCT.md ├── Dockerfile ├── Gemfile ├── Gemfile.lock ├── LICENCE ├── README.md ├── Rakefile ├── bin ├── rubocop-quick ├── run-in-docker.sh ├── run-tests-in-docker.sh ├── run-tests.sh ├── run.rb └── run.sh ├── lib ├── analyze_solution.rb ├── analyzer.rb ├── analyzers │ ├── acronym │ │ ├── analyze.rb │ │ └── representation.rb │ ├── exercise_analyzer.rb │ ├── high-scores │ │ ├── analyze.rb │ │ └── representation.rb │ ├── leap │ │ ├── analyze.rb │ │ └── representation.rb │ ├── solution_representation.rb │ └── two_fer │ │ ├── analyze.rb │ │ └── representation.rb └── generic │ ├── extract_instance_method.rb │ ├── extract_module_method.rb │ ├── extract_module_or_class.rb │ ├── extract_nodes.rb │ └── helpers.rb ├── package.json ├── scripts ├── extract_first_refer_to_mentor.rb ├── generate_fixture_stats.rb └── manual_test.rb ├── test ├── analyzer_test.rb ├── exercises │ ├── acronym_test.rb │ ├── high_scores_test.rb │ ├── leap_test.rb │ └── two_fer_test.rb ├── generic │ ├── extract_instance_method_test.rb │ ├── extract_module_method_test.rb │ ├── extract_module_or_class_test.rb │ └── helpers_test.rb └── test_helper.rb ├── tests ├── acronym │ ├── lvar_name_not_tightly_coupled │ │ ├── acronym.rb │ │ └── expected_analysis.json │ ├── method_chaining_passes │ │ ├── acronym.rb │ │ └── expected_analysis.json │ ├── method_chaining_with_block_syntax_passes_with_comment │ │ ├── acronym.rb │ │ └── expected_analysis.json │ ├── method_chaining_with_block_syntax_with_arbitrary_arg_passes │ │ ├── acronym.rb │ │ └── expected_analysis.json │ ├── module_method_passes │ │ ├── acronym.rb │ │ └── expected_analysis.json │ ├── refers_to_mentor_with_method_not_matching │ │ ├── acronym.rb │ │ └── expected_analysis.json │ ├── refers_to_mentor_with_random_method_body │ │ ├── acronym.rb │ │ └── expected_analysis.json │ ├── scan_with_any_regex_passes │ │ ├── acronym.rb │ │ └── expected_analysis.json │ └── split_with_any_regex_passes │ │ ├── acronym.rb │ │ └── expected_analysis.json └── two-fer │ ├── conditional_as_boolean │ ├── expected_analysis.json │ └── two_fer.rb │ ├── conditional_with_brackets │ ├── expected_analysis.json │ └── two_fer.rb │ ├── conditional_with_nil_reversed │ ├── expected_analysis.json │ └── two_fer.rb │ ├── conditional_with_string │ ├── expected_analysis.json │ └── two_fer.rb │ ├── different_method_value_fails │ ├── expected_analysis.json │ └── two_fer.rb │ ├── different_module_name_fails │ ├── expected_analysis.json │ └── two_fer.rb │ ├── explit_return │ ├── expected_analysis.json │ └── two_fer.rb │ ├── incorrect_indentation_1 │ ├── expected_analysis.json │ └── two_fer.rb │ ├── incorrect_indentation_2 │ ├── expected_analysis.json │ └── two_fer.rb │ ├── incorrect_indentation_3 │ ├── expected_analysis.json │ └── two_fer.rb │ ├── interpolated_ternary │ ├── expected_analysis.json │ └── two_fer.rb │ ├── kernel_format │ ├── expected_analysis.json │ └── two_fer.rb │ ├── missing_default_value_fails │ ├── expected_analysis.json │ └── two_fer.rb │ ├── missing_param │ ├── expected_analysis.json │ └── two_fer.rb │ ├── reassigned_param │ ├── expected_analysis.json │ └── two_fer.rb │ ├── reassigned_param_using_conditional │ ├── expected_analysis.json │ └── two_fer.rb │ ├── simple_class_passes │ ├── expected_analysis.json │ └── two_fer.rb │ ├── simple_module_passes │ ├── expected_analysis.json │ └── two_fer.rb │ ├── simple_module_with_bookkeeping_passes │ ├── expected_analysis.json │ └── two_fer.rb │ ├── splat_fails │ ├── expected_analysis.json │ └── two_fer.rb │ ├── string_concatenation │ ├── expected_analysis.json │ └── two_fer.rb │ ├── string_format │ ├── expected_analysis.json │ └── two_fer.rb │ ├── string_interpolation_passes │ ├── expected_analysis.json │ └── two_fer.rb │ └── unknown_solution │ ├── expected_analysis.json │ └── two_fer.rb └── yarn.lock /.appends/.github/labels.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.appends/.github/labels.yml -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @exercism/guardians 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/labels.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/labels.yml -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/pause-community-contributions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/workflows/pause-community-contributions.yml -------------------------------------------------------------------------------- /.github/workflows/ping-cross-track-maintainers-team.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/workflows/ping-cross-track-maintainers-team.yml -------------------------------------------------------------------------------- /.github/workflows/rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/workflows/rubocop.yml -------------------------------------------------------------------------------- /.github/workflows/sync-labels.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/workflows/sync-labels.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-3.3.0 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/Dockerfile -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/LICENCE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/rubocop-quick: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/bin/rubocop-quick -------------------------------------------------------------------------------- /bin/run-in-docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/bin/run-in-docker.sh -------------------------------------------------------------------------------- /bin/run-tests-in-docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/bin/run-tests-in-docker.sh -------------------------------------------------------------------------------- /bin/run-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/bin/run-tests.sh -------------------------------------------------------------------------------- /bin/run.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/bin/run.rb -------------------------------------------------------------------------------- /bin/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/bin/run.sh -------------------------------------------------------------------------------- /lib/analyze_solution.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyze_solution.rb -------------------------------------------------------------------------------- /lib/analyzer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzer.rb -------------------------------------------------------------------------------- /lib/analyzers/acronym/analyze.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/acronym/analyze.rb -------------------------------------------------------------------------------- /lib/analyzers/acronym/representation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/acronym/representation.rb -------------------------------------------------------------------------------- /lib/analyzers/exercise_analyzer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/exercise_analyzer.rb -------------------------------------------------------------------------------- /lib/analyzers/high-scores/analyze.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/high-scores/analyze.rb -------------------------------------------------------------------------------- /lib/analyzers/high-scores/representation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/high-scores/representation.rb -------------------------------------------------------------------------------- /lib/analyzers/leap/analyze.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/leap/analyze.rb -------------------------------------------------------------------------------- /lib/analyzers/leap/representation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/leap/representation.rb -------------------------------------------------------------------------------- /lib/analyzers/solution_representation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/solution_representation.rb -------------------------------------------------------------------------------- /lib/analyzers/two_fer/analyze.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/two_fer/analyze.rb -------------------------------------------------------------------------------- /lib/analyzers/two_fer/representation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/analyzers/two_fer/representation.rb -------------------------------------------------------------------------------- /lib/generic/extract_instance_method.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/generic/extract_instance_method.rb -------------------------------------------------------------------------------- /lib/generic/extract_module_method.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/generic/extract_module_method.rb -------------------------------------------------------------------------------- /lib/generic/extract_module_or_class.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/generic/extract_module_or_class.rb -------------------------------------------------------------------------------- /lib/generic/extract_nodes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/generic/extract_nodes.rb -------------------------------------------------------------------------------- /lib/generic/helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/lib/generic/helpers.rb -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/package.json -------------------------------------------------------------------------------- /scripts/extract_first_refer_to_mentor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/scripts/extract_first_refer_to_mentor.rb -------------------------------------------------------------------------------- /scripts/generate_fixture_stats.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/scripts/generate_fixture_stats.rb -------------------------------------------------------------------------------- /scripts/manual_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/scripts/manual_test.rb -------------------------------------------------------------------------------- /test/analyzer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/analyzer_test.rb -------------------------------------------------------------------------------- /test/exercises/acronym_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/exercises/acronym_test.rb -------------------------------------------------------------------------------- /test/exercises/high_scores_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/exercises/high_scores_test.rb -------------------------------------------------------------------------------- /test/exercises/leap_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/exercises/leap_test.rb -------------------------------------------------------------------------------- /test/exercises/two_fer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/exercises/two_fer_test.rb -------------------------------------------------------------------------------- /test/generic/extract_instance_method_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/generic/extract_instance_method_test.rb -------------------------------------------------------------------------------- /test/generic/extract_module_method_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/generic/extract_module_method_test.rb -------------------------------------------------------------------------------- /test/generic/extract_module_or_class_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/generic/extract_module_or_class_test.rb -------------------------------------------------------------------------------- /test/generic/helpers_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/generic/helpers_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /tests/acronym/lvar_name_not_tightly_coupled/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/lvar_name_not_tightly_coupled/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/lvar_name_not_tightly_coupled/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"approve","comments":[]} 2 | -------------------------------------------------------------------------------- /tests/acronym/method_chaining_passes/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/method_chaining_passes/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/method_chaining_passes/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"approve","comments":[]} 2 | -------------------------------------------------------------------------------- /tests/acronym/method_chaining_with_block_syntax_passes_with_comment/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/method_chaining_with_block_syntax_passes_with_comment/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/method_chaining_with_block_syntax_passes_with_comment/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"approve","comments":["ruby.acronym.block_syntax.shorthand"]} 2 | -------------------------------------------------------------------------------- /tests/acronym/method_chaining_with_block_syntax_with_arbitrary_arg_passes/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/method_chaining_with_block_syntax_with_arbitrary_arg_passes/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/method_chaining_with_block_syntax_with_arbitrary_arg_passes/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"approve","comments":["ruby.acronym.block_syntax.shorthand"]} 2 | -------------------------------------------------------------------------------- /tests/acronym/module_method_passes/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/module_method_passes/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/module_method_passes/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"approve","comments":[]} 2 | -------------------------------------------------------------------------------- /tests/acronym/refers_to_mentor_with_method_not_matching/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/refers_to_mentor_with_method_not_matching/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/refers_to_mentor_with_method_not_matching/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/refers_to_mentor_with_method_not_matching/expected_analysis.json -------------------------------------------------------------------------------- /tests/acronym/refers_to_mentor_with_random_method_body/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/refers_to_mentor_with_random_method_body/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/refers_to_mentor_with_random_method_body/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/refers_to_mentor_with_random_method_body/expected_analysis.json -------------------------------------------------------------------------------- /tests/acronym/scan_with_any_regex_passes/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/scan_with_any_regex_passes/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/scan_with_any_regex_passes/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"approve","comments":[]} 2 | -------------------------------------------------------------------------------- /tests/acronym/split_with_any_regex_passes/acronym.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/acronym/split_with_any_regex_passes/acronym.rb -------------------------------------------------------------------------------- /tests/acronym/split_with_any_regex_passes/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"approve","comments":[]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/conditional_as_boolean/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.incorrect_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/conditional_as_boolean/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/conditional_as_boolean/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/conditional_with_brackets/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.incorrect_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/conditional_with_brackets/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/conditional_with_brackets/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/conditional_with_nil_reversed/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.incorrect_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/conditional_with_nil_reversed/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/conditional_with_nil_reversed/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/conditional_with_string/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.incorrect_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/conditional_with_string/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/conditional_with_string/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/different_method_value_fails/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.general.no_target_method"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/different_method_value_fails/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/different_method_value_fails/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/different_module_name_fails/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.general.no_target_module"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/different_module_name_fails/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/different_module_name_fails/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/explit_return/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.general.explicit_return"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/explit_return/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/explit_return/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/incorrect_indentation_1/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/incorrect_indentation_1/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/incorrect_indentation_1/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/incorrect_indentation_1/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/incorrect_indentation_2/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/incorrect_indentation_2/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/incorrect_indentation_2/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/incorrect_indentation_2/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/incorrect_indentation_3/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/incorrect_indentation_3/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/incorrect_indentation_3/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/incorrect_indentation_3/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/interpolated_ternary/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.incorrect_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/interpolated_ternary/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/interpolated_ternary/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/kernel_format/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/kernel_format/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/kernel_format/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/kernel_format/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/missing_default_value_fails/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.missing_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/missing_default_value_fails/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/missing_default_value_fails/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/missing_param/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.missing_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/missing_param/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/missing_param/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/reassigned_param/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.reassigning_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/reassigned_param/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/reassigned_param/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/reassigned_param_using_conditional/expected_analysis.json: -------------------------------------------------------------------------------- 1 | {"status":"disapprove","comments":["ruby.two-fer.incorrect_default_param"]} 2 | -------------------------------------------------------------------------------- /tests/two-fer/reassigned_param_using_conditional/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/reassigned_param_using_conditional/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/simple_class_passes/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/simple_class_passes/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/simple_class_passes/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/simple_class_passes/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/simple_module_passes/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/simple_module_passes/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/simple_module_passes/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/simple_module_passes/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/simple_module_with_bookkeeping_passes/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/simple_module_with_bookkeeping_passes/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/simple_module_with_bookkeeping_passes/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/simple_module_with_bookkeeping_passes/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/splat_fails/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/splat_fails/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/splat_fails/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/splat_fails/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/string_concatenation/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/string_concatenation/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/string_concatenation/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/string_concatenation/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/string_format/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/string_format/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/string_format/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/string_format/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/string_interpolation_passes/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/string_interpolation_passes/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/string_interpolation_passes/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/string_interpolation_passes/two_fer.rb -------------------------------------------------------------------------------- /tests/two-fer/unknown_solution/expected_analysis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/unknown_solution/expected_analysis.json -------------------------------------------------------------------------------- /tests/two-fer/unknown_solution/two_fer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/tests/two-fer/unknown_solution/two_fer.rb -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exercism/ruby-analyzer/HEAD/yarn.lock --------------------------------------------------------------------------------