Completed
Pull Request — master (#2057)
by Lasse
01:57
created

EchoBear   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create_arguments() 0 3 1
1
from coalib.bearlib.abstractions.Linter import linter
2
3
4
@linter(executable='echo',
5
        output_format='regex',
6
        output_regex=r'.+:(?P<line>\d+):(?P<message>.*)')
7
class EchoBear:
8
    """
9
    A simple bear to test that collectors are importing also bears that are
10
    defined in another file *but* have baseclasses in the right file.
11
12
    (linter will create a new class that inherits from this class.)
13
    """
14
15
    @staticmethod
16
    def create_arguments(filename, file, config_file):
17
        return ()
18