SonarOpenCommunity / sonar-cxx

Blank line contains whitespace FLK-W293
Style
Minor
5 months ago3 years old
blank line contains whitespace
212
213    if has_len_errors:
214        return 3
215        216    print("no errors found")
217    return 0
218
blank line contains whitespace
175    s = s.replace('"', """)
176    return s
177
178    179def check_rules(path):
180    print("### CHECK ", path)
181    has_xmllint_errors = call_xmllint(path)
blank line contains whitespace
110    except et.ParseError as e:
111        sys.stderr.write("[ERROR] {}: {}\n".format(path, e))
112        return keys, keys_to_ruleelement
113    114    root = tree.getroot()
115    for rules_tag in root.iter('rules'):
116        for rule_tag in rules_tag.iter('rule'):
blank line contains whitespace
176    index += 1
177    
178filetowrite.write("</rules>\n")
179        180filetowrite.close()
181
182# now update the file  with the new rules
blank line contains whitespace
174        filetowrite.write("    </rule>\n") 
175      
176    index += 1
177    178filetowrite.write("</rules>\n")
179        
180filetowrite.close()