-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto corrected by following Format Ruby Code #749
base: master
Are you sure you want to change the base?
Conversation
@@ -257,7 +256,8 @@ | |||
end | |||
|
|||
То(/^исключение невѣрнѣ опции вызвано будетъ$/) do | |||
expect { @проц.call }.to raise_error(Rdoba::Mixin::InvalidOption) | |||
expect { @проц.call } | |||
.to raise_error(Rdoba::Mixin::InvalidOption) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/DotPosition: Place the . on the previous line, together with the method call receiver.
@@ -70,8 +70,7 @@ | |||
end | |||
|
|||
if @плодъ != плодъ | |||
raise "Плодна Страза со значенꙇемъ '#{@плодъ}' должна имѣти значенꙇе " \ | |||
"'#{плодъ}'" | |||
raise "Плодна Страза со значенꙇемъ '#{@плодъ}' должна имѣти значенꙇе '#{плодъ}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming/AsciiIdentifiers: Use only ascii symbols in identifiers.
Metrics/LineLength: Line is too long. [84/80]
@@ -2,7 +2,8 @@ | |||
|
|||
module MixinSupport | |||
def random_string(count) | |||
Random.new.bytes((count + 1) / 2).split('').map do |b| b.ord.to_s(16)end.join[0...count] | |||
Random.new.bytes((count + 1) / 2).split('').map do |b| b.ord.to_s(16) end | |||
.join[0...count] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/DotPosition: Place the . on the previous line, together with the method call receiver.
@@ -2,7 +2,8 @@ | |||
|
|||
module MixinSupport | |||
def random_string(count) | |||
Random.new.bytes((count + 1) / 2).split('').map do |b| b.ord.to_s(16)end.join[0...count] | |||
Random.new.bytes((count + 1) / 2).split('').map do |b| b.ord.to_s(16) end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Style/BlockDelimiters: Prefer {...} over do...end for single-line blocks.
@@ -27,7 +27,7 @@ class Hash | |||
def geta_value(cid, options = {}) | |||
res = | |||
(!cid || cid.empty?) && self || self[cid] || | |||
(options[:сокр] && (self[options[:сокр][cid]] || self[options[:сокр].reverse[cid]])) | |||
(options[:сокр] && (self[options[:сокр][cid]] || self[options[:сокр].reverse[cid]])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [90/80]
@@ -1,7 +1,6 @@ | |||
# frozen_string_literal: true | |||
|
|||
warn "Warning: the module has kept only for backward compatibility\n" \ | |||
"Please use 'rdoba :log' form instead" | |||
warn "Warning: the module has kept only for backward compatibility\nPlease use 'rdoba :log' form instead" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [105/80]
when 's' | ||
'(.+)' | ||
when 'r' | ||
'([IVXLCDMivxlcdm]+)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
'([+\-]?(?:0X)?[A-F0-9.+]+)' | ||
when 's' | ||
'(.+)' | ||
when 'r' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
when 'd' | ||
'([+\-]?(?:0X)?[A-F0-9.+]+)' | ||
when 's' | ||
'(.+)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
'0([0-9]+)' | ||
when 'd' | ||
'([+\-]?(?:0X)?[A-F0-9.+]+)' | ||
when 's' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Auto corrected by following Format Ruby Code
Click here to configure it on awesomecode.io