diff --git a/.herb.yml b/.herb.yml new file mode 100644 index 0000000000..398bee965d --- /dev/null +++ b/.herb.yml @@ -0,0 +1,21 @@ +version: 0.9.0 + +linter: + enabled: true + + rules: + # RDoc templates are not Rails partials — instance variables are the + # standard way to pass data from the generator to templates. + erb-no-instance-variables-in-partials: + enabled: false + + # Template output is generated from trusted RDoc data, not user input. + erb-no-unsafe-script-interpolation: + enabled: false + + # Same: attribute values come from trusted RDoc data. + erb-no-output-in-attribute-position: + enabled: false + +formatter: + enabled: false diff --git a/lib/rdoc/generator/template/aliki/_head.rhtml b/lib/rdoc/generator/template/aliki/_head.rhtml index c46f0b94e7..c6c238d26c 100644 --- a/lib/rdoc/generator/template/aliki/_head.rhtml +++ b/lib/rdoc/generator/template/aliki/_head.rhtml @@ -28,7 +28,7 @@ <%- elsif @title %> <%- if @options.main_page and - main_page = @files.find { |f| f.full_name == @options.main_page } then %> + main_page = @files.find { |f| f.full_name == @options.main_page } %> " diff --git a/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml b/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml index 1544b83778..a6086639e6 100644 --- a/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml +++ b/lib/rdoc/generator/template/aliki/_sidebar_extends.rhtml @@ -1,4 +1,4 @@ -<%- unless klass.extends.empty? then %> +<%- unless klass.extends.empty? %>
(Not documented)
@@ -124,7 +124,7 @@ <%- methods.each do |method| %>(Not documented)
<%- end %> - <%- if method.calls_super then %> + <%- if method.calls_super %>You are missing documentation for some of your installed gems. diff --git a/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml b/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml index b83c1ef29c..f1210e79bc 100644 --- a/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +++ b/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml @@ -1,14 +1,16 @@ -<%- unless klass.extends.empty? then %> +<%- unless klass.extends.empty? %>
(Not documented)
@@ -131,7 +131,7 @@ <%- methods.each do |method| %>(Not documented)
<%- end %> - <%- if method.calls_super then %> + <%- if method.calls_super %>