Bug#855673: rubocop: FTBFS: RuboCop::Cop::Lint::UselessAssignment when a variable is reassigned in loop body but won't be referenced either next iteration or loop condition registers an offense

Chris Lamb lamby at debian.org
Tue Feb 21 04:01:03 UTC 2017


Source: rubocop
Version: 0.47.1+dfsg-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Dear Maintainer,

rubocop fails to build from source in unstable/amd64:

  […]

  ┌──────────────────────────────────────────────────────────────────────────────┐
  │ Run tests for ruby2.3 from debian/ruby-tests.rake                            │
  └──────────────────────────────────────────────────────────────────────────────┘
  
  RUBYLIB=«BUILDDIR»/debian/rubocop/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/rubocop/usr/share/rubygems-integration/all:/home/lamby/.gem/ruby/2.3.0:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 -S rake -f debian/ruby-tests.rake
  /usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb
  Run options:
    include {:focus=>true}
    exclude {:broken=>#<Proc:./spec/spec_helper.rb:32>}
  
  All examples were filtered out; ignoring {:focus=>true}
  
  Randomized with seed 32857
  ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
  
  Pending: (Failures listed here are expected and do not affect your suite's status)
  
    1) RuboCop::Cop::Lint::UselessAssignment when a variable is reassigned in loop body but won't be referenced either next iteration or loop condition registers an offense
       # Requires an advanced logic that checks whether the return value of an operator assignment is used or not.
       Failure/Error: expect(cop.offenses.size).to eq(1)
  
         expected: 1
              got: 0
  
         (compared using ==)
       # «BUILDDIR»/spec/rubocop/cop/lint/useless_assignment_spec.rb:492:in `block (3 levels) in <top (required)>'
  
    2) RuboCop::Cop::Lint::InvalidCharacterLiteral with a non-escaped whitespace character literal registers an offense
       # Is there a way to emit this warning without syntax errors?
       Failure/Error: raise 'Error parsing example code' unless processed_source.valid_syntax?
  
       RuntimeError:
         Error parsing example code
       # «BUILDDIR»/lib/rubocop/rspec/cop_helper.rb:26:in `inspect_source'
       # «BUILDDIR»/spec/rubocop/cop/lint/invalid_character_literal_spec.rb:25:in `block (3 levels) in <top (required)>'
  
  Finished in 29.05 seconds (files took 3.72 seconds to load)
  14757 examples, 0 failures, 2 pending
  
  Randomized with seed 32857
  
  
  ┌──────────────────────────────────────────────────────────────────────────────┐
  │ dh_ruby --install finished                                                   │
  └──────────────────────────────────────────────────────────────────────────────┘
  
     dh_install -O--buildsystem=ruby
     dh_installdocs -O--buildsystem=ruby
     dh_ruby_fixdocs -O--buildsystem=ruby
     dh_installchangelogs -O--buildsystem=ruby
     dh_perl -O--buildsystem=ruby
     debian/rules override_dh_link
  make[1]: Entering directory '«BUILDDIR»'
  dh_link
  cd ./debian/rubocop/usr/lib/ruby/vendor_ruby && \
  	patch -p2 < «BUILDDIR»/debian/patches/03-modify-rubocop-homedir.diff
  patching file rubocop/config_loader.rb
  patching file rubocop/result_cache.rb
  make[1]: Leaving directory '«BUILDDIR»'
     dh_strip_nondeterminism -O--buildsystem=ruby
     dh_compress -X.rb -O--buildsystem=ruby
     dh_fixperms -O--buildsystem=ruby
     dh_installdeb -O--buildsystem=ruby
     dh_gencontrol -O--buildsystem=ruby
  dpkg-gencontrol: warning: Depends field of package rubocop: unknown substitution variable ${shlibs:Depends}
     dh_md5sums -O--buildsystem=ruby
     dh_builddeb -O--buildsystem=ruby
  dpkg-deb: building package 'rubocop' in '../rubocop_0.47.1+dfsg-1_all.deb'.
   dpkg-genbuildinfo --build=binary
   dpkg-genchanges --build=binary >../rubocop_0.47.1+dfsg-1_amd64.changes
  dpkg-genchanges: info: binary-only upload (no source code included)
   dpkg-source --after-build rubocop-0.47.1+dfsg
  dpkg-buildpackage: info: binary-only upload (no source included)

  […]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubocop.0.47.1+dfsg-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 13156 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-bugs/attachments/20170221/8c9866a0/attachment-0001.obj>


More information about the Reproducible-bugs mailing list