Skip to content

Commit cf6ef2e

Browse files
committed
Integrate codespell on toolbox code
Codespell has been added to the meson.build file and has been tested. Fixed containers#1146 Signed-off-by: Nieves Montero <[email protected]>
1 parent e40e3e5 commit cf6ef2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

meson.build

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ if not cc.has_argument('-print-file-name=libc.so')
1313
error('C compiler does not support the -print-file-name argument.')
1414
endif
1515

16+
codespell = find_program('codespell', required: false)
1617
go = find_program('go')
1718
go_md2man = find_program('go-md2man')
1819
shellcheck = find_program('shellcheck', required: false)
@@ -57,6 +58,12 @@ if shellcheck.found()
5758
test('shellcheck toolbox (deprecated)', shellcheck, args: [toolbox_sh])
5859
endif
5960

61+
if codespell.found()
62+
test('codespell toolbox', codespell, args: [meson.current_source_dir() / 'data', meson.current_source_dir() / 'doc',
63+
meson.current_source_dir() / 'test', meson.current_source_dir() / 'playbooks', meson.current_source_dir() / 'profile.d',
64+
meson.current_source_dir() / 'src'])
65+
endif
66+
6067
if not skopeo.found()
6168
message('Running system tests requires Skopeo for OCI image manipulation.')
6269
endif

0 commit comments

Comments
 (0)