debian/0000755000000000000000000000000012170020216007155 5ustar debian/compat0000644000000000000000000000000212170020216010353 0ustar 8 debian/control0000644000000000000000000000170312170020216010561 0ustar Source: php-codesniffer Section: php Priority: optional Maintainer: PKG-PHP-PEAR Uploaders: Thomas Goirand Build-Depends: debhelper (>= 8), pkg-php-tools, phpunit (>= 3.6), php-timer Build-Depends-Indep: php-pear Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-codesniffer.git Vcs-Git: http://anonscm.debian.org/git/pkg-php/php-codesniffer.git Homepage: http://pear.php.net/package/PHP_CodeSniffer Package: php-codesniffer Architecture: all Depends: php5-cli, php-pear, ${misc:Depends}, php-timer Description: PHP, CSS and JavaScript coding standard analyzer and checker PHP_CodeSniffer is a PHP5 script that tokenises PHP, JavaScript and CSS files to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers. debian/manpages0000644000000000000000000000001712170020216010671 0ustar debian/phpcs.1 debian/source/0000755000000000000000000000000012170020216010455 5ustar debian/source/format0000644000000000000000000000001412170020216011663 0ustar 3.0 (quilt) debian/tests_run0000755000000000000000000000024512170020216011132 0ustar #!/bin/sh set -e pear_pkg=`ls | grep PHP_CodeSniffer` cd ${pear_pkg} PKG_ROOT=`pwd` cd tests phpunit -d include_path=".:/usr/share/php:${PKG_ROOT}" AllTests.php debian/gbp.conf0000644000000000000000000000016412170020216010575 0ustar [DEFAULT] upstream-branch = upstream-sid debian-branch = debian-sid [git-buildpackage] export-dir = ../build-area/ debian/patches/0000755000000000000000000000000012170020216010604 5ustar debian/patches/series0000644000000000000000000000004412170020216012017 0ustar 0010-path-to-codesniffer.conf.patch debian/patches/0010-path-to-codesniffer.conf.patch0000644000000000000000000000214012170020216016765 0ustar Description: Fixes path of CodeSniffer.conf in /etc Author: Thomas Goirand Bug-Debian: http://bugs.debian.org/470294 Forwarded: not-needed Last-Update: 2013-07-12 --- php-codesniffer-1.5.0~rc2.orig/PHP_CodeSniffer-1.5.0RC2/CodeSniffer.php +++ php-codesniffer-1.5.0~rc2/PHP_CodeSniffer-1.5.0RC2/CodeSniffer.php @@ -2009,7 +2009,7 @@ class PHP_CodeSniffer public static function setConfigData($key, $value, $temp=false) { if ($temp === false) { - $configFile = dirname(__FILE__).'/CodeSniffer.conf'; + $configFile = '/etc/php-codesniffer/CodeSniffer.conf'; if (is_file($configFile) === false && strpos('@data_dir@', '@data_dir') === false ) { @@ -2065,7 +2065,7 @@ class PHP_CodeSniffer return $GLOBALS['PHP_CODESNIFFER_CONFIG_DATA']; } - $configFile = dirname(__FILE__).'/CodeSniffer.conf'; + $configFile = '/etc/php-codesniffer/CodeSniffer.conf'; if (is_file($configFile) === false) { $configFile = '@data_dir@/PHP_CodeSniffer/CodeSniffer.conf'; } debian/watch0000644000000000000000000000045412170020216010211 0ustar version=3 opts=uversionmangle=s/(\d)[\.\-]?((?:rc|RC|pre)\.?\d+(?:-\d+)?)$/$1~$2/,dversionmangle=s/(\d)[\.\-]?((?:rc|RC|pre)\.?\d+(?:-\d+)?)$/$1~$2/ \ http://pear.php.net/package/PHP_CodeSniffer/download \ (?:.*/|.*=|)PHP_CodeSniffer[\-\._](\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)(?:/\S*)? debian/changelog0000644000000000000000000000341012170020216011025 0ustar php-codesniffer (1.5.0~rc2-1) unstable; urgency=low * New upstream release. * Refreshed patch. * Standards-Version is now 3.9.4. * Canonical VCS URLs. -- Thomas Goirand Fri, 12 Jul 2013 15:16:25 +0000 php-codesniffer (1.3.4-1) unstable; urgency=low * Adopting the package (Closes: #679251). * Fixes path of CodeSniffer.conf in /etc with a patch (Closes: #470294). -- Thomas Goirand Thu, 19 Jul 2012 15:11:03 +0000 php-codesniffer (1.3.4-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release (Closes: #599617, #634825). * Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the upstream license changed). * Switched package to pkg-php-tools and debhelper 8 sequencer. * Now running unit tests at build time (so depends on phpunit (>= 3.6)). * Section is now PHP. * Added missing Build-Depends-Indep: php-pear. * Added missing ${misc:Depends}. * Added Vcs fields. * Added homepage field. * Reviewed short and long description. * Added dependency on php-timer. * Standards-Version: is now 3.9.3 (lots of changes, see above...). -- Thomas Goirand Thu, 31 May 2012 16:37:24 +0000 php-codesniffer (1.1.0-1) unstable; urgency=low * New upstream release * Acknowledge NMU, thanks Jan -- Jack Bates Wed, 01 Oct 2008 17:39:43 -0700 php-codesniffer (1.0.1-1.1) unstable; urgency=low * Non-maintainer upload * Depend on php-pear (Closes: #470291) * Remove some trailing whitespaces from debian/* -- Jan Wagner Fri, 21 Mar 2008 23:29:33 +0100 php-codesniffer (1.0.1-1) unstable; urgency=low * Initial release (Closes: #465179) -- Jack Bates Thu, 07 Feb 2008 10:29:15 -0800 debian/phpcs.10000644000000000000000000000523612170020216010362 0ustar .TH phpcs 1 .SH NAME phpcs - php code sniffer cli tool .SH SYNOPSIS .B phpcs .B [\-nwlsapvi] [\-d key[=value]] .B [\-\-report=] [\-\-report\-file=] [\-\-report-=] ... .B [\-\-report\-width=] [\-\-generator=] [\-\-tab\-width=] .B [\-\-severity=] [\-\-error\-severity=] [\-\-warning\-severity=] .B [\-\-config\-set key value] [\-\-config\-delete key] [\-\-config-show] .B [\-\-standard=] [\-\-sniffs=] [\-\-encoding=] .B [\-\-extensions=] [\-\-ignore=] ... .SH DESCRIPTION .LP .I phpcs (or PHP_CodeSniffer) is a PHP5 script that tokenises PHP, JavaScript and CSS files to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers. .SH PARAMETERS .LP .I .IP One or more files and/or directories to check .LP .I .IP A comma separated list of file extensions to check (only valid if checking a directory) .LP .I .IP A comma separated list of patterns to ignore files and directories .LP .I .IP The encoding of the files being checked (default is iso-8859-1) .LP .I .IP A comma separated list of sniff codes to limit the check to (all sniffs must be part of the specified standard) .LP .I .IP The minimum severity required to display an error or warning .LP .I .IP The name or path of the coding standard to use .LP .I .IP The number of spaces each tab represents .LP .I .IP The name of a doc generator to use (forces doc generation instead of checking) .LP .I .IP Print either the "full", "xml", "checkstyle", "csv", "emacs", "source", "summary", "svnblame", "gitblame" or "hgblame" report (the "full" report is printed by default) .LP .I .IP Write the report to the specified file path .LP .I .IP How many columns wide screen reports should be printed .SH "OPTION" .LP .B \-n .IP Do not print warnings (shortcut for \-\-\-warning\-severity=0) .LP .B \-w .IP Print both warnings and errors (on by default) .LP .B \-l .IP Local directory only, no recursion .LP .B \-s .IP Show sniff codes in all reports .LP .B \-a .IP Run interactively .LP .B \-p .IP Show progress of the run .LP .B \-v[v][v] .IP Print verbose output .LP .B \-i .IP Show a list of installed coding standards .LP .B \-d .IP Set the [key] php.ini value to [value] or [true] if \-value is omitted .LP .B \-\-help .IP Print the help message .LP .B \-\-version .IP Print version information debian/copyright0000644000000000000000000000706412170020216011117 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Greg Sherwood Source: http://pear.php.net/package/PHP_CodeSniffer/download Files: debian/* Copyright: (c) 2008, Jack Bates (c) 2012, Thomas Goirand License: LGPL-2.1 Files: * Copyright: (c) 1997-2012 The PHP Group (c) 2006-2012, Squiz Pty Ltd (ABN 77 084 670 600) (c) SQLI (c) Mayflower GmbH (c) mediaSELF Sp. z o.o. (c) Greg Sherwood (c) Marc McIntyre (c) Jack Bates (c) Gabriele Santini (c) Ben Selby (c) Sertan Danis (c) Antonio Carlos Venincio Junior (c) Manuel Pichler (c) Sam Graham (c) Holger Kral (c) Sebastian Bergmann (c) Piotr Karas (c) Mr T (c) Anti Veeranna (c) Alexander Weiss (c) Florian Grandel (c) Andy Brockhurst (c) Leif Wickland (c) Johann-Peter Hartmann License: BSD-3-clause License: LGPL-2.1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Lesser General Public License (LGPL) may be found in /usr/share/common-licenses/LGPL-2.1 License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the Squiz Pty Ltd nor the names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/rules0000755000000000000000000000103212170020216010231 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=phppear --with phppear override_dh_link: dh_link -O--buildsystem=phppear mv debian/php-codesniffer/usr/bin/scripts debian/php-codesniffer/usr/share/doc/php-codesniffer ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) chmod +x ./debian/tests_run ./debian/tests_run endif mkdir -p debian/php-codesniffer/etc/php-codesniffer echo " 'PEAR', \n\ ) \n\ ?>" >debian/php-codesniffer/etc/php-codesniffer/CodeSniffer.conf