def validate(code_module)
      mandatory_fields = [COMPANY_KEY,
                          PROJECT_NAME_KEY,
                          XCODEPROJ_PATH_KEY]

      mandatory_fields.each do |field|
        unless code_module.instance_variable_get("@#{field}")
          puts "Module is broken! *#{field}* field cannot be empty, because it is mandatory.".red
          exit
        end
      end

      project_failure_fields = all_project_failure_fields(code_module)
      test_failure_fields = all_test_failure_fields(code_module)
      failure_fields = project_failure_fields + test_failure_fields

      if failure_fields.count > 0
        puts "Module is broken! *#{failure_fields}* field cannot be empty, because it is mandatory.".red
        exit
      end
    end
Method validates module
@param code_module [CodeModule] The instance of CodeModule

@return [Void]