SonarOpenCommunity / sonar-cxx

One-line docstring should fit on one line with quotes FLK-D200
Documentation
Minor
6 months ago3 years old
One-line docstring should fit on one line with quotes
345
346
347def main(_argv):
348    """349    Main: Handling command line parameters.
350    """
351    logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
One-line docstring should fit on one line with quotes
329        return keyword.upper() + 'opt'
330
331    def print_grammar(self):
332        """333        Print grammar of object.
334        """
335        logging.info("*** Grammar ***")
One-line docstring should fit on one line with quotes
302        return True # reduce
303
304    def match(self, input):
305        """306        Searches for rules that match given input tokens.
307        """
308        tokens = input.split()
One-line docstring should fit on one line with quotes
210        return sequences
211
212    def flatten_rules(self, max_sequences):
213        """214        Tokens of rules are replaced recursively.
215        """
216        for rulename, sequences in list(self.rules.items()):
One-line docstring should fit on one line with quotes
193
194    @staticmethod
195    def __sort_attachments(sequences):
196        """197        Move all [[xxx]] to the end.
198        """
199        for i, sequence in enumerate(sequences):