ksylvest/enigma

View on GitHub

Showing 4 of 4 total issues

Similar blocks of code found in 4 locations. Consider refactoring.
Open

DEFAULT = %w[Y R U H Q S L D P X N G O K M I E B F Z C W V J A T].freeze
Severity: Minor
Found in lib/enigma/reflector.rb and 3 other locations - About 25 mins to fix
lib/enigma/rotor.rb on lines 18..18
lib/enigma/rotor.rb on lines 19..19
lib/enigma/rotor.rb on lines 20..20

Similar blocks of code found in 4 locations. Consider refactoring.
Open

C = %w[B D F H J L C P R T X V Z N Y E I W G A K M U S Q O].freeze
Severity: Minor
Found in lib/enigma/rotor.rb and 3 other locations - About 25 mins to fix
lib/enigma/reflector.rb on lines 18..18
lib/enigma/rotor.rb on lines 18..18
lib/enigma/rotor.rb on lines 19..19

Similar blocks of code found in 4 locations. Consider refactoring.
Open

B = %w[A J D K S I R U X B L H W T M C Q G Z N P Y F V O E].freeze
Severity: Minor
Found in lib/enigma/rotor.rb and 3 other locations - About 25 mins to fix
lib/enigma/reflector.rb on lines 18..18
lib/enigma/rotor.rb on lines 18..18
lib/enigma/rotor.rb on lines 20..20

Similar blocks of code found in 4 locations. Consider refactoring.
Open

A = %w[E K M F L G D Q V Z N T O W Y H X U S P A I B R C J].freeze
Severity: Minor
Found in lib/enigma/rotor.rb and 3 other locations - About 25 mins to fix
lib/enigma/reflector.rb on lines 18..18
lib/enigma/rotor.rb on lines 19..19
lib/enigma/rotor.rb on lines 20..20
Severity
Category
Status
Source
Language