View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001574 | Composr testing platform / automation goals | [All Projects] General / Uncategorised | public | 2014-02-20 14:36 | 2015-11-29 18:28 |
| Reporter | Chris Graham | Assigned To | Chris Graham | ||
| Severity | Feature-request | ||||
| Status | closed | Resolution | won't fix | ||
| Summary | 0001574: Update Composr CQC | ||||
| Description | Update the CQC to whatever the oldest security-supported version of PHP is. PHP 5.3 at the time of current writing. Make that our maintenance policy, we check against the oldest version that any webhost will legitimately have installed. Re-track Composr's minimum requirements explicitly against this moving target, rather than a minimum PHP version. Release the CQC as an independent project on github. Make sure we can check out into our main Composr repository easily, perhaps via git submodules: http://git-scm.com/book/en/Git-Tools-Submodules Tidy up the CQC API, so we have a clear way of defining rules (probably a simple .ini file) and allowing CLE parameters to choose the ruleset and make changes to that ruleset. Properly document the code annotation support (TODO's, marking files as not checked, and defining extra functions/classes that files assume are defined). Competing tools: - PHP_CodeSniffer - PHPMD - PhpStorm reporting - Zend Studio reporting - CodeLobster reporting - Compiler reports: - HHVM - Roadsend - Phalanger The CQC is different to these tools because: 1) it is not designed to be opinionated. It is expected you'll be able to maintain yourself at zero errors with it, so it shouldn't normally show unused variables etc which sometimes are there legitimately. 2) it does static type analysis 3) it has a particular focus on helping avoid security holes, with extra scanning options to show where to test 4) it does a full PHP parse. It does not rely on PHP's inbuilt tokenisation or do regexp matching, which most other tools do. Interesting potential integrations and frontends: - NetBeans plugin http://plugins.netbeans.org/plugin/42434/phpcsmd - Composer - Continuous Integration, e.g. Jenkins - Supported SimpleTest tests (like we use in Composr's test set) - Command line mode (we have this currently) - Java frontend (we have this currently) Realistically we're not going to have time for any of that (except maintaining our Java frontend and Command line mode), but maybe separate tracking issues for them. | ||||
| Tags | No tags attached. | ||||
| Time estimation (hours) | |||||
| Sponsorship open | |||||
|
|
Let's just put weight behind PhpStorm, which is really good. They're our partner now. The CQC can be for our basic internal compliance, for our own stricter set of rules, and we can forget about making it good for the wider public, because PhpStorm already do this extremely well. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-02-26 18:29 | Chris Graham | Category | General => General / Uncategorised |