mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 08:52:39 +00:00
testsuite/gst-lint: Add a check for bad signal names.
Original commit message from CVS: * testsuite/gst-lint: Add a check for bad signal names.
This commit is contained in:
parent
4033eb8319
commit
aac63090d4
3 changed files with 28 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-03-04 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* testsuite/gst-lint: Add a check for bad signal names.
|
||||||
|
|
||||||
2004-03-04 <kost@imn.htwk-leipzig.de>
|
2004-03-04 <kost@imn.htwk-leipzig.de>
|
||||||
|
|
||||||
reviewed by David Schleef
|
reviewed by David Schleef
|
||||||
|
|
|
@ -45,6 +45,7 @@ sub check_caps();
|
||||||
sub check_lib_deprecated();
|
sub check_lib_deprecated();
|
||||||
sub check_typo();
|
sub check_typo();
|
||||||
sub check_explicit_caps();
|
sub check_explicit_caps();
|
||||||
|
sub check_signals();
|
||||||
|
|
||||||
sub m_check_plugindir();
|
sub m_check_plugindir();
|
||||||
sub m_check_interfaces();
|
sub m_check_interfaces();
|
||||||
|
@ -72,6 +73,7 @@ foreach $filename (<FIND>) {
|
||||||
check_typo();
|
check_typo();
|
||||||
check_glibisms();
|
check_glibisms();
|
||||||
check_explicit_caps();
|
check_explicit_caps();
|
||||||
|
check_signals();
|
||||||
|
|
||||||
# less important stuff
|
# less important stuff
|
||||||
|
|
||||||
|
@ -508,3 +510,13 @@ sub check_explicit_caps()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check for - in signal names
|
||||||
|
#
|
||||||
|
sub check_signals()
|
||||||
|
{
|
||||||
|
if (grep { /g_signal_new.*\".*-.*\"/; } @lines) {
|
||||||
|
print "E: g_signal_new() with a signal name with a - in it (we prefer _)\n"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,7 @@ sub check_caps();
|
||||||
sub check_lib_deprecated();
|
sub check_lib_deprecated();
|
||||||
sub check_typo();
|
sub check_typo();
|
||||||
sub check_explicit_caps();
|
sub check_explicit_caps();
|
||||||
|
sub check_signals();
|
||||||
|
|
||||||
sub m_check_plugindir();
|
sub m_check_plugindir();
|
||||||
sub m_check_interfaces();
|
sub m_check_interfaces();
|
||||||
|
@ -72,6 +73,7 @@ foreach $filename (<FIND>) {
|
||||||
check_typo();
|
check_typo();
|
||||||
check_glibisms();
|
check_glibisms();
|
||||||
check_explicit_caps();
|
check_explicit_caps();
|
||||||
|
check_signals();
|
||||||
|
|
||||||
# less important stuff
|
# less important stuff
|
||||||
|
|
||||||
|
@ -508,3 +510,13 @@ sub check_explicit_caps()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check for - in signal names
|
||||||
|
#
|
||||||
|
sub check_signals()
|
||||||
|
{
|
||||||
|
if (grep { /g_signal_new.*\".*-.*\"/; } @lines) {
|
||||||
|
print "E: g_signal_new() with a signal name with a - in it (we prefer _)\n"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue