Skip to content

Commit 400cc55

Browse files
committed
Resolve Lint/CopDirectiveSyntax
``` Offenses: ruby/testdata/example/lib/example/go_struct.rb:4:18: W: Lint/CopDirectiveSyntax: Malformed directive comment detected. Cop names must be separated by commas. Comment in the directive must start with --. class GoStruct # rubocop:disable Lint/EmptyClass Methods are defined in ext/example/go_struct.go ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ruby/testdata/example/test/example/tests_test.rb:174:5: W: Lint/CopDirectiveSyntax: Malformed directive comment detected. Cop names must be separated by commas. Comment in the directive must start with --. # rubocop:disable Style/GlobalVars this is test for global variable ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ```
1 parent e347eb4 commit 400cc55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

33
module Example
4-
class GoStruct # rubocop:disable Lint/EmptyClass Methods are defined in ext/example/go_struct.go
4+
class GoStruct # rubocop:disable Lint/EmptyClass -- Methods are defined in ext/example/go_struct.go
55
end
66
end

ruby/testdata/example/test/example/tests_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class RbAttrTest < Test::Unit::TestCase
171171
assert { Example::Tests.protected_instance_methods(false).include?(:nop_rb_define_protected_method) }
172172
end
173173

174-
# rubocop:disable Style/GlobalVars this is test for global variable
174+
# rubocop:disable Style/GlobalVars -- this is test for global variable
175175
test ".rb_define_variable" do
176176
Example::Tests.rb_define_variable("$global_var", 1)
177177
assert { $global_var == 1 }

0 commit comments

Comments
 (0)