Skip to content

Commit

Permalink
indentをrubocopで矯正する
Browse files Browse the repository at this point in the history
  • Loading branch information
jiikko committed Jun 24, 2023
1 parent d3ce306 commit 026dd1f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Layout:
Naming:
Enabled: false

Layout/AccessModifierIndentation:
Enabled: true

Layout/IndentationConsistency:
Enabled: true

Lint/ConstantDefinitionInBlock:
Enabled: true
Exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
allow(instance).to receive(:send_switch)
end

it { expect { subject }.not_to raise_error }
it { expect { subject }.not_to raise_error }
end
end
6 changes: 3 additions & 3 deletions spec/lib/procon_bypass_man/procon/analog_stick_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

subject { described_class.new(binary: binary).relative_hypotenuse }

it do
expect(subject).to eq(182.200439)
end
it do
expect(subject).to eq(182.200439)
end
end
end
6 changes: 3 additions & 3 deletions spec/lib/procon_bypass_man/procon/rumble_binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

describe '#raw' do
let(:data) { "100d0001404000014040" }
it do
expect(instance.raw).to eq(binary)
end
it do
expect(instance.raw).to eq(binary)
end
end

describe 'noop!' do
Expand Down

0 comments on commit 026dd1f

Please sign in to comment.