Zend Framework

Add an Coding Standard Testbed

Details

  • Type: Coding Standards Violation Coding Standards Violation
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: 1.8.0
  • Component/s: None
  • Labels:
    None

Description

We/I are actually adding a testbed which is testing the coding standard with PHP_CodeSniffer.
The reports can be used to fix problems on the coding standard.

Tests can be added for all possible purposes like File Endings, Namings, API Docs, Clauses and much much more.

Details can be found in the wiki within the Zend Coding Standard (RC).

Issue Links

Activity

Hide
Thomas Weidner added a comment -

I attached the actual result of codig standard errors in core and incubator.

Actually only 4 tests have been integrated:

  • No Windows Lineending
  • No closing Tag
  • expected linelength 100 chars, maximum linelength 120 chars
  • No Tabs

I will add other tests related to ZF Coding Standard and present the actual results for the core within here.
Please keep in mind that any change made in core has to be merged into branch !!

Show
Thomas Weidner added a comment - I attached the actual result of codig standard errors in core and incubator. Actually only 4 tests have been integrated:
  • No Windows Lineending
  • No closing Tag
  • expected linelength 100 chars, maximum linelength 120 chars
  • No Tabs
I will add other tests related to ZF Coding Standard and present the actual results for the core within here. Please keep in mind that any change made in core has to be merged into branch !!
Hide
Thomas Weidner added a comment -

Added new coding standard violation file.

A Description of executed tests can be found here:
http://framework.zend.com/wiki/display/ZFDEV/ZF+Coding+Standards+%28RC%29

Show
Thomas Weidner added a comment - Added new coding standard violation file. A Description of executed tests can be found here: http://framework.zend.com/wiki/display/ZFDEV/ZF+Coding+Standards+%28RC%29
Hide
Thomas Weidner added a comment -

The actual testbed contains more than 80 different tests related to the new coding standard.

It is based in PHP_CodeSniffer 1.1.0.a but not errorfree for now. The actual results can be found in the attached codingstadard.zip file.

Show
Thomas Weidner added a comment - The actual testbed contains more than 80 different tests related to the new coding standard. It is based in PHP_CodeSniffer 1.1.0.a but not errorfree for now. The actual results can be found in the attached codingstadard.zip file.
Hide
Thomas Weidner added a comment -

We are not allowed to add a coding standard testbed without writing a proposal even if I was said in past that I don't need it.

I had to delete my existing work from incubator as wished by the Zend Dev-Team.

Feel free to download the non-finished version from my blog in a few days.

Show
Thomas Weidner added a comment - We are not allowed to add a coding standard testbed without writing a proposal even if I was said in past that I don't need it. I had to delete my existing work from incubator as wished by the Zend Dev-Team. Feel free to download the non-finished version from my blog in a few days.

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
2w
Time Spent - 2 weeks