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 cleo import Command
cleo
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
from sdoc.SDoc import SDoc
from sdoc.style.SdocStyle import SdocStyle
style
sdoc
sdoc.style.SdocStyle
class SDoc2Command(Command):
__init__
This command starts executing sdoc2 component.
name = 'sdoc2'
arguments = [
{
'name': 'main_sdoc_file',
'description': "The 'sdoc' file which we want to parse",
'required': True
}
]
# ------------------------------------------------------------------------------------------------------------------
def handle(self):
Reads the arguments and starts SDoc application.
self.output = SdocStyle(self.input, self.output)
SDoc2Command
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
It is generally a good practice to initialize all attributes to default values in the __init__ method:
class Foo: def __init__(self, x=None): self.x = x
main_sdoc_file = self.argument('main_sdoc_file')
argument
sdoc = SDoc(self.output)
sdoc.test_sdoc2(main_sdoc_file)
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
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.