Class: Koji::Plugins::Symfony
- Inherits:
-
Base
- Object
- Base
- Koji::Plugins::Symfony
show all
- Defined in:
- lib/koji/plugins/symfony.rb
Instance Attribute Summary
Attributes inherited from Base
#website
Instance Method Summary
collapse
Methods inherited from Base
inherited, #initialize, #name, #report
Instance Method Details
#evidence_list ⇒ Object
10
11
12
13
14
|
# File 'lib/koji/plugins/symfony.rb', line 10
def evidence_list
@evidence_list ||= [].tap do |out|
out << "The website contains Symfony's Profiler" if profiler
end
end
|
#profiler ⇒ Object
6
7
8
|
# File 'lib/koji/plugins/symfony.rb', line 6
def profiler
website.doc&.at_css(".sf-toolbar")
end
|
#score ⇒ Object
16
17
18
|
# File 'lib/koji/plugins/symfony.rb', line 16
def score
evidence_list.empty? ? 0 : 100
end
|