src/rules/strong/index.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 8
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 2
c 1
b 0
f 0
nc 18
mnd 1
bc 1
fnc 1
dl 0
loc 8
rs 10
bpm 1
cpm 2
noi 0
1
module.exports = ($, options) => {
2
  const rule = options && options.rules && options.rules.strong
3
  const threadhold = (rule && rule.threadhold) || 15
4
  const count = $('strong').length
5
  return count > threadhold
6
    ? `This HTML has more than ${threadhold} <strong> tag`
7
    : null
8
}
9