jmolivas / phpqa Goto Github PK
View Code? Open in Web Editor NEWPHPQA all-in-one Analyzer CLI tool
License: MIT License
PHPQA all-in-one Analyzer CLI tool
License: MIT License
After setup, running the following command-
phpqa analyze --project=drupal --files=sites/all/modules/custom/
results in no scanned files.
Hi.
Newbie here. I tried to install through composer on Fedora 22 and got an error:
[InvalidArgumentException]
Could not find package jmolivas/phpqa at any version for your minimum-stabi
lity (stable). Check the package spelling or your minimum-stability
It's very likely that I lack some configuration, but I don't know where or what to look.
Attaching a screenshot of my console just because I can.
The entered options are for proc_open.
This example needs to rewrite ...
phpcs:
enabled: true
exception: false
options:
standard: PSR2
severity: 0
ignore: /vendor
arguments:
- '-n'
...in this one.
phpcs:
enabled: true
exception: false
arguments:
- '--standard=PSR2'
- '--severity=0'
- '--ignore=/vendor'
- '-n'
Drupal 7 example:
phpcs:
enabled: true
exception: false
file:
standard: vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml
arguments:
- '--extensions=php,module,inc,install,test,profile,theme'
It would be great if this looked for the configuration file within the current working directory (like box, phpunit, phpdox, etc) as well as supporting both phpqa.yml
and phpqa.yml.dist
.
This way I could specify the type of project, and what tools/config to use on a per-project basis.
I'd like to add phpca to a project via composer require jmolivas/phpqa=@dev --dev
But that errors as phpca does not find its binaries, e.g.
[Exception]
bin/parallel-lint do not exist!
The binary exits in vendor/bin, also linking it to bin does not help.
Add support for WordPress
projects by adding PHP_CodeSniffer rules
Third party dependency list that provides WordPress PHP_CodeSniffer rules:
Feel free to suggest any other project.
- jmolivas/phpqa 0.4.0 requires squizlabs/php_codesniffer 2.5.1 -> satisfiable by squizlabs/php_codesniffer[2.5.1] but these conflict with your requirements or minimum-stability.
Could we make it squizlabs/php_codesniffer >=2.5.1 <3.0
Hey Jesus,
very cool project. Thank you.
I just want to drop a note that a project with the name phpqa
is already out there.
Checkout https://github.com/EdgedesignCZ/phpqa
Analyze PHP code with one command https://edgedesigncz.github.io/phpqa
I just want to let you know about this. Personally i dont mind, but this might raise confusion.
An interactive phpqa init
would be great, asking to enable tools, and where their config files (or whatever makes sense config options) should be set to.
Is it possible to integrate Infection in the future?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.