Parsing yaml file and ruleChecking