sdoc.sdoc2.formatter.html.HtmlFormatter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A HtmlFormatter.__init__() 0 8 1
1 1
from cleo.io.io import IO
2
3 1
from sdoc.sdoc2.formatter.Formatter import Formatter
4
5
6 1
class HtmlFormatter(Formatter):
7
    """
8
    Abstract parent class for all formatters for generating the output of nodes in HTML.
9
    """
10
11
    # ------------------------------------------------------------------------------------------------------------------
12 1
    def __init__(self, io: IO, parent: Formatter):
13
        """
14
        Object constructor.
15
16
        :param OutputStyle io: The IO object.
17
        :param Formatter parent: The formatter for the parent node.
18
        """
19 1
        Formatter.__init__(self, io, parent)
20
21
# ----------------------------------------------------------------------------------------------------------------------
22