Package: wnpp
Severity: wishlist
Owner: Ahmed Gamal <
ahmed.gamal9541@gmail.com>
* Package name : php-squizlabs-php-codesniffer
Version : 3.7.2
Upstream Author : Greg Sherwood <
squiz@squiz.net>
* URL :
https://github.com/squizlabs/PHP_CodeSniffer* License : BSD-3-Clause
Programming Lang: PHP
Section : php
Description:
PHP coding standard enforcement tool
This package provides PHP_CodeSniffer, a set of two PHP scripts that tokenize
PHP, _javascript_ and CSS files to detect violations of defined coding standards.
The main `phpcs` script detects violations, while `phpcbf` automatically
corrects coding standard violations.
PHP_CodeSniffer is an essential development tool that ensures code remains
clean and consistent by enforcing coding standards like PSR-12, PEAR, and
custom standards. It helps maintain code quality and consistency across
development teams.
Rationale:
This package is required as a dependency for FOSSology, an open source license
compliance system. FOSSology uses PHP-based tools for source code analysis and
license detection, which need comprehensive code quality tools to ensure
maintainable and consistent codebase.
The php-squizlabs-php-codesniffer package is essential for:
- Enforcing coding standards in FOSSology's PHP components
- Maintaining code quality and consistency across the codebase
- Automated code style checking and fixing
- Supporting development workflow with coding standard compliance
- Ensuring readable and maintainable code for license detection algorithms
- Integration with CI/CD pipelines for automated code quality checks
Technical Details:
- Requires PHP >= 5.4.0
- Provides two command-line tools: phpcs and phpcbf
- Supports multiple coding standards (PSR-12, PEAR, custom)
- Tokenizes PHP, _javascript_, and CSS files
- Includes extensive rule sets for various coding standards
- BSD-3-Clause licensed for maximum compatibility
- Provides both library and executable components
Dependencies:
- php (>= 5.4.0)
- php-ext-tokenizer
- php-ext-xmlwriter
- php-ext-simplexml
- Build dependencies: phpunit
The package will be maintained by Ahmed Gamal <
ahmed.gamal9541@gmail.com> as part
of the FOSSology packaging effort.
--
Ahmed Gamal
FOSSology Debian Packaging Team