From e71b831791c2a8820fe0580adfc555d5dc4b3a1a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Oct 2024 13:20:40 -0400 Subject: Add lint option and fix warning_level abuse --- meson_options.txt | 3 +++ test/meson.build | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/meson_options.txt b/meson_options.txt index 41a2374..e3e283e 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -4,6 +4,9 @@ option('docs', type: 'feature', yield: true, description: 'Build documentation') +option('lint', type: 'boolean', value: false, yield: true, + description: 'Run code quality checks') + option('man', type: 'feature', value: 'enabled', yield: true, description: 'Install man pages') diff --git a/test/meson.build b/test/meson.build index cbadd8f..cf8bcc4 100644 --- a/test/meson.build +++ b/test/meson.build @@ -5,9 +5,9 @@ # Project Metadata # #################### -if get_option('warning_level') == 'everything' - # Check release metadata +if get_option('lint') if not meson.is_subproject() + # Check release metadata autoship = find_program('autoship', required: false) if autoship.found() test('autoship', autoship, args: ['test', sord_src_root], suite: 'data') -- cgit v1.2.1