src/generators/website.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A WebsiteGenerator.generate 0 3 1
1
import Generator from './Base';
2
3
/**
4
 * Generates a https website for random domain.
5
 * @returns {string} website
6
 * @requires domain
7
 * @generator
8
 */
9
export default class WebsiteGenerator extends Generator {
10
    generate() {
11
        return `https://${this.fatum.domain()}`;
12
    }
13
}
14