Slither-format:

- Fix setup.py
        - Use relative path to allow cli usage
pull/238/head
Josselin 6 years ago
parent 9c7f71fa12
commit eaf1c99ffe
  1. 2
      setup.py
  2. 14
      utils/slither_format/slither_format.py

@ -16,7 +16,7 @@ setup(
'slither = slither.__main__:main',
'slither-check-upgradeability = utils.upgradeability.__main__:main',
'slither-find-paths = utils.possible_paths.__main__:main',
'slither-simil = utils.similarity.__main__:main'
'slither-simil = utils.similarity.__main__:main',
'slither-format = utils.slither_format.__main__:main'
]
}

@ -12,13 +12,13 @@ from slither.slithir.operations import InternalCall
from slither.core.expressions.call_expression import CallExpression
from slither.core.expressions.expression import Expression
from slither.core.expressions.identifier import Identifier
from slither_format.format_unused_state import FormatUnusedState
from slither_format.format_solc_version import FormatSolcVersion
from slither_format.format_pragma import FormatPragma
from slither_format.format_naming_convention import FormatNamingConvention
from slither_format.format_external_function import FormatExternalFunction
from slither_format.format_constable_states import FormatConstableStates
from slither_format.format_constant_function import FormatConstantFunction
from .format_unused_state import FormatUnusedState
from .format_solc_version import FormatSolcVersion
from .format_pragma import FormatPragma
from .format_naming_convention import FormatNamingConvention
from .format_external_function import FormatExternalFunction
from .format_constable_states import FormatConstableStates
from .format_constant_function import FormatConstantFunction
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('Slither.Format')

Loading…
Cancel
Save