Skip to content

Instantly share code, notes, and snippets.

@TimMoore
Created May 12, 2014 20:02
Show Gist options
  • Save TimMoore/b22c4ed727a667f73da6 to your computer and use it in GitHub Desktop.
Save TimMoore/b22c4ed727a667f73da6 to your computer and use it in GitHub Desktop.
Rubocop error
$ rubocop -R -d
For /Users/timm/projects/sol: configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/default.yml
Inheriting configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/enabled.yml
Inheriting configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/disabled.yml
Inspecting 39 files
Scanning /Users/timm/projects/sol/app/controllers/application_controller.rb
.Scanning /Users/timm/projects/sol/app/controllers/pois_controller.rb
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/controllers/pois_controller.rb.
undefined method `children' for nil:NilClass
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:68:in `delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:61:in `trivial_delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:39:in `check'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/mixin/check_methods.rb:9:in `on_def'
(eval):5:in `block (2 levels) in on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:98:in `with_cop_error_handling'
(eval):4:in `block in on_def'
(eval):2:in `each'
(eval):2:in `on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_begin'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_class'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:58:in `investigate'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/team.rb:36:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:101:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:69:in `block in process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `loop'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:23:in `block in process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `each'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cli.rb:31:in `run'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:14:in `block in <top (required)>'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:13:in `<top (required)>'
./bin/rubocop:16:in `load'
./bin/rubocop:16:in `<main>'
CScanning /Users/timm/projects/sol/app/controllers/root_controller.rb
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/controllers/root_controller.rb.
undefined method `children' for nil:NilClass
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:68:in `delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:61:in `trivial_delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:39:in `check'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/mixin/check_methods.rb:9:in `on_def'
(eval):5:in `block (2 levels) in on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:98:in `with_cop_error_handling'
(eval):4:in `block in on_def'
(eval):2:in `each'
(eval):2:in `on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_begin'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_class'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:58:in `investigate'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/team.rb:36:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:101:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:69:in `block in process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `loop'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:23:in `block in process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `each'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cli.rb:31:in `run'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:14:in `block in <top (required)>'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:13:in `<top (required)>'
./bin/rubocop:16:in `load'
./bin/rubocop:16:in `<main>'
CScanning /Users/timm/projects/sol/app/models/link.rb
Default configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/default.yml
Inheriting configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/enabled.yml
Inheriting configuration from /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/config/disabled.yml
CScanning /Users/timm/projects/sol/app/models/poi.rb
CScanning /Users/timm/projects/sol/app/repositories/pois_repository.rb
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/repositories/pois_repository.rb.
undefined method `children' for :@repository:Symbol
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:68:in `delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:61:in `trivial_delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:39:in `check'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/mixin/check_methods.rb:9:in `on_def'
(eval):5:in `block (2 levels) in on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:98:in `with_cop_error_handling'
(eval):4:in `block in on_def'
(eval):2:in `each'
(eval):2:in `on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_begin'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_class'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:58:in `investigate'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/team.rb:36:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:101:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:69:in `block in process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `loop'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:23:in `block in process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `each'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cli.rb:31:in `run'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:14:in `block in <top (required)>'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:13:in `<top (required)>'
./bin/rubocop:16:in `load'
./bin/rubocop:16:in `<main>'
CScanning /Users/timm/projects/sol/app/repositories/repository.rb
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/repositories/repository.rb.
undefined method `children' for :@datastore:Symbol
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:68:in `delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:61:in `trivial_delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:39:in `check'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/mixin/check_methods.rb:9:in `on_def'
(eval):5:in `block (2 levels) in on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:98:in `with_cop_error_handling'
(eval):4:in `block in on_def'
(eval):2:in `each'
(eval):2:in `on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_begin'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_class'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:58:in `investigate'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/team.rb:36:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:101:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:69:in `block in process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `loop'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:23:in `block in process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `each'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cli.rb:31:in `run'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:14:in `block in <top (required)>'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:13:in `<top (required)>'
./bin/rubocop:16:in `load'
./bin/rubocop:16:in `<main>'
CScanning /Users/timm/projects/sol/app/serializers/link_collection_serializer.rb
CScanning /Users/timm/projects/sol/app/serializers/link_serializer.rb
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/serializers/link_serializer.rb.
undefined method `children' for :@link:Symbol
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:68:in `delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:61:in `trivial_delegate?'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/rails/delegate.rb:39:in `check'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/mixin/check_methods.rb:9:in `on_def'
(eval):5:in `block (2 levels) in on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:98:in `with_cop_error_handling'
(eval):4:in `block in on_def'
(eval):2:in `each'
(eval):2:in `on_def'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_begin'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:255:in `block in process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `map'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:254:in `process_all'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/parser-2.1.9/lib/parser/ast/processor.rb:9:in `process_regular_node'
(eval):9:in `on_class'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/commissioner.rb:58:in `investigate'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cop/team.rb:36:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:101:in `inspect_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:69:in `block in process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `loop'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:67:in `process_file'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:23:in `block in process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `each'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/file_inspector.rb:21:in `process_files'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/lib/rubocop/cli.rb:31:in `run'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:14:in `block in <top (required)>'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rubocop-0.21.0/bin/rubocop:13:in `<top (required)>'
./bin/rubocop:16:in `load'
./bin/rubocop:16:in `<main>'
CScanning /Users/timm/projects/sol/app/serializers/poi_collection_serializer.rb
CScanning /Users/timm/projects/sol/app/serializers/poi_serializer.rb
CScanning /Users/timm/projects/sol/bin/bundle
.Scanning /Users/timm/projects/sol/bin/rails
WScanning /Users/timm/projects/sol/bin/rake
WScanning /Users/timm/projects/sol/bin/rubocop
CScanning /Users/timm/projects/sol/bin/spring
WScanning /Users/timm/projects/sol/config/application.rb
CScanning /Users/timm/projects/sol/config/boot.rb
.Scanning /Users/timm/projects/sol/config/environment.rb
.Scanning /Users/timm/projects/sol/config/environments/development.rb
CScanning /Users/timm/projects/sol/config/environments/production.rb
CScanning /Users/timm/projects/sol/config/environments/test.rb
CScanning /Users/timm/projects/sol/config/initializers/mime_types.rb
WScanning /Users/timm/projects/sol/config/initializers/wrap_parameters.rb
.Scanning /Users/timm/projects/sol/config/routes.rb
.Scanning /Users/timm/projects/sol/db/seeds.rb
CScanning /Users/timm/projects/sol/Rakefile
CScanning /Users/timm/projects/sol/spec/controllers/pois_controller_spec.rb
CScanning /Users/timm/projects/sol/spec/controllers/root_controller_spec.rb
CScanning /Users/timm/projects/sol/spec/integration/poi_integration_spec.rb
CScanning /Users/timm/projects/sol/spec/integration/root_integration_spec.rb
CScanning /Users/timm/projects/sol/spec/repositories/pois_repository_spec.rb
CScanning /Users/timm/projects/sol/spec/repositories/repository_spec.rb
CScanning /Users/timm/projects/sol/spec/serializers/link_collection_serializer_spec.rb
CScanning /Users/timm/projects/sol/spec/serializers/link_serializer_spec.rb
CScanning /Users/timm/projects/sol/spec/serializers/poi_collection_serializer_spec.rb
CScanning /Users/timm/projects/sol/spec/serializers/poi_serializer_spec.rb
CScanning /Users/timm/projects/sol/spec/spec_helper.rb
CScanning /Users/timm/projects/sol/spec/support/shared_examples/siren_response.rb
C
Offenses:
app/controllers/pois_controller.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class PoisController < ApplicationController
^^^^^
app/controllers/pois_controller.rb:2:1: C: EmptyLinesAroundBody: Extra empty line detected at body beginning.
app/controllers/pois_controller.rb:21:1: C: EmptyLinesAroundBody: Extra empty line detected at body end.
app/controllers/root_controller.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class RootController < ApplicationController
^^^^^
app/controllers/root_controller.rb:8:21: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
Link.new(rel: %w[self], href: root_url),
^^^^^^^^
app/controllers/root_controller.rb:9:21: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
Link.new(rel: %w[pois], href: pois_url)
^^^^^^^^
app/models/link.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class Link
^^^^^
app/models/poi.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class Poi
^^^^^
app/repositories/pois_repository.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class PoisRepository
^^^^^
app/repositories/pois_repository.rb:2:1: C: EmptyLinesAroundBody: Extra empty line detected at body beginning.
app/repositories/pois_repository.rb:9:12: C: MethodDefParentheses: Use def with parentheses when there are parameters.
def find **options
^^^^^^^^^
app/repositories/pois_repository.rb:14:38: C: SpaceInsideBlockBraces: Space between { and | missing.
repository.fetch(:pois).select {|poi| options[:uuid] == poi.uuid }
^^
app/repositories/repository.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class Repository
^^^^^
app/repositories/repository.rb:2:1: C: EmptyLinesAroundBody: Extra empty line detected at body beginning.
app/repositories/repository.rb:4:27: C: EmptyLiteral: Use array literal [] instead of Array.new.
@datastore = Hash.new(Array.new).merge(
^^^^^^^^^
app/repositories/repository.rb:25:1: C: EmptyLinesAroundBody: Extra empty line detected at body end.
app/serializers/link_collection_serializer.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class LinkCollectionSerializer
^^^^^
app/serializers/link_collection_serializer.rb:2:1: C: EmptyLinesAroundBody: Extra empty line detected at body beginning.
app/serializers/link_collection_serializer.rb:11:14: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
class: %w[root],
^^^^^^^^
app/serializers/link_serializer.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class LinkSerializer
^^^^^
app/serializers/poi_collection_serializer.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class PoiCollectionSerializer
^^^^^
app/serializers/poi_collection_serializer.rb:2:1: C: EmptyLinesAroundBody: Extra empty line detected at body beginning.
app/serializers/poi_collection_serializer.rb:12:14: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
class: %w[pois collection],
^^^^^^^^^^^^^^^^^^^
app/serializers/poi_serializer.rb:1:1: C: Documentation: Missing top-level class documentation comment.
class PoiSerializer
^^^^^
app/serializers/poi_serializer.rb:9:14: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
class: %w[poi],
^^^^^^^
app/serializers/poi_serializer.rb:11:25: C: TrailingComma: Avoid comma after the last item of a hash.
title: poi.title,
^
app/serializers/poi_serializer.rb:14:16: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
{ rel: %w[self], href: url_resolver.poi_url(poi.uuid) }
^^^^^^^^
app/serializers/poi_serializer.rb:15:8: C: TrailingComma: Avoid comma after the last item of a hash.
],
^
bin/rails:3:25: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
load File.expand_path("../spring", __FILE__)
^^^^^^^^^^^
bin/rails:4:1: W: HandleExceptions: Do not suppress exceptions.
rescue LoadError
^^^^^^^^^^^^^^^^
bin/rake:3:25: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
load File.expand_path("../spring", __FILE__)
^^^^^^^^^^^
bin/rake:4:1: W: HandleExceptions: Do not suppress exceptions.
rescue LoadError
^^^^^^^^^^^^^^^^
bin/rubocop:10:44: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
^^^^^^^^^^^^^^^
bin/rubocop:11:3: C: AlignParameters: Align the parameters of a method call if they span more than one line.
Pathname.new(__FILE__).realpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bin/spring:7:11: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "rubygems"
^^^^^^^^^^
bin/spring:8:11: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "bundler"
^^^^^^^^^
bin/spring:10:12: W: AssignmentInCondition: Assignment in condition - you probably meant to use ==.
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
^
bin/spring:10:80: C: LineLength: Line is too long. [88/79]
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
^^^^^^^^^
bin/spring:11:9: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
^^^^^^^^^^
bin/spring:11:80: C: LineLength: Line is too long. [88/79]
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
^^^^^^^^^
bin/spring:12:9: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV["GEM_HOME"] = ""
^^^^^^^^^^
bin/spring:12:23: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV["GEM_HOME"] = ""
^^
bin/spring:15:9: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
gem "spring", match[1]
^^^^^^^^
bin/spring:16:13: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "spring/binstub"
^^^^^^^^^^^^^^^^
config/application.rb:12:80: C: LineLength: Line is too long. [82/79]
# Settings in config/environments/* take precedence over those specified here.
^^^
config/application.rb:16:80: C: LineLength: Line is too long. [99/79]
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
^^^^^^^^^^^^^^^^^^^^
config/application.rb:17:80: C: LineLength: Line is too long. [89/79]
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
^^^^^^^^^^
config/application.rb:20:80: C: LineLength: Line is too long. [98/79]
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
^^^^^^^^^^^^^^^^^^^
config/application.rb:21:80: C: LineLength: Line is too long. [87/79]
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
^^^^^^^^
config/environments/development.rb:2:80: C: LineLength: Line is too long. [85/79]
# Settings specified here will take precedence over those in config/application.rb.
^^^^^^
config/environments/production.rb:2:80: C: LineLength: Line is too long. [85/79]
# Settings specified here will take precedence over those in config/application.rb.
^^^^^^
config/environments/production.rb:19:80: C: LineLength: Line is too long. [104/79]
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
^^^^^^^^^^^^^^^^^^^^^^^^^
config/environments/production.rb:42:80: C: LineLength: Line is too long. [96/79]
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
^^^^^^^^^^^^^^^^^
config/environments/production.rb:46:80: C: LineLength: Line is too long. [110/79]
config.paths['log'] = File.expand_path File.join((ENV['RAILS_LOG_PATH'] || './log'), "production.log")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/environments/production.rb:46:94: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
config.paths['log'] = File.expand_path File.join((ENV['RAILS_LOG_PATH'] || './log'), "production.log")
^^^^^^^^^^^^^^^^
config/environments/production.rb:60:80: C: LineLength: Line is too long. [80/79]
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
^
config/environments/production.rb:64:80: C: LineLength: Line is too long. [95/79]
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
^^^^^^^^^^^^^^^^
config/environments/production.rb:68:80: C: LineLength: Line is too long. [100/79]
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
^^^^^^^^^^^^^^^^^^^^^
config/environments/test.rb:2:80: C: LineLength: Line is too long. [85/79]
# Settings specified here will take precedence over those in config/application.rb.
^^^^^^
config/initializers/mime_types.rb:3:49: W: UnusedBlockArgument: Unused block argument - options. If it's necessary, use _ or _options as an argument name to indicate that it won't be used.
ActionController::Renderers.add :siren do |obj, options|
^^^^^^^
config/initializers/mime_types.rb:4:33: C: ColonMethodCall: Do not use :: for method calls.
self.content_type = Mime::Type::lookup_by_extension :siren
^^
db/seeds.rb:1:80: C: LineLength: Line is too long. [103/79]
# This file should contain all the record creation needed to seed the database with its default values.
^^^^^^^^^^^^^^^^^^^^^^^^
db/seeds.rb:2:80: C: LineLength: Line is too long. [96/79]
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
^^^^^^^^^^^^^^^^^
Rakefile:2:80: C: LineLength: Line is too long. [90/79]
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
^^^^^^^^^^^
spec/controllers/pois_controller_spec.rb:20:80: C: LineLength: Line is too long. [92/79]
expect(PoiCollectionSerializer).to have_received(:new).with([], url_resolver: subject)
^^^^^^^^^^^^^
spec/controllers/pois_controller_spec.rb:29:80: C: LineLength: Line is too long. [81/79]
allow(repository).to receive(:find).with(uuid: '1234abcd').and_return [poi]
^^
spec/controllers/pois_controller_spec.rb:40:80: C: LineLength: Line is too long. [83/79]
expect(PoiSerializer).to have_received(:new).with(poi, url_resolver: subject)
^^^^
spec/controllers/root_controller_spec.rb:9:80: C: LineLength: Line is too long. [86/79]
expect(LinkCollectionSerializer).to have_received(:new).with(instance_of(Array))
^^^^^^^
spec/integration/poi_integration_spec.rb:22:80: C: LineLength: Line is too long. [83/79]
{ "rel": [ "self" ], "href": "http://www.example.com/pois/1234abce" }
^^^^
spec/integration/poi_integration_spec.rb:31:80: C: LineLength: Line is too long. [83/79]
{ "rel": [ "self" ], "href": "http://www.example.com/pois/1234abcd" }
^^^^
spec/integration/root_integration_spec.rb:11:80: C: LineLength: Line is too long. [82/79]
it 'returns a Siren representation containing links to top-level resources' do
^^^
spec/repositories/pois_repository_spec.rb:28:32: C: BracesAroundHashParameters: Redundant curly braces around a hash parameter.
expect(-> { subject.find({ foo: :bar }) }).not_to raise_error
^^^^^^^^^^^^^
spec/repositories/repository_spec.rb:29:18: C: SpaceInsideBlockBraces: Space between { and | missing.
items.each {|item| subject.store(namespace, item) }
^^
spec/serializers/link_collection_serializer_spec.rb:10:20: C: SpaceInsideBrackets: Space inside square brackets detected.
let(:links) { [ link ] }
^
spec/serializers/link_collection_serializer_spec.rb:10:25: C: SpaceInsideBrackets: Space inside square brackets detected.
let(:links) { [ link ] }
^
spec/serializers/link_collection_serializer_spec.rb:11:80: C: LineLength: Line is too long. [82/79]
let(:link_serializer_class) { double('LinkSerializer', new: serialized_link) }
^^^
spec/serializers/link_collection_serializer_spec.rb:17:47: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
expect(serialized_result[:class]).to eq %w[root]
^^^^^^^^
spec/serializers/link_collection_serializer_spec.rb:22:80: C: LineLength: Line is too long. [89/79]
allow(link_collection_serializer).to receive(:serialize_links) { serialized_links }
^^^^^^^^^^
spec/serializers/link_serializer_spec.rb:8:30: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
let(:link) { Link.new(rel: %w[somerel], href: '/somehref') }
^^^^^^^^^^^
spec/serializers/link_serializer_spec.rb:14:34: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
expect(result[:rel]).to eq %w[somerel]
^^^^^^^^^^^
spec/serializers/poi_collection_serializer_spec.rb:10:19: C: SpaceInsideBrackets: Space inside square brackets detected.
let(:pois) { [ poi ] }
^
spec/serializers/poi_collection_serializer_spec.rb:10:23: C: SpaceInsideBrackets: Space inside square brackets detected.
let(:pois) { [ poi ] }
^
spec/serializers/poi_collection_serializer_spec.rb:19:36: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
expect(result[:class]).to eq %w[pois collection]
^^^^^^^^^^^^^^^^^^^
spec/serializers/poi_collection_serializer_spec.rb:24:80: C: LineLength: Line is too long. [86/79]
allow(poi_collection_serializer).to receive(:serialize_pois) { serialized_pois }
^^^^^^^
spec/serializers/poi_collection_serializer_spec.rb:30:80: C: LineLength: Line is too long. [80/79]
expect(poi_serializer_class).to have_received(:new).with(poi, any_options)
^
spec/serializers/poi_serializer_spec.rb:15:36: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
expect(result[:class]).to eq %w[poi]
^^^^^^^
spec/serializers/poi_serializer_spec.rb:24:41: C: BracesAroundHashParameters: Redundant curly braces around a hash parameter.
expect(result[:links]).to include({ rel: %w[self], href: '/pois/12345' })
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/serializers/poi_serializer_spec.rb:24:48: C: PercentLiteralDelimiters: %w-literals should be delimited by ( and )
expect(result[:links]).to include({ rel: %w[self], href: '/pois/12345' })
^^^^^^^^
spec/spec_helper.rb:3:9: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "codeclimate-test-reporter"
^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/spec_helper.rb:6:5: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
ENV["RAILS_ENV"] ||= 'test'
^^^^^^^^^^^
spec/spec_helper.rb:7:26: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
require File.expand_path("../../config/environment", __FILE__)
^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/spec_helper.rb:13:21: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
^^^^^^^^^^^^^^^^^^^^^^
spec/spec_helper.rb:25:18: C: StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
config.order = "random"
^^^^^^^^
spec/support/shared_examples/siren_response.rb:3:80: C: LineLength: Line is too long. [87/79]
expect(response.headers['Content-Type']).to start_with 'application/vnd.siren+json'
^^^^^^^^
39 files inspected, 94 offenses detected
5 errors occurred:
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/controllers/pois_controller.rb.
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/controllers/root_controller.rb.
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/repositories/pois_repository.rb.
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/repositories/repository.rb.
An error occurred while Delegate cop was inspecting /Users/timm/projects/sol/app/serializers/link_serializer.rb.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
Mention the following information in the issue report:
0.21.0 (using Parser 2.1.9, running on ruby 2.1.1 x86_64-darwin13.0)
Finished in 0.769475 seconds
(timm) (14:59:06) ~/projects/sol [rubocop] 'Ben Galvin + Tim Moore' 2.1.1p76
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment