Zend Framework

Multiple files in library/ or in tests/ don't have the svn:keywords=id

Details

Description

I will add them if necessary.
Currently we have this page: http://framework.zend.com/wiki/display/ZFDEV/Subversion+Standards#SubversionStandards-TipSVNautoprops
If it's important, perhaps we could add it into coding standards.

Issue Links

Activity

Hide
Robin Skoglund added a comment -

In my opinion, ZF should stop mixing SCM properties in files. I find it weird, clumsy, and unnecessary that each file in a repository has a line that says when the file was last updated in the particular source control repository the file is tied to at the moment. This information is available in the SCM itself, and should not have to be part of the actual file contents.

Show
Robin Skoglund added a comment - In my opinion, ZF should stop mixing SCM properties in files. I find it weird, clumsy, and unnecessary that each file in a repository has a line that says when the file was last updated in the particular source control repository the file is tied to at the moment. This information is available in the SCM itself, and should not have to be part of the actual file contents.
Hide
Thomas Weidner added a comment -

This information is usefull for debugging.
Often a issue is raised against a release or trunk version and when the user gives this revision number we can see if he is at the latest release (for example switched incubator with core directory and such).

Also users often only take parts of the framework itself or even mix components from one version with some from another version (because things are fixed in the other version).

Even if we always say that this should not be done, in fact it is done.
This ID line is the only way for us to know what revision this file is.

Show
Thomas Weidner added a comment - This information is usefull for debugging. Often a issue is raised against a release or trunk version and when the user gives this revision number we can see if he is at the latest release (for example switched incubator with core directory and such). Also users often only take parts of the framework itself or even mix components from one version with some from another version (because things are fixed in the other version). Even if we always say that this should not be done, in fact it is done. This ID line is the only way for us to know what revision this file is.
Hide
Pádraic Brady added a comment -

I like having the ID set on normal class files - it's not hugely informative but it can be helpful to have something at a glance before calling up svn log or svn blame for the details. I'm not sure it's necessary for unit tests though - I certainly haven't added them. Of course I don't even add comment headers to unit tests - they show nothing unique or licensable other than use cases for the classes.

I would also advise against adding more overburdening conditions into the coding standard - they are getting so restrictive that I've taken (with a little bit of shame) to ignoring them in favour of the PEAR CS. I noticed for the first time last week the following gem: Use of the "elseif" construct is not allowed in favor of the "else if" combination. It's a nice touch, but it's also the secondary form of that keyword - not the primary. It will also produce a parse error when you try it within a view script!

Show
Pádraic Brady added a comment - I like having the ID set on normal class files - it's not hugely informative but it can be helpful to have something at a glance before calling up svn log or svn blame for the details. I'm not sure it's necessary for unit tests though - I certainly haven't added them. Of course I don't even add comment headers to unit tests - they show nothing unique or licensable other than use cases for the classes. I would also advise against adding more overburdening conditions into the coding standard - they are getting so restrictive that I've taken (with a little bit of shame) to ignoring them in favour of the PEAR CS. I noticed for the first time last week the following gem: Use of the "elseif" construct is not allowed in favor of the "else if" combination. It's a nice touch, but it's also the secondary form of that keyword - not the primary. It will also produce a parse error when you try it within a view script!
Hide
Robin Skoglund added a comment -

Point taken. I can see now how it might be useful in some situations. It shouldn't be necessary for unit tests, though, as Pádraic states.

I also agree with Pádraic on the 'elseif' / 'else if' struct, but that's another issue

Show
Robin Skoglund added a comment - Point taken. I can see now how it might be useful in some situations. It shouldn't be necessary for unit tests, though, as Pádraic states. I also agree with Pádraic on the 'elseif' / 'else if' struct, but that's another issue
Hide
Mickael Perraud added a comment -

Added on library directory before 1.9 code freeze (SVN16971):

  • 10180 PHP files
  • 911 files without keyword
  • 2 files without associated phpDoc tag (@version $Id$)
Show
Mickael Perraud added a comment - Added on library directory before 1.9 code freeze (SVN16971):
  • 10180 PHP files
  • 911 files without keyword
  • 2 files without associated phpDoc tag (@version $Id$)
Hide
Dolf Schimmel (Freeaqingme) added a comment -

Removing zend_db_adapter_xml from involved components as there is no such component in the first place

Show
Dolf Schimmel (Freeaqingme) added a comment - Removing zend_db_adapter_xml from involved components as there is no such component in the first place
Hide
Thomas Weidner added a comment -

Removed Zend_Calender... no such component available

Show
Thomas Weidner added a comment - Removed Zend_Calender... no such component available
Hide
Thomas Weidner added a comment -

Checked and erased Zend_Currency

Show
Thomas Weidner added a comment - Checked and erased Zend_Currency
Hide
Thomas Weidner added a comment -

Checked and erased Zend_Date

Show
Thomas Weidner added a comment - Checked and erased Zend_Date
Hide
Mickael Perraud added a comment -

Added on PHP files in tests directory with SVN17667:

  • 14827 PHP files
  • 248 files without keyword
Show
Mickael Perraud added a comment - Added on PHP files in tests directory with SVN17667:
  • 14827 PHP files
  • 248 files without keyword
Hide
Mickael Perraud added a comment -

Closed with SVN 17668

Show
Mickael Perraud added a comment - Closed with SVN 17668

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: