lib/yamllint/linter.rb
# Setup common hash and array elements
Setup common hash and array elements
Setup common hash and array elements
def complex_type_start(key)
        case @complex_type.last
        when :hash
          @key_components.push(key)
        when :array
          @key_components.push(@array_positions.last)
          @array_positions[-1] += 1
        end
      end
def complex_type_start ( key ) case @complex_type . last when :hash @key_components . push ( key ) when :array @key_components . push ( @array_positions . last ) @array_positions [ - 1 ] += 1 end end
Setup common hash and array elements
Setup common hash and array elements
key