Class: RuboCop::Cop::Kata::NoAbbreviation
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Kata::NoAbbreviation
- Defined in:
- lib/rubocop/cop/kata/no_abbreviation.rb
Constant Summary collapse
- MSG =
"`%s` is an abbreviation; spell the word out."
Instance Method Summary collapse
- #on_arg(node) ⇒ Object
- #on_kwarg(node) ⇒ Object
- #on_kwoptarg(node) ⇒ Object
- #on_lvasgn(node) ⇒ Object
- #on_optarg(node) ⇒ Object
Instance Method Details
#on_arg(node) ⇒ Object
8 |
# File 'lib/rubocop/cop/kata/no_abbreviation.rb', line 8 def on_arg(node) = check(node) |
#on_kwarg(node) ⇒ Object
12 |
# File 'lib/rubocop/cop/kata/no_abbreviation.rb', line 12 def on_kwarg(node) = check(node) |
#on_kwoptarg(node) ⇒ Object
14 |
# File 'lib/rubocop/cop/kata/no_abbreviation.rb', line 14 def on_kwoptarg(node) = check(node) |
#on_lvasgn(node) ⇒ Object
6 |
# File 'lib/rubocop/cop/kata/no_abbreviation.rb', line 6 def on_lvasgn(node) = check(node) |
#on_optarg(node) ⇒ Object
10 |
# File 'lib/rubocop/cop/kata/no_abbreviation.rb', line 10 def on_optarg(node) = check(node) |