Commit f0375f82 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Enable Style/IndentAssignment Rubocop style cop

See #17478
parent 43c35b0f
...@@ -286,7 +286,7 @@ Style/IdenticalConditionalBranches: ...@@ -286,7 +286,7 @@ Style/IdenticalConditionalBranches:
# Checks the indentation of the first line of the right-hand-side of a # Checks the indentation of the first line of the right-hand-side of a
# multi-line assignment. # multi-line assignment.
Style/IndentAssignment: Style/IndentAssignment:
Enabled: false Enabled: true
# Keep indentation straight. # Keep indentation straight.
Style/IndentationConsistency: Style/IndentationConsistency:
......
...@@ -2,15 +2,15 @@ module API ...@@ -2,15 +2,15 @@ module API
# Licenses API # Licenses API
class Licenses < Grape::API class Licenses < Grape::API
PROJECT_TEMPLATE_REGEX = PROJECT_TEMPLATE_REGEX =
/[\<\{\[] /[\<\{\[]
(project|description| (project|description|
one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here
[\>\}\]]/xi.freeze [\>\}\]]/xi.freeze
YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i.freeze YEAR_TEMPLATE_REGEX = /[<{\[](year|yyyy)[>}\]]/i.freeze
FULLNAME_TEMPLATE_REGEX = FULLNAME_TEMPLATE_REGEX =
/[\<\{\[] /[\<\{\[]
(fullname|name\sof\s(author|copyright\sowner)) (fullname|name\sof\s(author|copyright\sowner))
[\>\}\]]/xi.freeze [\>\}\]]/xi.freeze
# Get the list of the available license templates # Get the list of the available license templates
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment