Class: GemLint::Strategies::CapitalsInNameStrategy
Instance Attribute Summary
#filename, #metadata_path, #path
Instance Method Summary
collapse
#initialize, #level_char
Instance Method Details
#description ⇒ Object
7
8
9
|
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 7
def description
"It's strongly recommended that your gem name be all lower case"
end
|
#fail? ⇒ Boolean
19
20
21
|
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 19
def fail?
spec.name.match(/[A-Z]/)
end
|
#level ⇒ Object
15
16
17
|
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 15
def level
:warning
end
|
#tag ⇒ Object
11
12
13
|
# File 'lib/gem_lint/strategies/capitals_in_name_strategy.rb', line 11
def tag
:"capitals-in-name"
end
|