rubocop: fixed "Use next to skip iteration"
rubocop: disable code metrics checks

they need non-trivial code refactoring
rubocop: fixed "Use Kernel#loop with break"
rubocop: remove generated header