Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

majioa
Copy link
Owner

@majioa majioa commented May 6, 2022

Auto corrected by following Format Ruby Code

Click here to configure it on awesomecode.io

@@ -257,7 +256,8 @@
end

То(/^исключение невѣрнѣ опции вызвано будетъ$/) do
expect { @проц.call }.to raise_error(Rdoba::Mixin::InvalidOption)
expect { @проц.call }
.to raise_error(Rdoba::Mixin::InvalidOption)
Copy link

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 "Плодна Страза со значенꙇемъ '#{@плодъ}' должна имѣти значенꙇе '#{плодъ}'"
Copy link

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]
Copy link

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
Copy link

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]]))
Copy link

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"
Copy link

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]+)'
Copy link

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'
Copy link

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'
'(.+)'
Copy link

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'
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant