Validate code lines length and ID duplication.