Skip to content

Commit ff435de

Browse files
committed
Fix accessor lint issues
1 parent 5225a79 commit ff435de

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
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: 6
10-
Lint/DuplicateMethods:
11-
Exclude:
12-
- 'lib/jwe/enc/aes_cbc_hs.rb'
13-
- 'lib/jwe/enc/aes_gcm.rb'
14-
159
# Offense count: 15
1610
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
1711
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to

lib/jwe/enc/aes_cbc_hs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module JWE
66
module Enc
77
# Abstract AES in Block cipher mode, with message signature for different key sizes.
88
module AesCbcHs
9-
attr_accessor :cek, :iv, :tag
9+
attr_writer :cek, :iv, :tag
1010

1111
def initialize(cek = nil, iv = nil)
1212
self.iv = iv

lib/jwe/enc/aes_gcm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module JWE
66
module Enc
77
# Abstract AES in Galois Counter mode for different key sizes.
88
module AesGcm
9-
attr_accessor :cek, :iv, :tag
9+
attr_writer :iv, :cek, :tag
1010

1111
def initialize(cek = nil, iv = nil)
1212
self.iv = iv

0 commit comments

Comments
 (0)