for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
SDoc
Copyright 2016 Set Based IT Consultancy
Licence MIT
# ----------------------------------------------------------------------------------------------------------------------
from sdoc.SDoc import SDoc
from sdoc.command.BaseCommand import BaseCommand
from sdoc.style.SdocStyle import SdocStyle
style
sdoc
sdoc.style.SdocStyle
This can be caused by one of the following:
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
# .scrutinizer.yml before_commands: - sudo pip install abc # Python2 - sudo pip3 install abc # Python3
This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.
__init__.py
class SDocCommand(BaseCommand):
Generates the target document(s)
name = 'sdoc'
arguments = [
{
'name': 'config.cfg',
'description': 'The name of the config file',
'required': True
},
'name': 'main.sdoc',
'description': "The SDoc file",
}
]
# ------------------------------------------------------------------------------------------------------------------
def handle(self):
Reads the arguments and starts SDoc application.
self._io = SdocStyle(self.input, self.output)
SDocCommand
input
This check looks for calls to members that are non-existent. These calls will fail.
The member could have been renamed or removed.
output
sdoc = SDoc()
sdoc.io = self._io
sdoc.config_path = self.argument('config.cfg')
argument
return sdoc.run_sdoc(self.argument('main.sdoc'))