mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-05 06:50:10 +01:00
add --force-yamllint option to lint
This commit is contained in:
parent
b076e8cba7
commit
810a6587df
@ -574,6 +574,9 @@ def main():
|
||||
common.setup_global_opts(parser)
|
||||
parser.add_argument("-f", "--format", action="store_true", default=False,
|
||||
help=_("Also warn about formatting issues, like rewritemeta -l"))
|
||||
parser.add_argument('--force-yamllint', action="store_true", default=False,
|
||||
help=_("When linting the entire repository yamllint is disabled by default. "
|
||||
"This option forces yamllint regardless."))
|
||||
parser.add_argument("appid", nargs='*', help=_("applicationId in the form APPID"))
|
||||
metadata.add_metadata_arguments(parser)
|
||||
options = parser.parse_args()
|
||||
@ -601,7 +604,7 @@ def main():
|
||||
continue
|
||||
|
||||
# only run yamllint when linting individual apps.
|
||||
if len(options.appid) > 0:
|
||||
if len(options.appid) > 0 or options.force_yamllint:
|
||||
|
||||
# run yamllint on app metadata
|
||||
ymlpath = os.path.join('metadata', appid + '.yml')
|
||||
|
Loading…
Reference in New Issue
Block a user