checkpatch: complain about tabs in source file

There are very few places left where we would accept tabs in a source
file. Warn about that, even if it might cause some false positives.

I think this line was commented out due to a mistake.
This commit is contained in:
Thomas Haller 2022-01-07 07:30:43 +01:00
parent 866e3a2b51
commit 2b449694e5
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -198,7 +198,7 @@ complain ("Don't use API that uses the numeric source id. Instead, use GSource a
complain ("Prefer g_snprintf() over snprintf() (for consistency)") if $line =~ /\b(snprintf)\b/;
complain ("Avoid g_clear_pointer() and use nm_clear_pointer() (or nm_clear_g_free(), g_clear_object(), etc.)") if $line =~ /\b(g_clear_pointer)\b/;
complain ("Define setting properties with _nm_setting_property_define_direct_*() API") if $line =~ /g_param_spec_/ and $filename =~ /\/libnm-core-impl\/nm-setting/;
#complain ("Use spaces instead of tabs") if $line =~ /\t/;
complain ("Use spaces instead of tabs") if $line =~ /\t/;
# Further on we process stuff without comments.
$_ = $line;