Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7352

Re: Static analysis – Unused method return value and method!() return values

From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.ruby
Subject Re: Static analysis – Unused method return value and method!() return values
Date 2017-05-15 08:19 +0200
Message-ID <ensvioFtiqpU1@mid.individual.net> (permalink)
References <of9it5$5g8$1@dont-email.me>

Show all headers | View raw


On 14.05.2017 14:38, Stanimir Stamenkov wrote:

> I've tried RuboCop and RubyCritic but they don't seem to flag the given
> usages as problems.  Is there another tool to help with this, or is
> there specific configuration to any of the two mentioned which would
> trigger the intended warnings?

This is hard to do correct as it requires knowledge about how a method 
works.  At best, this would only be a rough guideline.  It starts by 
reliably detecting the class of the receiver.

Kind regards

	robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Static analysis – Unused method return value and method!() return values Stanimir Stamenkov <s7an10@netscape.net> - 2017-05-14 15:38 +0300
  Re: Static analysis – Unused method return value and method!() return values Robert Klemme <shortcutter@googlemail.com> - 2017-05-15 08:19 +0200
    Re: Static analysis – Unused method return value and method!() return values Stanimir Stamenkov <s7an10@netscape.net> - 2017-07-15 18:14 +0300
      Re: Static analysis – Unused method return value and method!() return values Robert Klemme <shortcutter@googlemail.com> - 2017-07-15 18:29 +0200
        Re: Static analysis – Unused method return value and method!() return values Stanimir Stamenkov <s7an10@netscape.net> - 2017-07-15 23:20 +0300

csiph-web