Skip to content

Commit 653f7ae

Browse files
committed
sample lines for ignoring URL/HeadURL expansions in subversion
1 parent bf598c5 commit 653f7ae

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

CodeSniffer/Standards/Generic/Tests/Files/LineLengthUnitTest.inc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,25 @@ echo 'hi';
4444
<?php
4545
/**
4646
* Comments contining CVS IDs can be long, but should be ignored because
47-
* they cannot be changed by the developer. Same with license URLs.
47+
* they cannot be changed by the developer. Same with license URLs. Also
48+
* and URL/HeadURL in subversion.
4849
*
4950
* @license http://www.freebsd.org/copyright/freebsd-license.html BSD License (2 Clause)
51+
*
52+
* $URL: file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $
53+
* $HeadURL: https://svn.example.org/file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $
5054
*/
55+
56+
// $URL: file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $
57+
// $HeadURL: https://svn.example.org/file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $
58+
59+
echo '$URL: file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $';
60+
echo '$HeadURL: https://svn.example.org/file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $'
61+
5162
?>
5263

64+
* $URL: file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $
65+
* $HeadURL: https://svn.example.org/file/paths/in/subversion/are/prefixed/by/URL/or/HeadURL/and/can/be/very/long/especially/if/they/are/in/a/branch $
66+
5367
<?php
5468
// This is another really long comment that is going to go well over 100 characters, with no closing php tag after it.

0 commit comments

Comments
 (0)