View | Details | Raw Unified | Return to bug 172621
Collapse All | Expand All

(-)/home/alan/bin/portlint (+18 lines)
Lines 1470-1475 Link Here
1470
	}
1472
	}
1471
1473
1472
	#
1474
	#
1475
	# whole file: empty(${VARIABLE})
1476
	#
1477
	if ($parenwarn) {
1478
		print "OK: checking for empty(\${VARIABLE}).\n" if ($verbose);
1479
		if ($whole =~ /empty\(\${[\w\d]+/) {
1480
			my $lineno = &linenumber($`);
1481
			&perror("WARN", $file, $lineno, "use empty(VARIABLE), instead of ".
1482
				"empty(\${VARIABLE}).");
1483
		}
1484
	}
1485
1486
	#
1473
	# whole file: use of !=
1487
	# whole file: use of !=
1474
	#
1488
	#
1475
	print "OK: checking for use of !=.\n" if ($verbose);
1489
	print "OK: checking for use of !=.\n" if ($verbose);
Lines 1775-1780 Link Here
1775
		&perror("FATAL", $file, -1, "Both NOPORTDOCS and PORT_OPTIONS:MDOCS are found ".
1789
		&perror("FATAL", $file, -1, "Both NOPORTDOCS and PORT_OPTIONS:MDOCS are found ".
1776
			"Remove one or another.");
1790
			"Remove one or another.");
1777
	}
1791
	}
1792
	print "OK: checking for use of NOPORTDOCS.\n" if ($verbose);
1793
	if ($whole =~ /NOPORTDOCS/) {
1794
		my $lineno = &linenumber($`);
1795
		&perror("WARN", $file, $lineno, "NOPORTDOCS found.  Consider ".
1796
			"using  PORT_OPTIONS:MDOCS");
1797
	}
1778
1798
1779
	#
1799
	#
1780
	# whole file: check for USE_GETTEXT
1800
	# whole file: check for USE_GETTEXT

Return to bug 172621