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

README: Update instructions for generating a new app #1223

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

stevepolitodesign
Copy link
Contributor

@stevepolitodesign stevepolitodesign commented Aug 15, 2024

Closes #1221

The release of Rails 7.2.0 introduced its own linting mechanism.

Unfortunately, this creates a conflict with our linting mechanism.

This is only relevant when running rails new with our application template.

In order to fix this, we simply require the caller pass --skip_rubocop.

A future commit could explore re-introducing the system executable to
account for our required options, but for now, this fixes the issue.

Copy link

@purinkle purinkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙋 Looks good to me. Do we need to update dotfiles?

Closes #1221

The [release of Rails 7.2.0][rails_7_2] introduced its [own linting
mechanism][rails-lint].

Unfortunately, this creates a conflict with [our linting
mechanism][suspenders-lint].

This is only relevant when running `rails new` with our [application
template][].

In order to fix this, we simply require the caller pass
`--skip_rubocop`.

A future commit could explore re-introducing the system executable to
account for our required options, but for now, this fixes the issue.

[rails_7_2]: https://guides.rubyonrails.org/v7.2/7_2_release_notes.html
[rails-lint]: https://guides.rubyonrails.org/v7.2/7_2_release_notes.html#add-omakase-rubocop-rules-by-default
[suspenders-lint]: https://github.com/thoughtbot/suspenders/blob/main/FEATURES.md#linting
[application template]: https://github.com/thoughtbot/suspenders/blob/main/lib/install/web.rb
@stevepolitodesign stevepolitodesign merged commit 77aff6a into main Aug 16, 2024
2 checks passed
@stevepolitodesign stevepolitodesign deleted the sp-1221 branch August 16, 2024 13:39
stevepolitodesign added a commit to thoughtbot/dotfiles that referenced this pull request Aug 16, 2024
This compliments a [change made to Suspenders][1] in which we require
the caller to pass `--skip-rubocop` when invoking `rails new`.

[1]: thoughtbot/suspenders#1223
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

Successfully merging this pull request may close these issues.

The recommended script to create a new app runs into a file conflict when run with Rails v7.2.0
2 participants