Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
from patch_element_tree import patch_element_tree
patch_element_tree()
parser = argparse.ArgumentParser(
description='.xib / .storyboard linter',
epilog=make_epilog_text(),
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument("-v", "--version", action="version",
version=__version__)
parser.add_argument("--reporter", choices=("raw", "json"),
default="raw",
help="custom reporter to use")
parser.add_argument("paths", nargs=argparse.REMAINDER,
help="lint only at the specified paths")
args = parser.parse_args()
try:
from xiblint.config import Config
config = Config()
except IOError as ex:
print('Error: {}\n'.format(ex))
parser.print_usage()
sys.exit(1)
except ValueError as ex:
print('Error: {}: {}\n'.format(Config.filename, ex))
from setuptools import setup, find_packages
import xiblint
setup(
name='xiblint',
version=xiblint.__version__,
description='Checks .xib and .storyboard files for compliance with best practices',
license='apache2',
url='https://github.com/lyft/xiblint',
author='Ilya Konstantinov',
author_email='ikonstantinov@lyft.com',
install_requires=[
'defusedxml>=0.5.0',
],
packages=find_packages(),
entry_points={'console_scripts': ['xiblint=xiblint.__main__:main']},
)