Skip to content

Commit ef2b733

Browse files
committed
Lint: Layout/AccessModifierIndentation
1 parent eb0f443 commit ef2b733

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.rubocop_todo.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-02-14 11:23:16 +0100 using RuboCop version 0.64.0.
3+
# on 2019-02-14 11:28:20 +0100 using RuboCop version 0.64.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 9
10-
# Cop supports --auto-correct.
11-
# Configuration parameters: EnforcedStyle, IndentationWidth.
12-
# SupportedStyles: outdent, indent
13-
Layout/AccessModifierIndentation:
14-
Exclude:
15-
- 'lib/vips/image.rb'
16-
- 'lib/vips/object.rb'
17-
- 'lib/vips/operation.rb'
18-
199
# Offense count: 1
2010
# Cop supports --auto-correct.
2111
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
@@ -128,6 +118,16 @@ Layout/IndentHash:
128118
- 'lib/vips/object.rb'
129119
- 'lib/vips/operation.rb'
130120

121+
# Offense count: 85
122+
# Cop supports --auto-correct.
123+
# Configuration parameters: EnforcedStyle.
124+
# SupportedStyles: normal, rails
125+
Layout/IndentationConsistency:
126+
Exclude:
127+
- 'lib/vips/image.rb'
128+
- 'lib/vips/object.rb'
129+
- 'lib/vips/operation.rb'
130+
131131
# Offense count: 85
132132
# Cop supports --auto-correct.
133133
# Configuration parameters: Width, IgnoredPatterns.

lib/vips/image.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
require 'ffi'
88

99
module Vips
10-
private
10+
private
1111

1212
attach_function :vips_image_new_matrix_from_array,
1313
[:int, :int, :pointer, :int], :pointer
@@ -58,15 +58,15 @@ def self.p2str(pointer)
5858
pointer.read_string
5959
end
6060

61-
public
61+
public
6262

6363
# This class represents a libvips image. See the {Vips} module documentation
6464
# for an introduction to using this class.
6565

6666
class Image < Vips::Object
6767
alias_method :parent_get_typeof, :get_typeof
6868

69-
private
69+
private
7070

7171
# the layout of the VipsImage struct
7272
module ImageLayout
@@ -174,7 +174,7 @@ def write_gc
174174
end
175175
end
176176

177-
public
177+
public
178178

179179
def inspect
180180
"#<Image #{width}x#{height} #{format}, #{bands} bands, " +

lib/vips/object.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
require 'ffi'
88

99
module Vips
10-
private
10+
private
1111

1212
# debugging support
1313
attach_function :vips_object_print_all, [], :void
@@ -18,7 +18,7 @@ module Vips
1818
attach_function :vips_interpretation_get_type, [], :GType
1919
attach_function :vips_coding_get_type, [], :GType
2020

21-
public
21+
public
2222

2323
# some handy gtypes
2424
IMAGE_TYPE = GObject::g_type_from_name "VipsImage"
@@ -39,7 +39,7 @@ module Vips
3939
BLEND_MODE_TYPE = nil
4040
end
4141

42-
private
42+
private
4343

4444
attach_function :vips_enum_from_nick, [:string, :GType, :string], :int
4545
attach_function :vips_enum_nick, [:GType, :int], :string

lib/vips/operation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
require 'ffi'
88

99
module Vips
10-
private
10+
private
1111

1212
attach_function :vips_operation_new, [:string], :pointer
1313

@@ -154,7 +154,7 @@ def set name, value, match_image = nil, flags = 0
154154
super name, value
155155
end
156156

157-
public
157+
public
158158

159159
# This is the public entry point for the vips binding. {call} will run
160160
# any vips operation, for example:

0 commit comments

Comments
 (0)