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

Do not run sanity check on rails generate stimulus_reflex:config #362

Conversation

RolandStuder
Copy link
Contributor

If a sanity check fails, the user gets a hint to create the configuration file with
rails generate stimulus_reflex:config, however this command will also fail because it
will also run the sanity check. Therefore we have to bypass the sanity check if
the caller is a generate_command.

Why should this be added

We should add this, as the idea of the whole sanity check is to help people. But if the command we recommend fails, we might be just causing more grief.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

@RolandStuder RolandStuder force-pushed the allow-generate-on-failed-sanity-check branch from 147a28f to 985f96e Compare November 13, 2020 01:49
@RolandStuder RolandStuder force-pushed the allow-generate-on-failed-sanity-check branch from 652cb51 to 79105f2 Compare November 13, 2020 02:11
If a sanity check fails, the user gets a hint to create the configuration file with
`rails generate stimulus_reflex:config`, however this command will also fail because it
will also run the sanity check. Therefore we have to bypass the sanity check if
the caller is a `generate_command`.

Co-authored-by: Marco Roth <marco.roth@intergga.ch>
@RolandStuder RolandStuder force-pushed the allow-generate-on-failed-sanity-check branch from 79105f2 to 0f8aecf Compare November 13, 2020 02:14
@leastbad leastbad merged commit 43fdd3b into stimulusreflex:master Nov 13, 2020
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.

3 participants