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

routesDoc   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A 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