lib/tailor/tailorrc.erb in tailor-1.3.1 vs lib/tailor/tailorrc.erb in tailor-1.4.0
- old
+ new
@@ -10,10 +10,21 @@
# Default: false
#
# indentation_spaces The number of spaces to consider a proper indent.
# Default: 2
#
+# Option: line_continuations
+# Indicates that a statement that spans multiple lines
+# should indent the second and subsequent lines. Ex.:
+# style.indentation_spaces 2, level: :error, line_continuations: true
+#
+# Option: argument_align
+# Allowing you to specify that method declarations and
+# calls should indent to the first argument on
+# subsequent lines. Ex.:
+# style.indentation_spaces 2, level: :error, argument_alignment: true
+#
# max_line_length The maximum number of characters in a line before
# tailor complains.
# Default: 80
# spaces_after_comma Number of spaces to expect after a comma.
# Default: 1
@@ -76,9 +87,26 @@
# Default: 30
#
# trailing_newlines The number of newlines that should be at the end of
# the file.
# Default: 1
+#
+#------------------------------------------------------------------------------
+# Common Syntax
+#------------------------------------------------------------------------------
+# allow_conditional_parentheses
+# Checks to see if a conditional is unnecessarily
+# wrapped in parentheses.
+# Default: true
+#
+# allow_unnecessary_double_quotes
+# Checks for use of double-quotes when no interpolation
+# is used.
+# Default: false
+#
+# allow_unnecessary_interpolation
+# Checks for unnecessary interpolation in strings.
+# Default: false
#
Tailor.config do |config|
config.formatters "<%= formatters.join(', ') %>"
config.file_set '<%= file_list %>' do |style|<% style.each do |rule, value| %>
style.<%= rule %> <%= value.first %>, <% value.last.each { |k, v| %><%= k %>: :<%= v %><% } end %>