Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofix removes directives from the Gemfile #4

Open
brkn opened this issue Apr 5, 2024 · 0 comments
Open

Autofix removes directives from the Gemfile #4

brkn opened this issue Apr 5, 2024 · 0 comments

Comments

@brkn
Copy link

brkn commented Apr 5, 2024

Description

Running autocorrect bundle exec strong_version -a removes the trailing directives and comments.

Instead it deletes the require statement and whatever comment trailing after that

- gem 'rubocop', require: false # Should just add version constraint
+ gem 'rubocop', '~> 1.62'

expected result

- gem 'rubocop', require: false # Should just add version constraint
+ gem 'rubocop', '~> 1.62', require: false # Should just add version constraint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant