Fix most of rubocop warnings

Place the . on the previous line, together with the method call receiver.