summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2015-10-27 21:23:36 +0000
committerrillig <rillig>2015-10-27 21:23:36 +0000
commitc1908e8ca0a85773e4336c9a200924a9d58684cd (patch)
tree18e124e5f29fd9983aa32c21f7e97ac921d90697
parent46a00dbad85e3d63b954585cef3abf98d8a32794 (diff)
downloadpkgsrc-c1908e8ca0a85773e4336c9a200924a9d58684cd.tar.gz
Removed checkline_spellcheck
It didn't provide much technical value, and its error message was not polite anyway.
-rw-r--r--pkgtools/pkglint/files/PkgLint/Patches.pm3
-rw-r--r--pkgtools/pkglint/files/pkglint.pl14
2 files changed, 2 insertions, 15 deletions
diff --git a/pkgtools/pkglint/files/PkgLint/Patches.pm b/pkgtools/pkglint/files/PkgLint/Patches.pm
index a6a7984e2d0..87195937c88 100644
--- a/pkgtools/pkglint/files/PkgLint/Patches.pm
+++ b/pkgtools/pkglint/files/PkgLint/Patches.pm
@@ -1,4 +1,4 @@
-# $NetBSD: Patches.pm,v 1.3 2015/10/11 21:23:34 rillig Exp $
+# $NetBSD: Patches.pm,v 1.4 2015/10/27 21:23:37 rillig Exp $
#
# Everything concerning checks for patch files.
#
@@ -271,7 +271,6 @@ sub checkfile_patch($) {
return unless $m->has(1);
$text = $m->text(1);
checkline_cpp_macro_names($line, $text);
- checkline_spellcheck($line);
# XXX: This check is not as accurate as the similar one in
# checkline_mk_shelltext().
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index f1759e3a73d..d23cb6cf682 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.894 2015/10/27 21:10:56 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.895 2015/10/27 21:23:36 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2466,15 +2466,6 @@ sub checkline_relative_pkgdir($$) {
}
}
-sub checkline_spellcheck($) {
- my ($line) = @_;
-
- if ($line->text =~ m"existant") {
- $line->log_warning("The word \"existant\" is nonexistent in the m-w dictionary.");
- $line->explain_warning("Please use \"existent\" instead.");
- }
-}
-
sub checkline_mk_varuse($$$$) {
my ($line, $varname, $mod, $context) = @_;
@@ -4183,7 +4174,6 @@ sub checklines_mk($) {
my $text = $line->text;
checkline_trailing_whitespace($line);
- checkline_spellcheck($line);
if ($line->has("is_empty")) {
$substcontext->check_end($line);
@@ -4682,7 +4672,6 @@ sub checkfile_DESCR($) {
checkline_length($line, $maxchars);
checkline_trailing_whitespace($line);
checkline_valid_characters($line, regex_validchars);
- checkline_spellcheck($line);
if ($line->text =~ m"\$\{") {
$line->log_warning("Variables are not expanded in the DESCR file.");
}
@@ -4873,7 +4862,6 @@ sub checkfile_MESSAGE($) {
checkline_length($line, 80);
checkline_trailing_whitespace($line);
checkline_valid_characters($line, regex_validchars);
- checkline_spellcheck($line);
}
if ($lines->[-1]->text ne "=" x 75) {
$lines->[-1]->log_warning("Expected a line of exactly 75 \"=\" characters.");