Sha256: b21c1c131c22d1e2e08347e4133d7feb0e3a06537de395542bff85da0f978686

Contents?: true

Size: 849 Bytes

Versions: 4

Compression:

Stored size: 849 Bytes

Contents

# Arrays...
# Perfect
thing = []

# 1 space after [
thing = [ ]

# Perfect with element
one = 'won'
thing = [one]

# 1 space after [ with element
thing = [ one]

# 1 space before ] with element
thing = [one ]

# 1 space before and after [ and ]
thing = [ one ]

# Perfect element reference
thing[0]

# 1 space after [ with element reference
thing[ 0]

# 1 space before [ with element reference
thing [0]

# 1 space before ] with element reference
thing[0 ]

# Pefect multi-line
two = 'too'
thing = [
  one,
  two
]

# Perfect multi-line, indented
def thing
  a_thing = [
    one,
    two
  ]
end


# Hash references...
thing = { :one => 1 }

# Perfect element reference
thing[:one]

# 1 space after [ with element reference
thing[ :one]

# 1 space before [ with element reference
thing [:one]

# 1 space before ] with element reference
thing[:one ]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tailor-0.1.3 features/support/1_file_with_bad_square_brackets/bad_square_brackets.rb
tailor-0.1.2 features/support/1_file_with_bad_square_brackets/bad_square_brackets.rb
tailor-0.1.1 features/support/1_file_with_bad_square_brackets/bad_square_brackets.rb
tailor-0.1.0 features/support/1_file_with_bad_square_brackets/bad_square_brackets.rb