Skip to content

Commit 3e18eef

Browse files
committed
Add Style/Mixin to .rubocop.yml
1 parent 5253623 commit 3e18eef

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.rubocop.yml

+6
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ Style/SingleLineBlockParams:
6565
Style/PerlBackrefs:
6666
Enabled: false
6767

68+
# Tried to disable in the file itself but this style rubocop was not there in
69+
# ruby 2.0, so it threw Lint/UnneededDisable rubocop offence.
70+
Style/MixinUsage:
71+
Exclude:
72+
- 'lib/daru/view/plot_list.rb'
73+
6874
Layout/SpaceAfterComma:
6975
Enabled: false
7076

lib/daru/view/plot_list.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
require 'daru/view/adapters/googlecharts/display'
55

66
# Otherwise Daru::IRuby module was used and IRuby.html method was not working.
7-
# rubocop:disable Style/MixinUsage
7+
88
include IRuby::Utils if defined?(IRuby)
9-
# rubocop:enable Style/MixinUsage
109

1110
module Daru
1211
module View

0 commit comments

Comments
 (0)