Mode | Name | Size | |
-rw-r--r-- | .cvsignore | 54 | logstatsplain |
-rw-r--r-- | .perl_checker | 166 | logstatsplain |
-rw-r--r-- | ChangeLog | 1837273 | logstatsplain |
-rw-r--r-- | Makefile | 9922 | logstatsplain |
-rw-r--r-- | Makefile.config | 1561 | logstatsplain |
-rw-r--r-- | Makefile.drakxtools | 2940 | logstatsplain |
d--------- | Newt | 304 | logstatsplain |
d--------- | Xconfig | 565 | logstatsplain |
-rw-r--r-- | any.pm | 36011 | logstatsplain |
-rw-r--r-- | apps.net_monitor | 73 | logstatsplain |
-rw-r--r-- | authentication.pm | 8280 | logstatsplain |
-rw-r--r-- | bootloader.pm | 38317 | logstatsplain |
-rw-r--r-- | c.pm | 352 | logstatsplain |
d--------- | c | 431 | logstatsplain |
-rw-r--r-- | class_discard.pm | 189 | logstatsplain |
-rwxr-xr-x | commands | 394 | logstatsplain |
-rw-r--r-- | commands.pm | 13917 | logstatsplain |
-rw-r--r-- | common.pm | 7433 | logstatsplain |
-rw-r--r-- | crypto.pm | 5524 | logstatsplain |
-rw-r--r-- | detect_devices.pm | 27133 | logstatsplain |
-rw-r--r-- | devices.pm | 7206 | logstatsplain |
d--------- | diskdrake | 278 | logstatsplain |
-rw-r--r-- | do_pkgs.pm | 5739 | logstatsplain |
-rw-r--r-- | drakxtools.spec | 117291 | logstatsplain |
-rw-r--r
< class='ls-blob pm' href='/software/drakx/tree/perl-install/fs.pm?h=2.65&id=a327af363f1b0b10f1a6332da1ad62e52598f237'>fs.pm | 28993 | log
{
$tags[$match[1]] = array();
}
$tags[$match[1]][] = array($match[2], $i);
}
}
// Check that the first and last line is empty
if (trim($tokens[$start + 1]['content']) !== '*')
{
$message = 'The first file comment line should be empty.';
$phpcsFile->addWarning($message, ($start + 1));
}
if (trim($tokens[$end - 1]['content']) !== '*')
{
$message = 'The last file comment line should be empty.';
$phpcsFile->addWarning($message, $end - 1);
}
//$this->processPackage($phpcsFile, $start, $tags);
//$this->processVersion($phpcsFile, $start, $tags);
$this->processCopyright($phpcsFile, $start, $tags);
$this->processLicense($phpcsFile, $start, $tags);
}
/**
* Checks that the tags array contains a valid package tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
*/
protected function processPackage(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
{
if (!isset($tags['package']))
{
$message = 'Missing require @package tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
else if (preg_match('/^([\w]+)$/', $tags['package'][0]) === 0)
{
$message = 'Invalid content found for @package tag.';
$phpcsFile->addWarning($message, $tags['package'][1]);
}
}
/**
* Checks that the tags array contains a valid version tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
*/
protected function processVersion(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
{
if (!isset($tags['version']))
{
$message = 'Missing require @version tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
else if (preg_match('/^\$Id:[^\$]+\$$/', $tags['version'][0]) === 0)
{
$message = 'Invalid content found for @version tag, use "$Id: $".';
$phpcsFile->addError($message, $tags['version'][1]);
}
}
/**
* Checks that the tags array contains a valid copyright tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
*/
protected function processCopyright(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
{
$copyright = '(c) phpBB Limited <https://www.phpbb.com>';
if (!isset($tags['copyright']))
{
$message = 'Missing require @copyright tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
}
else if ($tags['copyright'][0][0] !== $copyright)
{
$message = 'Invalid content found for the first @copyright tag, use "' . $copyright . '".';
$phpcsFile->addError($message, $tags['copyright'][0][1]);
}
}
/**
* Checks that the tags array contains a valid license tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.atsplain |
-rw-r--r-- | lang.pm | 53087 | logstatsplain |
-rw-r--r-- | list.sparc | 2771 | logstatsplain |
-rw-r--r-- | log.pm | 1366 | logstatsplain |
-rw-r--r-- | loopback.pm | 3426 | logstatsplain |
-rw-r--r-- | lvm.pm | 3931 | logstatsplain |
-rw-r--r-- | modules.pm | 12636 | logstatsplain |
d--------- | modules | 83 | logstatsplain |
-rw-r--r-- | mouse.pm | 19320 | logstatsplain |
d--------- | network | 532 | logstatsplain |
-rw-r--r-- | pam.net_monitor | 225 | logstatsplain |
-rw-r--r-- | partition_table.pm | 30849 | logstatsplain |
d--------- | partition_table | 277 | logstatsplain |
d--------- | patch | 460 | logstatsplain |
-rwxr-xr-x | perl2etags | 154 | logstatsplain |
d--------- | pixmaps | 2290 | logstatsplain |
-rw-r--r-- | pkgs.pm | 41606 | logstatsplain |
d--------- | printer | 405 | logstatsplain |
-rw-r--r-- | raid.pm | 4545 | logstatsplain |
d--------- | resize_fat | 531 | logstatsplain |
-rw-r--r-- | run_program.pm | 3894 | logstatsplain |
d--------- | sbus_probing | 35 | logstatsplain |
-rwxr-xr-x | scanner.pm | 19591 | logstatsplain |
d--------- | security | 179 | logstatsplain |
-rw-r--r-- | services.pm | 17030 | logstatsplain |
d--------- | share | 1672 | logstatsplain |
-rw-r--r-- | standalone.pm | 10377 | logstatsplain |
d--------- | standalone | 1645 | logstatsplain |
-rw-r--r-- | steps.pm | 2356 | logstatsplain |
-rw-r--r-- | swap.pm | 668 | logstatsplain |
-rw-r--r-- | timezone.pm | 7884 | logstatsplain |
-rw-r--r-- | ugtk2.pm | 57320 | logstatsplain |
d--------- | unused | 288 | logstatsplain |
-rwxr-xr-x | verify_c | 303 | logstatsplain |
-rw-r--r-- | wizards.pm | 7821 | logstatsplain |