diff options
| author | Robert Speicher <robert@gitlab.com> | 2016-05-30 17:41:43 +0000 |
|---|---|---|
| committer | Robert Speicher <robert@gitlab.com> | 2016-05-30 17:41:43 +0000 |
| commit | a8e80d4a59a4e071c61a2789611aaf7a300bf8f8 (patch) | |
| tree | 8e6e959c35bb6959155a55576271c94a6974b7ed /lib/api | |
| parent | 38e0e399de115111fdbbfd890503519ad58e29a3 (diff) | |
| parent | f0375f8226a28e95dbac54156fa55926b8c5def4 (diff) | |
| download | gitlab-ce-a8e80d4a59a4e071c61a2789611aaf7a300bf8f8.tar.gz | |
Merge branch 'style/enable-rubocop-indent-assignment-cop' into 'master'
Enable Style/IndentAssignment Rubocop style cop
Checks the indentation of the first line of the right-hand-side of a multi-line assignment.
See #17478
See merge request !4348
Diffstat (limited to 'lib/api')
| -rw-r--r-- | lib/api/licenses.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/api/licenses.rb b/lib/api/licenses.rb index 187d2c04703..be0e113fbcb 100644 --- a/lib/api/licenses.rb +++ b/lib/api/licenses.rb @@ -2,15 +2,15 @@ module API # Licenses API class Licenses < Grape::API PROJECT_TEMPLATE_REGEX = - /[\<\{\[] - (project|description| - one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here - [\>\}\]]/xi.freeze + /[\<\{\[] + (project|description| + one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here + [\>\}\]]/xi.freeze YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i.freeze FULLNAME_TEMPLATE_REGEX = - /[\<\{\[] - (fullname|name\sof\s(author|copyright\sowner)) - [\>\}\]]/xi.freeze + /[\<\{\[] + (fullname|name\sof\s(author|copyright\sowner)) + [\>\}\]]/xi.freeze # Get the list of the available license templates # |
