Skip to content

Commit

Permalink
Make the generate script use the same rubocop config as the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
meatball133 committed Nov 11, 2024
1 parent b6d2e9e commit 98d267d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/practice/acronym/acronym_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_punctuation_without_whitespace
def test_very_long_abbreviation
skip
assert_equal 'ROTFLSHTMDCOALM',
Acronym.abbreviate('Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me')
Acronym.abbreviate('Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me')
end

def test_consecutive_delimiters
Expand Down
2 changes: 1 addition & 1 deletion generatorv2/lib/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def generate(result_path = "./exercises/practice/#{@exercise}/#{@exercise}_test.

File.write(result_path, result)
cli = RuboCop::CLI.new
cli.run(['-x', "--force-default-config", "-o", "/dev/null", result_path])
cli.run(['-x', "-c", ".rubocop.yml", "-o", "/dev/null", result_path])
end

def underscore(str)
Expand Down

0 comments on commit 98d267d

Please sign in to comment.