Path 1: 76 calls (0.29)

_Run (76)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', 'pylint.__pkginfo__', '--disable=invalid-nam...

['pylint.__pkginfo__', '--disable=invalid-name', '--persistent=no'] (1) ['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/functional/...

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 2: 66 calls (0.25)

Run (61) _Run (5)

['--rcfile', '$tmp_path_env', '/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/file_to_lint.py'] (1) ['--rcfile', '/private/va...

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/file_to_lint.py'] (61) ['/Users/andrehora/Documents/git/projects-pathspotter...

ValueError (66)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 3: 62 calls (0.23)

_Run (62)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '/Users/andrehora/Documents/git/projects-pat...

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/regrtest_data/application_crash.py', '-E', '--persistent=no'] (2) ['--from-stdin', ...

ValueError (62)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 4: 9 calls (0.03)

Run (8) _PylintConfigRun (1)

['--report', 'n', '--score', 'n', '--max-branches', '13', '/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/functional/t/too/too_many_...

['--report', 'n', '--score', 'n', '--max-branches', '13', '/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/functional/t/too/too_many_...

ValueError (9)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 5: 9 calls (0.03)

_Run (9)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '/Users/andrehora/Documents/git/projects-pat...

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/regrtest_data/unused_variable.py', '--persistent=no'] (4) ['/Users/andrehora/Docume...

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 6: 6 calls (0.02)

Run (4) _PylintConfigRun (2)

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/test_pylint_runners.py'] (2) ['test_per_directory_config'] (1) ['/private/var/folde...

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/test_pylint_runners.py'] (2) ['test_per_directory_config'] (1) ['/private/var/folde...

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 7: 6 calls (0.02)

_Run (6)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--load-plugins=importing_plugin', 'models.p...

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/data/logging_format_interpolation_style.py'] (2) ['models.py'] (1) ['/Users/...

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 8: 4 calls (0.02)

_Run (4)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/regrtest_data/dummy_plugin.rc', '--generate-rcfile', '--persistent=no'] (1...

['--generate-rcfile', '--persistent=no'] (2) ['--from-stdin', '--persistent=no'] (1) ['--errors-only'] (1)

ValueError (4)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 9: 3 calls (0.01)

Run (3)

['/var/folders/yp/qx0crmvd4sbck7chb52sws500000gn/T/tmp69gv67af/changing.py', '--clear-cache-post-run=y'] (2) ['/Users/andrehora/Documents/git/projects...

['/var/folders/yp/qx0crmvd4sbck7chb52sws500000gn/T/tmp69gv67af/changing.py', '--clear-cache-post-run=y'] (2) ['/Users/andrehora/Documents/git/projects...

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 10: 3 calls (0.01)

_Run (3)

['--rcfile=/tmp/this_file_does_not_exist', '--persistent=no'] (1) ['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testuti...

['--persistent=no'] (2) ['--ignore-patterns=a', '--persistent=no'] (1)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 11: 3 calls (0.01)

Run (2) _Run (1)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--verbose'] (1) ['--verbose'] (1) ['--ve'] ...

[] (3)

ValueError (3)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 12: 3 calls (0.01)

_Run (3)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--enable-all-extensions', '/Users/andrehora...

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/regrtest_data/empty.py'] (2) ['/Users/andrehora/Documents/git/projects-pathspotter/...

ValueError (3)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 13: 3 calls (0.01)

_PylintConfigRun (2) Run (1)

['-h'] (2) ['--never-use-this'] (1)

['-h'] (2) ['--never-use-this'] (1)

ValueError (3)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 14: 3 calls (0.01)

_Run (3)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--load-plugins', 'dummy_plugin', '/Users/an...

['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/lint/../regrtest_data/empty.py'] (3)

ValueError (3)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 15: 2 calls (0.01)

_Run (2)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--load-plugins', 'unexistant', '--init-hook...

RuntimeError (2)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 16: 1 calls (0.0)

_Run (1)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '.', '--load-plugin', '--persistent=no'] (1)...

ArgumentPreprocessingError (1)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 17: 1 calls (0.0)

_Run (1)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--verbose=True'] (1)

ArgumentPreprocessingError (1)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 18: 1 calls (0.0)

_PylintConfigRun (1)

[] (1)

[] (1)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 19: 1 calls (0.0)

Run (1)

['--rcfile', '/private/var/folders/yp/qx0crmvd4sbck7chb52sws500000gn/T/pytest-of-andrehora/pytest-178/test_run_pylint_with_invalid_a0/testpylintrc'] (...

[] (1)

ValueError (1)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 20: 1 calls (0.0)

_Run (1)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--load-plugins', 'dummy_conf_plugin', '--ig...

['--ignore', 'foo,bar', '/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/lint/../regrtest_data/empty.py'] (1)

ValueError (1)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args
            

Path 21: 1 calls (0.0)

_Run (1)

['--rcfile=/Users/andrehora/Documents/git/projects-pathspotter/pylint/pylint/testutils/testing_pylintrc', '--init-hook'] (1)

ArgumentPreprocessingError (1)

1def _preprocess_options(run: Run, args: Sequence[str]) -> list[str]:
2    """Pre-process options before full config parsing has started."""
3    processed_args: list[str] = []
4
5    i = 0
6    while i < len(args):
7        argument = args[i]
8        if not argument.startswith("-"):
9            processed_args.append(argument)
10            i += 1
11            continue
12
13        try:
14            option, value = argument.split("=", 1)
15        except ValueError:
16            option, value = argument, None
17
18        matched_option = None
19        for option_name, data in PREPROCESSABLE_OPTIONS.items():
20            to_match = data[2]
21            if to_match == 0:
22                if option == option_name:
23                    matched_option = option_name
24            elif option.startswith(option_name[:to_match]):
25                matched_option = option_name
26
27        if matched_option is None:
28            processed_args.append(argument)
29            i += 1
30            continue
31
32        takearg, cb, _ = PREPROCESSABLE_OPTIONS[matched_option]
33
34        if takearg and value is None:
35            i += 1
36            if i >= len(args) or args[i].startswith("-"):
37                raise ArgumentPreprocessingError(f"Option {option} expects a value")
38            value = args[i]
39        elif not takearg and value is not None:
40            raise ArgumentPreprocessingError(f"Option {option} doesn't expect a value")
41
42        cb(run, value)
43        i += 1
44
45    return processed_args