SonarOpenCommunity / sonar-cxx

Missing whitespace around operator FLK-E225
Style
Minor
6 months ago3 years old
missing whitespace around operator
383    rule = et.Element('rule')
384    et.SubElement(rule, 'key').text = rule_key
385    et.SubElement(rule, 'cardinality').text = "MULTIPLE"
386    name = et.SubElement(rule, 'name').text=rule_name387    et.SubElement(rule, 'description').append(CDATA(rule_description))
388    et.SubElement(rule, 'severity').text = rule_severity
389    rules.append(rule)
missing whitespace around operator
112def before_scenario(context, scenario):
113    global SCENARIO_NO
114    context.scenarioname = scenario.name
115    SCENARIO_NO +=1116    context.scenariono = SCENARIO_NO
117
118
265        logging.info("verification done")
266
267    def __log_branch(self, fmt, branch, sequence):
268        s =' '.join(sequence) + ' < ' + ' < '.join(reversed(branch))269        logging.info(fmt, s)
270
271    def __match_sequences(self, branch, sequences, tokens):
 94        re_rulename = re.compile('[ \t]*([a-z-]+)[:][\n]')
 95        with open(filename, 'r', encoding='utf-8') as ifile:
 96            for line in ifile:
 97                self.lineno +=1 98                match = re_rulename.match(line)
 99                if match:
100                    self.__parse_sequence(ifile, match.group(1))
 69                            rulename, self.lineno)
 70            return
 71        for line in ifile:
 72            self.lineno +=1 73            expressions = line.strip().split()
 74            if not expressions:
 75                return