Skip to content

Commit 8a04a44

Browse files
committed
Fix Layout/LeadingCommentSpace Rubocop offences.
1 parent ccfe744 commit 8a04a44

File tree

7 files changed

+11
-27
lines changed

7 files changed

+11
-27
lines changed

.rubocop.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ require:
22
- rubocop-performance
33
- rubocop-rake
44

5-
inherit_from: .rubocop_todo.yml
6-
75
# Set this to the minimum supported ruby in the gemspec. Otherwise
86
# we get errors if our ruby version doesn't match.
97
AllCops:

.rubocop_todo.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

lib/zip/bzip2/decompress.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
module Zip
66
module Bzip2
7-
class Decompress #:nodoc:
7+
class Decompress # :nodoc:
88
OUTPUT_BUFFER_SIZE = 4096
99

1010
def initialize(options = {})

lib/zip/bzip2/decompressor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
require_relative 'decompress'
44

5-
module Zip #:nodoc:
5+
module Zip # :nodoc:
66
module Bzip2
7-
class Decompressor < ::Zip::Decompressor #:nodoc:
7+
class Decompressor < ::Zip::Decompressor # :nodoc:
88
def initialize(*args)
99
super
1010

lib/zip/bzip2/errors.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MemError < Error
1111
# Initializes a new instance of MemError.
1212
#
1313
# @private
14-
def initialize #:nodoc:
14+
def initialize # :nodoc:
1515
super('Could not allocate enough memory to perform this request')
1616
end
1717
end
@@ -23,7 +23,7 @@ class DataError < Error
2323
#
2424
# @param message [String] Exception message (overrides the default).
2525
# @private
26-
def initialize(message = nil) #:nodoc:
26+
def initialize(message = nil) # :nodoc:
2727
super(
2828
message ||
2929
'Data integrity error detected (mismatch between stored and computed CRCs, ' \
@@ -38,7 +38,7 @@ class MagicDataError < DataError
3838
# Initializes a new instance of MagicDataError.
3939
#
4040
# @private
41-
def initialize #:nodoc:
41+
def initialize # :nodoc:
4242
super('Compressed data does not start with the correct magic bytes (\'BZh\')')
4343
end
4444
end
@@ -48,7 +48,7 @@ class ConfigError < DataError
4848
# Initializes a new instance of ConfigError.
4949
#
5050
# @private
51-
def initialize #:nodoc:
51+
def initialize # :nodoc:
5252
super('libbz2 has been improperly compiled on your platform')
5353
end
5454
end
@@ -59,7 +59,7 @@ class UnexpectedError < Error
5959
#
6060
# @param error_code [Integer] The error_code reported by libbz2.
6161
# @private
62-
def initialize(error_code) #:nodoc:
62+
def initialize(error_code) # :nodoc:
6363
super("An unexpected error was detected (error code: #{error_code})")
6464
end
6565
end

lib/zip/bzip2/ffi/libbz2.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module FFI
3434
# See bzlib.h and http://bzip.org/docs.html.
3535
#
3636
# @private
37-
module Libbz2 #:nodoc:
37+
module Libbz2 # :nodoc:
3838
extend ::FFI::Library
3939

4040
ffi_lib ['bz2', 'libbz2.so.1', 'libbz2.dll']
@@ -62,7 +62,7 @@ module Libbz2 #:nodoc:
6262
callback :bzfree, %i[pointer pointer], :void
6363

6464
# typedef struct { ... } bz_stream;
65-
class BzStream < ::FFI::Struct #:nodoc:
65+
class BzStream < ::FFI::Struct # :nodoc:
6666
layout :next_in, :pointer,
6767
:avail_in, :uint,
6868
:total_in_lo32, :uint,

lib/zip/bzip2/libbz2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module Zip
77
module Bzip2
8-
class Libbz2 #:nodoc:
8+
class Libbz2 # :nodoc:
99
def self.finalizer(stream)
1010
lambda do |_id|
1111
FFI::Libbz2::BZ2_bzDecompressEnd(stream)

0 commit comments

Comments
 (0)