omnizip 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +76 -306
- data/README.adoc +79 -8
- data/lib/omnizip/crypto/aes256/cipher.rb +0 -1
- data/lib/omnizip/crypto/aes256/key_derivation.rb +0 -1
- data/lib/omnizip/crypto/aes256.rb +3 -3
- data/lib/omnizip/crypto.rb +11 -0
- data/lib/omnizip/formats/ole/allocation_table.rb +7 -2
- data/lib/omnizip/formats/ole/dirent.rb +8 -2
- data/lib/omnizip/formats/ole/header.rb +4 -1
- data/lib/omnizip/formats/ole/storage.rb +23 -8
- data/lib/omnizip/formats/ole/types/variant.rb +10 -3
- data/lib/omnizip/formats/rpm/writer.rb +142 -28
- data/lib/omnizip/formats.rb +31 -0
- data/lib/omnizip/io.rb +13 -0
- data/lib/omnizip/version.rb +1 -1
- data/lib/omnizip/zip.rb +14 -0
- data/lib/omnizip.rb +61 -96
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2372688ac11a72fe626c2c6eaaa515b5e293d4ca575a10c3bdc87f8da0216b88
|
|
4
|
+
data.tar.gz: a7c9482041e423f63b8a6c3a5ecbeaaf1be2255a30e729cbb0766b038ec2cf29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a535726a90422c01fbd022ba0b9a807ecde2130e3aa676feb634feb9376464efd65e52921bd219aeb3492c8ad053df6219f26d714d5050ab74d1030bdf9ef763
|
|
7
|
+
data.tar.gz: 9ae4e5f396f6eec31512f8c92d730d6ca4caef34171c6b22c3f3768744907839959b4083b3e49689d4494f0ef95cd170aad09490e44e0081b410714d91c6a75f
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,168 +1,91 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-02-
|
|
3
|
+
# on 2026-02-21 00:13:56 UTC using RuboCop version 1.81.6.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 40
|
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
|
11
11
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
12
12
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
13
13
|
Layout/ArgumentAlignment:
|
|
14
|
-
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'lib/omnizip/formats/ole/dirent.rb'
|
|
16
|
+
- 'lib/omnizip/formats/ole/header.rb'
|
|
17
|
+
- 'lib/omnizip/formats/ole/storage.rb'
|
|
18
|
+
- 'lib/omnizip/formats/ole/types/variant.rb'
|
|
19
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
20
|
+
- 'spec/omnizip/formats/integration_spec.rb'
|
|
15
21
|
|
|
16
|
-
# Offense count:
|
|
22
|
+
# Offense count: 1
|
|
17
23
|
# This cop supports safe autocorrection (--autocorrect).
|
|
18
24
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
19
25
|
# SupportedStyles: with_first_element, with_fixed_indentation
|
|
20
26
|
Layout/ArrayAlignment:
|
|
21
27
|
Exclude:
|
|
22
|
-
- 'lib/omnizip/
|
|
23
|
-
- 'lib/omnizip/algorithms/zstandard/fse/encoder.rb'
|
|
24
|
-
- 'lib/omnizip/algorithms/zstandard/literals_encoder.rb'
|
|
25
|
-
- 'lib/omnizip/formats/xar/header.rb'
|
|
26
|
-
- 'spec/omnizip/algorithms/lzma/distance_coder_spec.rb'
|
|
27
|
-
- 'spec/omnizip/seven_zip_tool_compatibility_spec.rb'
|
|
28
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
28
29
|
|
|
29
|
-
# Offense count:
|
|
30
|
+
# Offense count: 1
|
|
30
31
|
# This cop supports safe autocorrection (--autocorrect).
|
|
31
32
|
# Configuration parameters: IndentationWidth.
|
|
32
33
|
Layout/AssignmentIndentation:
|
|
33
34
|
Exclude:
|
|
34
|
-
- 'lib/omnizip/
|
|
35
|
-
- 'lib/omnizip/formats/rar/rar5/compression/lzss.rb'
|
|
36
|
-
- 'lib/omnizip/formats/xar/entry.rb'
|
|
37
|
-
- 'lib/omnizip/formats/xar/toc.rb'
|
|
35
|
+
- 'lib/omnizip/formats/ole/allocation_table.rb'
|
|
38
36
|
|
|
39
37
|
# Offense count: 10
|
|
40
38
|
# This cop supports safe autocorrection (--autocorrect).
|
|
41
|
-
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
|
42
|
-
# SupportedStylesAlignWith: start_of_line, begin
|
|
43
|
-
Layout/BeginEndAlignment:
|
|
44
|
-
Exclude:
|
|
45
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
46
|
-
|
|
47
|
-
# Offense count: 28
|
|
48
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
49
39
|
# Configuration parameters: EnforcedStyleAlignWith.
|
|
50
40
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
51
41
|
Layout/BlockAlignment:
|
|
52
42
|
Exclude:
|
|
53
43
|
- 'lib/omnizip/algorithms/lzma/lzip_decoder.rb'
|
|
54
|
-
- 'lib/omnizip/
|
|
55
|
-
- 'lib/omnizip/
|
|
56
|
-
- 'lib/omnizip/formats/seven_zip/writer.rb'
|
|
57
|
-
- 'lib/omnizip/formats/xar/reader.rb'
|
|
44
|
+
- 'lib/omnizip/formats/ole/allocation_table.rb'
|
|
45
|
+
- 'lib/omnizip/formats/ole/storage.rb'
|
|
58
46
|
- 'lib/omnizip/formats/xz_impl/block_decoder.rb'
|
|
59
|
-
- '
|
|
60
|
-
- 'spec/omnizip/
|
|
61
|
-
- 'spec/omnizip/formats/seven_zip/seven_zip_reference_spec.rb'
|
|
62
|
-
- 'spec/omnizip/formats/xar/header_spec.rb'
|
|
63
|
-
- 'spec/omnizip/tool_compatibility_spec.rb'
|
|
64
|
-
- 'spec/omnizip/xz_tool_compatibility_spec.rb'
|
|
47
|
+
- 'spec/omnizip/formats/ole_spec.rb'
|
|
48
|
+
- 'spec/omnizip/formats/rpm_spec.rb'
|
|
65
49
|
|
|
66
|
-
# Offense count:
|
|
50
|
+
# Offense count: 8
|
|
67
51
|
# This cop supports safe autocorrection (--autocorrect).
|
|
68
52
|
Layout/BlockEndNewline:
|
|
69
53
|
Exclude:
|
|
70
|
-
- 'lib/omnizip/
|
|
71
|
-
- 'lib/omnizip/
|
|
72
|
-
- '
|
|
73
|
-
- '
|
|
74
|
-
- 'lib/omnizip/formats/xar/reader.rb'
|
|
75
|
-
- 'lib/omnizip/formats/xz_impl/block_decoder.rb'
|
|
76
|
-
- 'lib/omnizip/formats/xz_impl/index_decoder.rb'
|
|
77
|
-
- 'spec/omnizip/algorithms/lzma/xz_compat_spec.rb'
|
|
78
|
-
- 'spec/omnizip/formats/seven_zip/seven_zip_reference_spec.rb'
|
|
79
|
-
- 'spec/omnizip/formats/xar/header_spec.rb'
|
|
80
|
-
- 'spec/omnizip/tool_compatibility_spec.rb'
|
|
81
|
-
- 'spec/omnizip/xz_tool_compatibility_spec.rb'
|
|
82
|
-
|
|
83
|
-
# Offense count: 20
|
|
84
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
85
|
-
Layout/ClosingParenthesisIndentation:
|
|
86
|
-
Exclude:
|
|
87
|
-
- 'lib/omnizip/algorithms/lzma/distance_coder.rb'
|
|
88
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
89
|
-
- 'lib/omnizip/implementations/seven_zip/lzma2/encoder.rb'
|
|
90
|
-
- 'spec/omnizip/formats/rar/libarchive_rar_reference_spec.rb'
|
|
91
|
-
|
|
92
|
-
# Offense count: 3
|
|
93
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
94
|
-
# Configuration parameters: AllowForAlignment.
|
|
95
|
-
Layout/CommentIndentation:
|
|
96
|
-
Exclude:
|
|
97
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
98
|
-
|
|
99
|
-
# Offense count: 12
|
|
100
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
101
|
-
Layout/ElseAlignment:
|
|
102
|
-
Exclude:
|
|
103
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
104
|
-
- 'lib/omnizip/formats/xar/writer.rb'
|
|
105
|
-
- 'lib/omnizip/formats/xz_impl/block_decoder.rb'
|
|
54
|
+
- 'lib/omnizip/formats/ole/allocation_table.rb'
|
|
55
|
+
- 'lib/omnizip/formats/ole/storage.rb'
|
|
56
|
+
- 'spec/omnizip/formats/ole_spec.rb'
|
|
57
|
+
- 'spec/omnizip/formats/rpm_spec.rb'
|
|
106
58
|
|
|
107
59
|
# Offense count: 1
|
|
108
60
|
# This cop supports safe autocorrection (--autocorrect).
|
|
109
|
-
|
|
110
|
-
Layout/EmptyLineBetweenDefs:
|
|
61
|
+
Layout/ClosingParenthesisIndentation:
|
|
111
62
|
Exclude:
|
|
112
|
-
- 'lib/omnizip/
|
|
63
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
113
64
|
|
|
114
65
|
# Offense count: 2
|
|
115
66
|
# This cop supports safe autocorrection (--autocorrect).
|
|
116
|
-
Layout/EmptyLines:
|
|
117
|
-
Exclude:
|
|
118
|
-
- 'lib/omnizip/algorithms/zstandard/fse/table.rb'
|
|
119
|
-
- 'lib/omnizip/algorithms/zstandard/huffman.rb'
|
|
120
|
-
|
|
121
|
-
# Offense count: 3
|
|
122
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
123
|
-
Layout/EmptyLinesAroundMethodBody:
|
|
124
|
-
Exclude:
|
|
125
|
-
- 'lib/omnizip/algorithms/zstandard/huffman.rb'
|
|
126
|
-
- 'lib/omnizip/formats/seven_zip.rb'
|
|
127
|
-
|
|
128
|
-
# Offense count: 11
|
|
129
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
130
|
-
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
|
131
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
132
|
-
Layout/EndAlignment:
|
|
133
|
-
Exclude:
|
|
134
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
135
|
-
- 'lib/omnizip/formats/xar/writer.rb'
|
|
136
|
-
- 'lib/omnizip/formats/xz_impl/block_decoder.rb'
|
|
137
|
-
|
|
138
|
-
# Offense count: 1
|
|
139
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
140
67
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
141
68
|
Layout/ExtraSpacing:
|
|
142
69
|
Exclude:
|
|
143
|
-
- '
|
|
70
|
+
- 'spec/omnizip/formats/integration_spec.rb'
|
|
144
71
|
|
|
145
|
-
# Offense count:
|
|
72
|
+
# Offense count: 1
|
|
146
73
|
# This cop supports safe autocorrection (--autocorrect).
|
|
147
74
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
148
75
|
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
149
76
|
Layout/FirstArgumentIndentation:
|
|
150
77
|
Exclude:
|
|
151
|
-
- 'lib/omnizip/
|
|
152
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
153
|
-
- 'lib/omnizip/implementations/seven_zip/lzma2/encoder.rb'
|
|
154
|
-
- 'spec/omnizip/formats/rar/libarchive_rar_reference_spec.rb'
|
|
78
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
155
79
|
|
|
156
|
-
# Offense count:
|
|
80
|
+
# Offense count: 2
|
|
157
81
|
# This cop supports safe autocorrection (--autocorrect).
|
|
158
82
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
159
83
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
160
84
|
Layout/FirstArrayElementIndentation:
|
|
161
85
|
Exclude:
|
|
162
|
-
- 'lib/omnizip/
|
|
163
|
-
- 'lib/omnizip/implementations/xz_utils/lzma2/encoder.rb'
|
|
86
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
164
87
|
|
|
165
|
-
# Offense count:
|
|
88
|
+
# Offense count: 17
|
|
166
89
|
# This cop supports safe autocorrection (--autocorrect).
|
|
167
90
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
168
91
|
# SupportedHashRocketStyles: key, separator, table
|
|
@@ -170,75 +93,38 @@ Layout/FirstArrayElementIndentation:
|
|
|
170
93
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
171
94
|
Layout/HashAlignment:
|
|
172
95
|
Exclude:
|
|
173
|
-
- 'lib/omnizip/
|
|
174
|
-
- '
|
|
175
|
-
- 'spec/omnizip/formats/xar/entry_spec.rb'
|
|
176
|
-
|
|
177
|
-
# Offense count: 2
|
|
178
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
179
|
-
# Configuration parameters: EnforcedStyle.
|
|
180
|
-
# SupportedStyles: normal, indented_internal_methods
|
|
181
|
-
Layout/IndentationConsistency:
|
|
182
|
-
Exclude:
|
|
183
|
-
- 'lib/omnizip/formats/xz_impl/block_decoder.rb'
|
|
96
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
97
|
+
- 'spec/omnizip/formats/integration_spec.rb'
|
|
184
98
|
|
|
185
|
-
# Offense count:
|
|
99
|
+
# Offense count: 16
|
|
186
100
|
# This cop supports safe autocorrection (--autocorrect).
|
|
187
101
|
# Configuration parameters: Width, AllowedPatterns.
|
|
188
102
|
Layout/IndentationWidth:
|
|
189
103
|
Exclude:
|
|
190
|
-
- 'lib/omnizip/
|
|
191
|
-
- 'lib/omnizip/
|
|
192
|
-
- '
|
|
193
|
-
- '
|
|
194
|
-
- 'lib/omnizip/formats/xar/reader.rb'
|
|
195
|
-
- 'lib/omnizip/formats/xar/writer.rb'
|
|
196
|
-
- 'lib/omnizip/formats/xz_impl/block_decoder.rb'
|
|
197
|
-
- 'lib/omnizip/formats/xz_impl/index_decoder.rb'
|
|
198
|
-
- 'spec/omnizip/algorithms/lzma/xz_compat_spec.rb'
|
|
199
|
-
- 'spec/omnizip/formats/seven_zip/seven_zip_reference_spec.rb'
|
|
200
|
-
- 'spec/omnizip/formats/xar/header_spec.rb'
|
|
201
|
-
- 'spec/omnizip/tool_compatibility_spec.rb'
|
|
202
|
-
- 'spec/omnizip/xz_tool_compatibility_spec.rb'
|
|
104
|
+
- 'lib/omnizip/formats/ole/allocation_table.rb'
|
|
105
|
+
- 'lib/omnizip/formats/ole/storage.rb'
|
|
106
|
+
- 'spec/omnizip/formats/ole_spec.rb'
|
|
107
|
+
- 'spec/omnizip/formats/rpm_spec.rb'
|
|
203
108
|
|
|
204
|
-
# Offense count:
|
|
109
|
+
# Offense count: 1814
|
|
205
110
|
# This cop supports safe autocorrection (--autocorrect).
|
|
206
111
|
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
|
207
112
|
# URISchemes: http, https
|
|
208
113
|
Layout/LineLength:
|
|
209
114
|
Enabled: false
|
|
210
115
|
|
|
211
|
-
# Offense count:
|
|
212
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
213
|
-
# Configuration parameters: EnforcedStyle.
|
|
214
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
|
215
|
-
Layout/MultilineArrayBraceLayout:
|
|
216
|
-
Exclude:
|
|
217
|
-
- 'lib/omnizip/implementations/seven_zip/lzma2/encoder.rb'
|
|
218
|
-
- 'lib/omnizip/implementations/xz_utils/lzma2/encoder.rb'
|
|
219
|
-
|
|
220
|
-
# Offense count: 20
|
|
221
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
222
|
-
# Configuration parameters: EnforcedStyle.
|
|
223
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
|
224
|
-
Layout/MultilineMethodCallBraceLayout:
|
|
225
|
-
Exclude:
|
|
226
|
-
- 'lib/omnizip/algorithms/lzma/distance_coder.rb'
|
|
227
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
228
|
-
- 'lib/omnizip/implementations/seven_zip/lzma2/encoder.rb'
|
|
229
|
-
- 'spec/omnizip/formats/rar/libarchive_rar_reference_spec.rb'
|
|
230
|
-
|
|
231
|
-
# Offense count: 19
|
|
232
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
233
|
-
Layout/RescueEnsureAlignment:
|
|
234
|
-
Exclude:
|
|
235
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
236
|
-
|
|
237
|
-
# Offense count: 154
|
|
116
|
+
# Offense count: 40
|
|
238
117
|
# This cop supports safe autocorrection (--autocorrect).
|
|
239
118
|
# Configuration parameters: AllowInHeredoc.
|
|
240
119
|
Layout/TrailingWhitespace:
|
|
241
|
-
|
|
120
|
+
Exclude:
|
|
121
|
+
- 'lib/omnizip/formats/ole/allocation_table.rb'
|
|
122
|
+
- 'lib/omnizip/formats/ole/dirent.rb'
|
|
123
|
+
- 'lib/omnizip/formats/ole/header.rb'
|
|
124
|
+
- 'lib/omnizip/formats/ole/storage.rb'
|
|
125
|
+
- 'lib/omnizip/formats/ole/types/variant.rb'
|
|
126
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
127
|
+
- 'spec/omnizip/formats/integration_spec.rb'
|
|
242
128
|
|
|
243
129
|
# Offense count: 13
|
|
244
130
|
# Configuration parameters: AllowedMethods.
|
|
@@ -255,7 +141,7 @@ Lint/ConstantDefinitionInBlock:
|
|
|
255
141
|
- 'spec/omnizip/seven_zip_tool_compatibility_spec.rb'
|
|
256
142
|
- 'spec/omnizip/xz_tool_compatibility_spec.rb'
|
|
257
143
|
|
|
258
|
-
# Offense count:
|
|
144
|
+
# Offense count: 34
|
|
259
145
|
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
260
146
|
Lint/DuplicateBranch:
|
|
261
147
|
Enabled: false
|
|
@@ -319,40 +205,21 @@ Lint/UnreachableLoop:
|
|
|
319
205
|
Exclude:
|
|
320
206
|
- 'lib/omnizip/algorithms/lzma/range_decoder.rb'
|
|
321
207
|
|
|
322
|
-
# Offense count:
|
|
208
|
+
# Offense count: 2
|
|
323
209
|
# This cop supports safe autocorrection (--autocorrect).
|
|
324
210
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
|
325
211
|
# NotImplementedExceptions: NotImplementedError
|
|
326
212
|
Lint/UnusedMethodArgument:
|
|
327
213
|
Exclude:
|
|
328
|
-
- 'lib/omnizip/algorithms/zstandard/decoder.rb'
|
|
329
|
-
- 'lib/omnizip/algorithms/zstandard/sequences.rb'
|
|
330
214
|
- 'lib/omnizip/filters/registry.rb'
|
|
331
215
|
- 'lib/omnizip/formats/iso/writer.rb'
|
|
332
216
|
|
|
333
|
-
# Offense count: 1
|
|
334
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
335
|
-
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
|
336
|
-
Lint/UselessAccessModifier:
|
|
337
|
-
Exclude:
|
|
338
|
-
- 'lib/omnizip/algorithms/zstandard/fse/table.rb'
|
|
339
|
-
|
|
340
|
-
# Offense count: 9
|
|
341
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
342
|
-
Lint/UselessAssignment:
|
|
343
|
-
Exclude:
|
|
344
|
-
- 'lib/omnizip/algorithms/zstandard/decoder.rb'
|
|
345
|
-
- 'lib/omnizip/algorithms/zstandard/frame/header.rb'
|
|
346
|
-
- 'lib/omnizip/algorithms/zstandard/huffman.rb'
|
|
347
|
-
- 'lib/omnizip/algorithms/zstandard/literals.rb'
|
|
348
|
-
- 'lib/omnizip/algorithms/zstandard/sequences.rb'
|
|
349
|
-
|
|
350
217
|
# Offense count: 4
|
|
351
218
|
Lint/UselessConstantScoping:
|
|
352
219
|
Exclude:
|
|
353
220
|
- 'lib/omnizip/algorithms/lzma/optimal_encoder.rb'
|
|
354
221
|
|
|
355
|
-
# Offense count:
|
|
222
|
+
# Offense count: 553
|
|
356
223
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
357
224
|
Metrics/AbcSize:
|
|
358
225
|
Enabled: false
|
|
@@ -368,22 +235,22 @@ Metrics/BlockLength:
|
|
|
368
235
|
Metrics/BlockNesting:
|
|
369
236
|
Max: 6
|
|
370
237
|
|
|
371
|
-
# Offense count:
|
|
238
|
+
# Offense count: 267
|
|
372
239
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
373
240
|
Metrics/CyclomaticComplexity:
|
|
374
241
|
Enabled: false
|
|
375
242
|
|
|
376
|
-
# Offense count:
|
|
243
|
+
# Offense count: 950
|
|
377
244
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
378
245
|
Metrics/MethodLength:
|
|
379
246
|
Max: 434
|
|
380
247
|
|
|
381
|
-
# Offense count:
|
|
248
|
+
# Offense count: 33
|
|
382
249
|
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
383
250
|
Metrics/ParameterLists:
|
|
384
251
|
Max: 20
|
|
385
252
|
|
|
386
|
-
# Offense count:
|
|
253
|
+
# Offense count: 188
|
|
387
254
|
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
388
255
|
Metrics/PerceivedComplexity:
|
|
389
256
|
Enabled: false
|
|
@@ -394,7 +261,7 @@ Metrics/PerceivedComplexity:
|
|
|
394
261
|
Naming/MethodParameterName:
|
|
395
262
|
Enabled: false
|
|
396
263
|
|
|
397
|
-
# Offense count:
|
|
264
|
+
# Offense count: 38
|
|
398
265
|
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
|
399
266
|
# AllowedMethods: call
|
|
400
267
|
# WaywardPredicates: nonzero?
|
|
@@ -447,15 +314,7 @@ Security/Open:
|
|
|
447
314
|
- 'lib/omnizip/formats/rar.rb'
|
|
448
315
|
- 'lib/omnizip/zip/file.rb'
|
|
449
316
|
|
|
450
|
-
# Offense count:
|
|
451
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
452
|
-
Style/BitwisePredicate:
|
|
453
|
-
Exclude:
|
|
454
|
-
- 'lib/omnizip/algorithms/zstandard/frame/block.rb'
|
|
455
|
-
- 'lib/omnizip/algorithms/zstandard/frame/header.rb'
|
|
456
|
-
- 'lib/omnizip/algorithms/zstandard/huffman.rb'
|
|
457
|
-
|
|
458
|
-
# Offense count: 27
|
|
317
|
+
# Offense count: 12
|
|
459
318
|
# This cop supports safe autocorrection (--autocorrect).
|
|
460
319
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
461
320
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
@@ -464,17 +323,10 @@ Style/BitwisePredicate:
|
|
|
464
323
|
# AllowedMethods: lambda, proc, it
|
|
465
324
|
Style/BlockDelimiters:
|
|
466
325
|
Exclude:
|
|
467
|
-
- 'lib/omnizip/
|
|
468
|
-
- 'lib/omnizip/
|
|
469
|
-
- '
|
|
470
|
-
- '
|
|
471
|
-
- 'lib/omnizip/formats/xar/reader.rb'
|
|
472
|
-
- 'lib/omnizip/formats/xz_impl/index_decoder.rb'
|
|
473
|
-
- 'spec/omnizip/algorithms/lzma/xz_compat_spec.rb'
|
|
474
|
-
- 'spec/omnizip/formats/seven_zip/seven_zip_reference_spec.rb'
|
|
475
|
-
- 'spec/omnizip/formats/xar/header_spec.rb'
|
|
476
|
-
- 'spec/omnizip/tool_compatibility_spec.rb'
|
|
477
|
-
- 'spec/omnizip/xz_tool_compatibility_spec.rb'
|
|
326
|
+
- 'lib/omnizip/formats/ole/allocation_table.rb'
|
|
327
|
+
- 'lib/omnizip/formats/ole/storage.rb'
|
|
328
|
+
- 'spec/omnizip/formats/ole_spec.rb'
|
|
329
|
+
- 'spec/omnizip/formats/rpm_spec.rb'
|
|
478
330
|
|
|
479
331
|
# Offense count: 2
|
|
480
332
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -483,6 +335,12 @@ Style/ComparableClamp:
|
|
|
483
335
|
- 'lib/omnizip/algorithms/bzip2.rb'
|
|
484
336
|
- 'lib/omnizip/metadata/archive_metadata.rb'
|
|
485
337
|
|
|
338
|
+
# Offense count: 1
|
|
339
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
340
|
+
Style/ConcatArrayLiterals:
|
|
341
|
+
Exclude:
|
|
342
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
343
|
+
|
|
486
344
|
# Offense count: 2
|
|
487
345
|
# This cop supports safe autocorrection (--autocorrect).
|
|
488
346
|
# Configuration parameters: EnforcedStyle, AllowComments.
|
|
@@ -492,65 +350,29 @@ Style/EmptyElse:
|
|
|
492
350
|
- 'lib/omnizip/algorithms/ppmd7/encoder.rb'
|
|
493
351
|
- 'lib/omnizip/formats/iso/volume_descriptor.rb'
|
|
494
352
|
|
|
495
|
-
# Offense count:
|
|
496
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
497
|
-
# Configuration parameters: AllowedVars, DefaultToNil.
|
|
498
|
-
Style/FetchEnvVar:
|
|
499
|
-
Exclude:
|
|
500
|
-
- 'lib/omnizip/algorithms/lzma/distance_coder.rb'
|
|
501
|
-
|
|
502
|
-
# Offense count: 139
|
|
353
|
+
# Offense count: 161
|
|
503
354
|
# This cop supports safe autocorrection (--autocorrect).
|
|
504
355
|
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
|
|
505
356
|
# SupportedStyles: annotated, template, unannotated
|
|
506
357
|
Style/FormatStringToken:
|
|
507
358
|
EnforcedStyle: unannotated
|
|
508
359
|
|
|
509
|
-
# Offense count: 1
|
|
510
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
511
|
-
# Configuration parameters: AllowIfModifier.
|
|
512
|
-
Style/IfInsideElse:
|
|
513
|
-
Exclude:
|
|
514
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
515
|
-
|
|
516
360
|
# Offense count: 2
|
|
517
361
|
Style/MixinUsage:
|
|
518
362
|
Exclude:
|
|
519
363
|
- 'spec/scripts/debug_7z_structure.rb'
|
|
520
364
|
- 'spec/scripts/debug_writer_output.rb'
|
|
521
365
|
|
|
522
|
-
# Offense count:
|
|
366
|
+
# Offense count: 11
|
|
523
367
|
# This cop supports safe autocorrection (--autocorrect).
|
|
524
368
|
Style/MultilineIfModifier:
|
|
525
369
|
Exclude:
|
|
526
|
-
- 'lib/omnizip/
|
|
527
|
-
- 'lib/omnizip/
|
|
528
|
-
- 'lib/omnizip/formats/
|
|
529
|
-
- 'lib/omnizip/formats/
|
|
530
|
-
- 'lib/omnizip/formats/
|
|
531
|
-
- 'lib/omnizip/formats/
|
|
532
|
-
- 'lib/omnizip/formats/xar/header.rb'
|
|
533
|
-
- 'lib/omnizip/formats/xar/toc.rb'
|
|
534
|
-
- 'lib/omnizip/implementations/seven_zip/lzma/decoder.rb'
|
|
535
|
-
|
|
536
|
-
# Offense count: 1
|
|
537
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
538
|
-
Style/MultilineTernaryOperator:
|
|
539
|
-
Exclude:
|
|
540
|
-
- 'lib/omnizip/formats/xar/writer.rb'
|
|
541
|
-
|
|
542
|
-
# Offense count: 23
|
|
543
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
544
|
-
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
545
|
-
# SupportedStyles: predicate, comparison
|
|
546
|
-
Style/NumericPredicate:
|
|
547
|
-
Exclude:
|
|
548
|
-
- 'spec/**/*'
|
|
549
|
-
- 'lib/omnizip/algorithms/lzma/xz_utils_decoder.rb'
|
|
550
|
-
- 'lib/omnizip/algorithms/zstandard/fse/bitstream.rb'
|
|
551
|
-
- 'lib/omnizip/algorithms/zstandard/fse/table.rb'
|
|
552
|
-
- 'lib/omnizip/algorithms/zstandard/huffman.rb'
|
|
553
|
-
- 'lib/omnizip/algorithms/zstandard/sequences.rb'
|
|
370
|
+
- 'lib/omnizip/formats/ole/allocation_table.rb'
|
|
371
|
+
- 'lib/omnizip/formats/ole/dirent.rb'
|
|
372
|
+
- 'lib/omnizip/formats/ole/header.rb'
|
|
373
|
+
- 'lib/omnizip/formats/ole/storage.rb'
|
|
374
|
+
- 'lib/omnizip/formats/ole/types/variant.rb'
|
|
375
|
+
- 'lib/omnizip/formats/rpm/writer.rb'
|
|
554
376
|
|
|
555
377
|
# Offense count: 3
|
|
556
378
|
# Configuration parameters: AllowedMethods.
|
|
@@ -561,43 +383,6 @@ Style/OptionalBooleanParameter:
|
|
|
561
383
|
- 'lib/omnizip/formats/rar/archive_verifier.rb'
|
|
562
384
|
- 'lib/omnizip/formats/seven_zip/writer.rb'
|
|
563
385
|
|
|
564
|
-
# Offense count: 82
|
|
565
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
566
|
-
# Configuration parameters: EnforcedStyle.
|
|
567
|
-
# SupportedStyles: same_as_string_literals, single_quotes, double_quotes
|
|
568
|
-
Style/QuotedSymbols:
|
|
569
|
-
Exclude:
|
|
570
|
-
- 'lib/omnizip/buffer.rb'
|
|
571
|
-
- 'lib/omnizip/buffer/memory_extractor.rb'
|
|
572
|
-
- 'lib/omnizip/filters/registry.rb'
|
|
573
|
-
- 'lib/omnizip/pipe/stream_compressor.rb'
|
|
574
|
-
- 'spec/omnizip/filters/integration_spec.rb'
|
|
575
|
-
- 'spec/omnizip/filters/registry_spec.rb'
|
|
576
|
-
- 'spec/omnizip/integration/filter_integration_spec.rb'
|
|
577
|
-
- 'spec/omnizip/models/filter_chain_spec.rb'
|
|
578
|
-
|
|
579
|
-
# Offense count: 2
|
|
580
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
581
|
-
Style/RedundantAssignment:
|
|
582
|
-
Exclude:
|
|
583
|
-
- 'lib/omnizip/algorithms/zstandard/huffman.rb'
|
|
584
|
-
- 'lib/omnizip/formats/seven_zip.rb'
|
|
585
|
-
|
|
586
|
-
# Offense count: 17
|
|
587
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
588
|
-
Style/RedundantParentheses:
|
|
589
|
-
Exclude:
|
|
590
|
-
- 'lib/omnizip/algorithms/lzma/distance_coder.rb'
|
|
591
|
-
- 'lib/omnizip/algorithms/zstandard/sequences.rb'
|
|
592
|
-
|
|
593
|
-
# Offense count: 1
|
|
594
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
595
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
596
|
-
# AllowedMethods: present?, blank?, presence, try, try!
|
|
597
|
-
Style/SafeNavigation:
|
|
598
|
-
Exclude:
|
|
599
|
-
- 'lib/omnizip/algorithms/zstandard/huffman.rb'
|
|
600
|
-
|
|
601
386
|
# Offense count: 1
|
|
602
387
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
603
388
|
# Configuration parameters: Mode.
|
|
@@ -605,25 +390,10 @@ Style/StringConcatenation:
|
|
|
605
390
|
Exclude:
|
|
606
391
|
- 'lib/omnizip/formats/iso/writer.rb'
|
|
607
392
|
|
|
608
|
-
# Offense count: 20
|
|
609
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
610
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
611
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
612
|
-
Style/StringLiterals:
|
|
613
|
-
Exclude:
|
|
614
|
-
- 'lib/omnizip/algorithms/lzma/lzip_decoder.rb'
|
|
615
|
-
- 'spec/omnizip/tool_compatibility_spec.rb'
|
|
616
|
-
|
|
617
393
|
# Offense count: 2
|
|
618
394
|
# This cop supports safe autocorrection (--autocorrect).
|
|
619
395
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
620
396
|
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
621
|
-
Style/
|
|
622
|
-
Exclude:
|
|
623
|
-
- 'lib/omnizip/algorithms/zstandard/sequences.rb'
|
|
624
|
-
|
|
625
|
-
# Offense count: 1
|
|
626
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
627
|
-
Style/ZeroLengthPredicate:
|
|
397
|
+
Style/TrailingCommaInArguments:
|
|
628
398
|
Exclude:
|
|
629
|
-
- '
|
|
399
|
+
- 'spec/omnizip/formats/integration_spec.rb'
|