Class: RuboCop::Cop::Gusto::DatadogConstant
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Gusto::DatadogConstant
- Defined in:
- lib/rubocop/cop/gusto/datadog_constant.rb
Constant Summary collapse
- MSG =
"Do not call Datadog directly, use an appropriate wrapper library."- NAMESPACE =
"Datadog"
Instance Method Summary collapse
Instance Method Details
#on_const(node) ⇒ Object
10 11 12 |
# File 'lib/rubocop/cop/gusto/datadog_constant.rb', line 10 def on_const(node) add_offense(node) if node.const_name == NAMESPACE end |