We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
true if (true ? true : false)
Style/ParenthesesAroundCondition crashes on true if (true ? true : false):
An error occurred while Style/ParenthesesAroundCondition cop was inspecting /private/tmp/test.rb. undefined method `end' for #<Parser::Source::Map::Ternary:0x007f960d29a6d0> /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/cop/style/parentheses_around_condition.rb:46:in `modifier_op?' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/cop/style/parentheses_around_condition.rb:32:in `process_control_op' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/cop/style/parentheses_around_condition.rb:14:in `on_if' (eval):5:in `block (2 levels) in on_if' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/cop/commissioner.rb:98:in `with_cop_error_handling' (eval):4:in `block in on_if' (eval):2:in `each' (eval):2:in `on_if' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/ast-2.0.0/lib/ast/processor.rb:239:in `process' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/cop/commissioner.rb:58:in `investigate' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/cop/team.rb:33:in `inspect_file' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/runner.rb:87:in `inspect_file' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/runner.rb:69:in `block in process_file' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/runner.rb:64:in `loop' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/runner.rb:64:in `process_file' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/runner.rb:27:in `block in run' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/runner.rb:25:in `each' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/runner.rb:25:in `run' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/lib/rubocop/cli.rb:24:in `run' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/bin/rubocop:14:in `block in <top (required)>' /Users/ojab/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' /Users/ojab/.rvm/gems/ruby-2.1.2/gems/rubocop-0.23.0/bin/rubocop:13:in `<top (required)>' /Users/ojab/.rvm/gems/ruby-2.1.2/bin/rubocop:23:in `load' /Users/ojab/.rvm/gems/ruby-2.1.2/bin/rubocop:23:in `<main>' /Users/ojab/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval' /Users/ojab/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>' W Offenses: test.rb:1:10: W: Lint/LiteralInCondition: Literal true appeared in a condition. true if (true ? true : false) ^^^^ 1 file inspected, 1 offense detected 1 error occurred: An error occurred while Style/ParenthesesAroundCondition cop was inspecting /private/tmp/test.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.23.0 (using Parser 2.2.0.pre.2, running on ruby 2.1.2 x86_64-darwin13.0) Finished in 0.020841 seconds
The text was updated successfully, but these errors were encountered:
c724f1c
No branches or pull requests
Style/ParenthesesAroundCondition crashes on
true if (true ? true : false)
:The text was updated successfully, but these errors were encountered: