Passed
Push — master ( f28044...8bf019 )
by Felipe Catão do
01:08
created

LavineWiki/routes/routesDoc.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 21
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 12
mnd 1
bc 1
fnc 1
dl 0
loc 21
rs 10
bpm 1
cpm 2
noi 2
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A routesDoc.routesCreated 0 8 2
1
import EngineApp from '../../Framework/engine.js'
2
import routes from '../routes/routes.js'
3
import article from '../components/article.js'
4
5
var isCreate=false
6
var eng=new EngineApp()
7
8
class routesDoc{
9
    routesCreated(){
10
        var bd = this.bind(routes)
0 ignored issues
show
Unused Code introduced by
The variable bd seems to be never used. Consider removing it.
Loading history...
11
        //sistemas De rotas
12
        if(isCreate==false){
0 ignored issues
show
Best Practice introduced by
Comparing isCreate to false using the == operator is not safe. Consider using === instead.
Loading history...
13
            eng.routesEngine.registerRoute("http://127.0.0.1:5500/LavineWiki/index.html#docs","this.teste")
14
        }
15
        isCreate=true
16
    }
17
18
}
19
20
21
export default routesDoc
22