file_sync_tool.utility.info.print_footer()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nop 0
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
#!/usr/bin/env python3
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
Bug introduced by
There seems to be a cyclic import (file_sync_tool.transfer.utility -> file_sync_tool.utility.helper).

Cyclic imports may cause partly loaded modules to be returned. This might lead to unexpected runtime behavior which is hard to debug.

Loading history...
2
# -*- coding: future_fstrings -*-
3
4
from db_sync_tool.utility import output
5
from file_sync_tool import info
6
7
8
def print_header(mute):
9
    """
10
    Printing console header
11
    :param mute: Boolean
12
    :return:
13
    """
14
    if mute is False:
15
        print(output.CliFormat.BLACK + '##############################################' + output.CliFormat.ENDC)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (112/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
16
        print(output.CliFormat.BLACK + '#                                            #' + output.CliFormat.ENDC)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (112/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
17
        print(
18
            output.CliFormat.BLACK + '#' + output.CliFormat.ENDC + '               FILE SYNC TOOL               ' + output.CliFormat.BLACK + '#' + output.CliFormat.ENDC)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (169/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
19
        print(output.CliFormat.BLACK + '#                  v' + info.__version__ + '                    #' + output.CliFormat.ENDC)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (131/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
20
        print(output.CliFormat.BLACK + '# ' + info.__homepage__ + ' #' + output.CliFormat.ENDC)
21
        print(output.CliFormat.BLACK + '#                                            #' + output.CliFormat.ENDC)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (112/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
22
        print(output.CliFormat.BLACK + '##############################################' + output.CliFormat.ENDC)
0 ignored issues
show
Coding Style introduced by
This line is too long as per the coding-style (112/100).

This check looks for lines that are too long. You can specify the maximum line length.

Loading history...
23
24
25
def print_footer():
26
    """
27
    Printing console footer
28
    :return:
29
    """
30
    _message = 'Successfully synchronized files'
31
32
    output.message(
33
        output.Subject.INFO,
34
        _message,
35
        True,
36
        True
37
    )
0 ignored issues
show
Coding Style introduced by
Final newline missing
Loading history...