Skip to content

Commit

Permalink
Implement checking and fixing of existing DocBlocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 6, 2017
1 parent 7724fa7 commit bd6b589
Show file tree
Hide file tree
Showing 2 changed files with 275 additions and 62 deletions.
14 changes: 14 additions & 0 deletions framework/Refactor/lib/Horde/Refactor/Config/FileLevelDocBlock.php
Expand Up @@ -130,13 +130,27 @@ class FileLevelDocBlock extends Base
*/
public $license = '...';

/**
* Regular expression to extract license name from description.
*
* @var string
*/
public $licenseExtractRegexp = '/See the enclosed file (?:LICENSE|COPYING) for license information \((GPL|LGPL(?:-21)?|BSD|ASL)\)\. If you(?: |\n)did(?: |\n)not receive this file, see https?:\/\/www\.horde\.org\/licenses\/(?:gpl|lgpl(?:21)?|bsd|apache)\./';

/**
* Default license URL for new, empty DocBlocks.
*
* @var string
*/
public $licenseUrl = 'http://www.horde.org/licenses/...';

/**
* Regular expression to extract license URL from description.
*
* @var string
*/
public $licenseUrlExtractRegexp = '/See the enclosed file (?:LICENSE|COPYING) for license information \((?:GPL|LGPL(?:-21)?|BSD|ASL)\)\. If you(?: |\n)did(?: |\n)not receive this file, see (https?:\/\/www\.horde\.org\/licenses\/(?:gpl|lgpl(?:21)?|bsd|apache))\./';

/**
* Default copyright year for new, empty DocBlocks.
*
Expand Down

0 comments on commit bd6b589

Please sign in to comment.