class Rubydex::Rules::ParseWarning
Parse warnings represent code that has valid syntax, but may not do what the developer expects. For example, local variables that are completely unused or usage in a void context (creating a line of code that does nothing).
“‘ruby CONST = 1 CONST ^^^^^ Constant used in void context (the expression does nothing). puts CONST + 2 “`
Public Class Methods
→ singleton(Severity::Base)
Source
# File lib/rubydex/rules/parse_warning.rb, line 22 def default_severity Severity::Warning end
@override