Growstuff/growstuff

View on GitHub
app/views/crops/_crop.html.haml

Summary

Maintainability
Test Coverage

Use -# for comments instead of - #
Open

          - #= render 'harvests/modal', harvest: Harvest.new(crop: crop, owner: current_member)
Severity: Info
Found in app/views/crops/_crop.html.haml by haml-lint

HamlLint/RubyComments

Prefer HAML's built-in comment over ad hoc comments in Ruby code.

Bad: Space after # means comment is actually treated as Ruby code haml - # A Ruby comment

Good haml -# A HAML comment

While both comment types will result in nothing being output, HAML comments are a little more flexible in that you can have them span multiple lines, e.g.

-# This is a multi-line
   HAML comment

There are no issues that match your filters.

Category
Status