From 1192470c5b0ee18c6a9b856794e3ea8331cb1385 Mon Sep 17 00:00:00 2001 From: jasondaming Date: Wed, 22 May 2024 15:29:09 -0500 Subject: [PATCH] checker debug default to True added frcYear --- check.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/check.py b/check.py index f7187e8..abd3d67 100755 --- a/check.py +++ b/check.py @@ -97,13 +97,13 @@ def load(self, json_fn): def getboolean(self, option): try: for section in reversed(message_context): - rv = self.parser.getboolean(section, option, fallback=None) + rv = self.parser.getboolean(section, option, fallback=True) if rv is not None: return rv - return self.parser.getboolean('global', option, fallback=False) + return self.parser.getboolean('global', option, fallback=True) except ValueError as e: print('{0}: could not coerce {1} to boolean: {2}'.format(basefn + '.ini', option, e), file=sys.stderr) - return False + return True file_config = FileConfig() @@ -119,12 +119,13 @@ def __init__(self, inner): self.inner = inner json_schema = { + 'fileName': '', 'name': '', 'version': '', + 'frcYear': 0, 'uuid': '', 'mavenUrls': [''], 'jsonUrl': '', - 'fileName': '', 'javaDependencies': [{ 'groupId': '', 'artifactId': '',