* [PATCH] devtools: fix indent in SPDX check
@ 2026-02-06 8:36 David Marchand
2026-02-06 9:37 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: David Marchand @ 2026-02-06 8:36 UTC (permalink / raw)
To: dev; +Cc: Thomas Monjalon
We have a mix of tabs and spaces.
Clean this up.
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
devtools/check-spdx-tag.sh | 37 ++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)
diff --git a/devtools/check-spdx-tag.sh b/devtools/check-spdx-tag.sh
index 2390941c74..a55d28581a 100755
--- a/devtools/check-spdx-tag.sh
+++ b/devtools/check-spdx-tag.sh
@@ -23,8 +23,8 @@ no_license_list=\
check_spdx() {
if $verbose ; then
- echo "Files without SPDX License"
- echo "--------------------------"
+ echo "Files without SPDX License"
+ echo "--------------------------"
fi
git grep -L SPDX-License-Identifier -- $no_license_list > $tmpfile
@@ -33,15 +33,15 @@ check_spdx() {
$quiet || cat $tmpfile
if $verbose ; then
- echo
- echo "Files with wrong SPDX format"
- echo "----------------------------"
+ echo
+ echo "Files with wrong SPDX format"
+ echo "----------------------------"
fi
files_without_spdx=$(cat $tmpfile)
git grep -LE '(/\*|#|;|\.\.) *SPDX-License-Identifier: [A-Z(]' -- $no_license_list > $tmpfile
for file in $files_without_spdx ; do
- sed -i "/^$file$/d" $tmpfile
+ sed -i "/^$file$/d" $tmpfile
done
warnings=$(($warnings + $(wc -l < $tmpfile)))
@@ -49,7 +49,7 @@ check_spdx() {
files_with_andor=$(git grep -lEi 'SPDX-License-Identifier:.*\<(AND|OR)\>' -- $no_license_list)
for file in $files_with_andor ; do
- grep -LE 'SPDX-License-Identifier:.*\<(AND|OR)\>' "$file"
+ grep -LE 'SPDX-License-Identifier:.*\<(AND|OR)\>' "$file"
done > $tmpfile
warnings=$(($warnings + $(wc -l < $tmpfile)))
@@ -67,8 +67,8 @@ build_exceptions_list() {
check_licenses() {
if $verbose ; then
- echo "Files with wrong license and no exception"
- echo "-----------------------------------------"
+ echo "Files with wrong license and no exception"
+ echo "-----------------------------------------"
fi
exceptions=$(build_exceptions_list)
@@ -81,24 +81,23 @@ check_licenses() {
check_boilerplate() {
if $verbose ; then
- echo "Files with redundant license text"
- echo "---------------------------------"
+ echo "Files with redundant license text"
+ echo "---------------------------------"
fi
- git grep -l Redistribution -- \
- ':^license/' ':^/devtools/check-spdx-tag.sh' > $tmpfile
+ git grep -l Redistribution -- ':^license/' ':^/devtools/check-spdx-tag.sh' > $tmpfile
warnings=$(($warnings + $(wc -l <$tmpfile)))
$quiet || cat $tmpfile
}
while getopts qvh ARG ; do
- case $ARG in
- q ) quiet=true ;;
- v ) verbose=true ;;
- h ) print_usage ; exit 0 ;;
- ? ) print_usage ; exit 1 ;;
- esac
+ case $ARG in
+ q ) quiet=true ;;
+ v ) verbose=true ;;
+ h ) print_usage ; exit 0 ;;
+ ? ) print_usage ; exit 1 ;;
+ esac
done
shift $(($OPTIND - 1))
--
2.52.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] devtools: fix indent in SPDX check
2026-02-06 8:36 [PATCH] devtools: fix indent in SPDX check David Marchand
@ 2026-02-06 9:37 ` Thomas Monjalon
2026-02-06 9:41 ` David Marchand
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2026-02-06 9:37 UTC (permalink / raw)
To: David Marchand; +Cc: dev
06/02/2026 09:36, David Marchand:
> We have a mix of tabs and spaces.
> Clean this up.
Most shell scripts in devtools are indented with tabs.
So replacing spaces with tabs makes more sense here.
And of course, if someone asks, vim is better than emacs ;)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] devtools: fix indent in SPDX check
2026-02-06 9:37 ` Thomas Monjalon
@ 2026-02-06 9:41 ` David Marchand
0 siblings, 0 replies; 3+ messages in thread
From: David Marchand @ 2026-02-06 9:41 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
On Fri, 6 Feb 2026 at 10:37, Thomas Monjalon <thomas@monjalon.net> wrote:
>
> 06/02/2026 09:36, David Marchand:
> > We have a mix of tabs and spaces.
> > Clean this up.
>
> Most shell scripts in devtools are indented with tabs.
> So replacing spaces with tabs makes more sense here.
I don't mind changing it all.
> And of course, if someone asks, vim is better than emacs ;)
Obviously yes.
--
David Marchand
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-06 9:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06 8:36 [PATCH] devtools: fix indent in SPDX check David Marchand
2026-02-06 9:37 ` Thomas Monjalon
2026-02-06 9:41 ` David Marchand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox