SonarOpenCommunity / sonar-cxx

Multiple spaces after keyword FLK-E271
Style
Minor
6 months ago3 years old
 64        self.rules = {} # map: rulename : sequences
 65
 66    def __parse_sequence(self, ifile, rulename):
 67        if rulename in  self.rules: 68            logging.warning("rule '%s' in line %i does already exist, ignored",
 69                            rulename, self.lineno)
 70            return
multiple spaces after keyword
434    """
435    Helper to sort warning keys in a numeric order (as ints).
436    """
437    return  int(item[0][1:])438
439
440def assign_warning_properties(warning, defaults, override):
multiple spaces after keyword
316    warning['name'] = name(content.select_one('blockquote > p'), key, warning['name'])
317
318    desc = ''
319    for paragraph in  content.select('div > p'):320        txt = str(paragraph)
321        if 'Compiler Warning ' in warning['name']:
322            # compiler messages: first p element is header
multiple spaces after keyword
263    soup = BeautifulSoup(page_source, 'html.parser')
264
265    # read all warnings from menu: Cnnnnn
266    for menu_item in  soup.find_all('a', href=True, string=re.compile('(Warning)?[ ]?C[0-9]{4,5}$')):267        key = warning_key(menu_item.string)
268        href = menu_item['href']
269        if key and href: