Sombra   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 88.89 %

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 8
loc 9
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A nivel() 3 3 1
A elemento() 3 3 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1 View Code Duplication
# Todos los hechizos de tipo sombra
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
2 1
class Sombra < Magia
3 1
  def nivel
4
    ((id / 6) + 1).to_i
5
  end
6
7 1
  def elemento
8
    'sombra'
9
  end
10
end
11