I saw the following submission today, which didn't trigger the inconsistent indentation rule. Notice how the indentation is variously 1, 2, and 4 spaces.
class Hamming
def self.compute(first_sequence, second_sequence)
hamming_counter = 0
unless first_sequence.length != second_sequence.length
split_first_sequence = first_sequence.split('')
split_second_sequence = second_sequence.split('')
split_first_sequence.select.with_index do |first_sequence_base,index|
hamming_counter += 1 if first_sequence_base != split_second_sequence[index]
end
hamming_counter
end
end
end
Here's the curl call:
curl -XPOST 'http://analysseur.exercism.io/analyze/ruby' --data '{"code":"class Hamming\n def self.compute(first_sequence, second_sequence)\n hamming_counter = 0\n unless first_sequence.length != second_sequence.length\n split_first_sequence = first_sequence.split(\"\")\n split_second_sequence = second_sequence.split(\"\")\n split_first_sequence.select.with_index do |first_sequence_base,index|\n hamming_counter += 1 if first_sequence_base != split_second_sequence[index]\n end\n hamming_counter\n\n end"}' -H "Content-Type: application/json"
I saw the following submission today, which didn't trigger the inconsistent indentation rule. Notice how the indentation is variously 1, 2, and 4 spaces.
Here's the curl call: