Skip to content

Commit

Permalink
Suppress RuboCop offense to fix broken build (#3251)
Browse files Browse the repository at this point in the history
Follow up to #3232.

This PR suppresses the following RuboCop offense.

```console
% bundle exec rubocop
(snip)

lib/webpacker/manifest.rb:108:107: C: [Correctable]
Layout/TrailingWhitespace: Trailing whitespace detected.
1. You forgot to install node packages (try `yarn install`) or are
running an incompatible version of Node
                                       ^

64 files inspected, 1 offense detected, 1 offense auto-correctable
Error: Process completed with exit code 1.
```

https://github.com/rails/webpacker/runs/4651343194
  • Loading branch information
koic authored Dec 29, 2021
1 parent f8eae42 commit 90f0db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webpacker/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def manifest_type(pack_type)
def missing_file_from_manifest_error(bundle_name)
<<-MSG
Webpacker can't find #{bundle_name} in #{config.public_manifest_path}. Possible causes:
1. You forgot to install node packages (try `yarn install`) or are running an incompatible version of Node
1. You forgot to install node packages (try `yarn install`) or are running an incompatible version of Node
2. Your app has code with a non-standard extension (like a `.jsx` file) but the extension is not in the `extensions` config in `config/webpacker.yml`
3. You have set compile: false (see `config/webpacker.yml`) for this environment
(unless you are using the `webpack -w` or the webpack-dev-server, in which case maybe you aren't running the dev server in the background?)
Expand Down

0 comments on commit 90f0db7

Please sign in to comment.