Class: RuboCop::Cop::Grape::FieldName
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Grape::FieldName
- Includes:
- ConfigurableNaming, EndpointHelper
- Defined in:
- lib/rubocop/cop/grape/field_name.rb
Overview
Constant Summary collapse
- MSG =
'Use %<style>s for field names.'
Instance Method Summary collapse
Instance Method Details
#on_block(node) ⇒ Object
42 43 44 45 46 |
# File 'lib/rubocop/cop/grape/field_name.rb', line 42 def on_block(node) return unless (body = params_node?(node)) find_field_node(body) end |