sugarsdk/linting/docstring_single_line.py
def _check_docstring(self, node):
        """
        Check if docstring always starts and ends from/by triple double-quotes
        and they are on the new line.

        :param node:
        :return:
        """
        if hasattr(node, "doc") and node.doc:
            doc = node.doc.strip("\t").strip(" ")
            msg = None
            if not doc.startswith(os.linesep):
                msg = "should start with the newline after triple double-quotes"
            if not doc.endswith(os.linesep):
                msg = "should end with the newline before triple double-quotes"
            if msg is not None:
                self.add_message("docstring-newlines", node=node, args=(msg,))

        Check if docstring always starts and ends from/by triple double-quotes
        and they are on the new line.

        :param node:
        :return:
        
Check if docstring always starts and ends from/by triple double-quotes
and they are on the new line.
Check if docstring always starts and ends from / by triple double - quotes and they are on the new line .
def _check_docstring(self, node):
        if hasattr(node, "doc") and node.doc:
            doc = node.doc.strip("\t").strip(" ")
            msg = None
            if not doc.startswith(os.linesep):
                msg = "should start with the newline after triple double-quotes"
            if not doc.endswith(os.linesep):
                msg = "should end with the newline before triple double-quotes"
            if msg is not None:
                self.add_message("docstring-newlines", node=node, args=(msg,))
def _check_docstring ( self , node ) : if hasattr ( node , "doc" ) and node . doc : doc = node . doc . strip ( "\t" ) . strip ( " " ) msg = None if not doc . startswith ( os . linesep ) : msg = "should start with the newline after triple double-quotes" if not doc . endswith ( os . linesep ) : msg = "should end with the newline before triple double-quotes" if msg is not None : self . add_message ( "docstring-newlines" , node = node , args = ( msg , ) )
Check if docstring always starts and ends from/by triple double-quotes
and they are on the new line.
Check if docstring always starts and ends from / by triple double - quotes and they are on the new line .
"""
        Check if docstring always starts and ends from/by triple double-quotes
        and they are on the new line.

        :param node:
        :return:
        """
None
self
node
None