[openstreetmap/openstreetmap-website] Travis build failing on erblint (#2472)

Andy Allan notifications at github.com
Sun Dec 22 10:25:40 UTC 2019


I'm not sure why, but travis is failing on the erblint checks. The error messages are similar to this:

```
bundle exec erblint .
warning: parser/current is loading parser/ruby25, which recognizes
warning: 2.5.7-compliant syntax, but you are running 2.5.3.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

Linting 150 files with 12 linters...

Exception occured when processing: app/views/export/embed.html.erb
If this file cannot be processed by erb-lint, you can exclude it in your configuration file.
unrecognized cop Performance/RegexpMatch found in .erblint-rubocop20191219-5676-1lhc30m, unrecognized cop Rails/BulkChangeTable found in .erblint-rubocop20191219-5676-1lhc30m, unrecognized cop Rails/HasAndBelongsToMany found in .erblint-rubocop20191219-5676-1lhc30m, unrecognized cop Rails/HelperInstanceVariable found in .erblint-rubocop20191219-5676-1lhc30m, unrecognized cop Rails/NotNullColumn found in .erblint-rubocop20191219-5676-1lhc30m, unrecognized cop Rails/OutputSafety found in .erblint-rubocop20191219-5676-1lhc30m, unrecognized cop Rails/TimeZone found in .erblint-rubocop20191219-5676-1lhc30m
/home/travis/build/openstreetmap/openstreetmap-website/vendor/bundle/ruby/2.5.0/gems/rubocop-0.78.0/lib/rubocop/config_validator.rb:113:in `alert_about_unrecognized_cops'
/home/travis/build/openstreetmap/openstreetmap-website/vendor/bundle/ruby/2.5.0/gems/rubocop-0.78.0/lib/rubocop/config_validator.rb:44:in `validate'
/home/travis/build/openstreetmap/openstreetmap-website/vendor/bundle/ruby/2.5.0/gems/rubocop-0.78.0/lib/rubocop/config.rb:39:in `check'
/home/travis/build/openstreetmap/openstreetmap-website/vendor/bundle/ruby/2.5.0/gems/rubocop-0.78.0/lib/rubocop/config.rb:32:in `create'
/home/travis/build/openstreetmap/openstreetmap-website/vendor/bundle/ruby/2.5.0/gems/rubocop-0.78.0/lib/rubocop/config_loader.rb:54:in `load_file'
/home/travis/build/openstreetmap/openstreetmap-websit
...
```

When I run erblint locally, it prints warnings about the unrecognised cop names, but it doesn't throw errors like this.

I haven't found any bug reports, and it's not clear to me why this started occuring. Suggestions welcome!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2472
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191222/7e7462a9/attachment.html>


More information about the rails-dev mailing list