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