test/integration/cli/share_management_test.rb
Unnecessary utf-8 encoding comment. Open
Open
# -*- encoding : utf-8 -*-
- Exclude checks
%w
-literals should be delimited by [
and ]
. Open
Open
%w(local1 local2 local3).each { |x| gitdocs_add(x) }
- Read upRead up
- Exclude checks
This cop enforces the consistent usage of %
-literal delimiters.
Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.
Example:
# Style/PercentLiteralDelimiters:
# PreferredDelimiters:
# default: '[]'
# '%i': '()'
# good
%w[alpha beta] + %i(gamma delta)
# bad
%W(alpha #{beta})
# bad
%I(alpha beta)