Skip to content

RSpec/AvoidConditionalStatements: Improve ternary's representation

What does this MR do and why?

Show the full source code in the offense message instead of its AST.

Follow-up of !117152 (comment 1381738871).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports

Loading