Magnificent app which corrects your previous console command.
This report summarizes scanner evidence for nvbn/thefuck, a Python project with 97,974 GitHub stars. SynthScan examined 17,654 lines of code across 427 source files, recording 197 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 34.6 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 97 finding(s).
Are imports declared and package/API names verified? 82 finding(s).
Are wrappers, guards, and repeated structures necessary? 101 finding(s).
Which changes need focused human review? 197 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 197 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | thefuck/shells/tcsh.py | 12 | return ("alias {0} 'setenv TF_SHELL tcsh && setenv TF_ALIAS {0} && " | CODE |
| HIGH⚡ | tests/test_types.py | 35 | "git brunch || fuck --repeat --force-command 'git brunch'", | CODE |
| HIGH⚡ | tests/test_types.py | 38 | "git brunch || fuck --repeat --debug --force-command 'git brunch'", | CODE |
| HIGH | tests/shells/test_tcsh.py | 35 | assert shell.and_('ls', 'cd') == 'ls && cd' | CODE |
| HIGH | tests/shells/test_tcsh.py | 38 | assert shell.or_('ls', 'cd') == 'ls || cd' | CODE |
| HIGH | tests/shells/test_zsh.py | 38 | assert shell.and_('ls', 'cd') == 'ls && cd' | CODE |
| HIGH | tests/shells/test_zsh.py | 41 | assert shell.or_('ls', 'cd') == 'ls || cd' | CODE |
| HIGH | tests/shells/test_bash.py | 39 | assert shell.and_('ls', 'cd') == 'ls && cd' | CODE |
| HIGH | tests/shells/test_bash.py | 42 | assert shell.or_('ls', 'cd') == 'ls || cd' | CODE |
| HIGH | tests/shells/test_generic.py | 19 | assert shell.and_('ls', 'cd') == 'ls && cd' | CODE |
| HIGH | tests/shells/test_generic.py | 22 | assert shell.or_('ls', 'cd') == 'ls || cd' | CODE |
| HIGH⚡ | tests/rules/test_git_push_pull.py | 62 | (Command('git push', git_err), 'git pull && git push'), | STRING |
| HIGH⚡ | tests/rules/test_git_push_pull.py | 64 | 'git pull nvbn && git push nvbn'), | STRING |
| HIGH⚡ | tests/rules/test_git_push_pull.py | 66 | 'git pull nvbn master && git push nvbn master'), | STRING |
| HIGH⚡ | tests/rules/test_git_push_pull.py | 67 | (Command('git push', git_err2), 'git pull && git push'), | STRING |
| HIGH⚡ | tests/rules/test_git_push_pull.py | 69 | 'git pull nvbn && git push nvbn'), | STRING |
| HIGH⚡ | tests/rules/test_git_push_pull.py | 71 | 'git pull nvbn master && git push nvbn master')]) | STRING |
| HIGH | tests/rules/test_git_pull_unstaged_changes.py | 19 | == "git stash && git pull && git stash pop") | CODE |
| HIGH | tests/rules/test_python_module_error.py | 39 | "pip install more_itertools && python some_script.py", | CODE |
| HIGH | tests/rules/test_git_pull_uncommitted_changes.py | 19 | == "git stash && git pull && git stash pop") | CODE |
| HIGH | tests/rules/test_touch.py | 33 | assert fixed_command == 'mkdir -p /a/b && touch /a/b/c' | CODE |
| HIGH⚡ | tests/rules/test_git_branch_0flag.py | 45 | ("git branch 0a", "git branch -D 0a && git branch -a"), | CODE |
| HIGH⚡ | tests/rules/test_git_branch_0flag.py | 46 | ("git branch 0v", "git branch -D 0v && git branch -v"), | CODE |
| HIGH⚡ | tests/rules/test_git_branch_0flag.py | 47 | ("git branch 0d foo", "git branch -D 0d && git branch -d foo"), | CODE |
| HIGH⚡ | tests/rules/test_git_branch_0flag.py | 48 | ("git branch 0D foo", "git branch -D 0D && git branch -D foo"), | CODE |
| HIGH⚡ | tests/rules/test_git_branch_0flag.py | 49 | ("git branch 0l 'maint-*'", "git branch -D 0l && git branch -l 'maint-*'"), | CODE |
| HIGH⚡ | tests/rules/test_git_branch_0flag.py | 50 | ("git branch 0u upstream", "git branch -D 0u && git branch -u upstream"), | CODE |
| HIGH | tests/rules/test_brew_cask_dependency.py | 32 | 'brew cask install osxfuse && brew install sshfs')]) | CODE |
| HIGH | tests/rules/test_sudo.py | 32 | ('mkdir && touch a', 'sudo sh -c "mkdir && touch a"')]) | CODE |
| HIGH | tests/rules/test_terraform_init.py | 29 | (Command('terraform plan', ''), 'terraform init && terraform plan'), | CODE |
| HIGH | tests/rules/test_terraform_init.py | 30 | (Command('terraform apply', ''), 'terraform init && terraform apply'), | CODE |
| HIGH⚡ | tests/rules/test_vagrant_up.py | 27 | (Command('vagrant ssh', 'VM must be running to open SSH connection. Run `vagrant up`\nto start the virtual machine.' | CODE |
| HIGH⚡ | tests/rules/test_vagrant_up.py | 28 | (Command('vagrant ssh devbox', 'VM must be running to open SSH connection. Run `vagrant up`\nto start the virtual ma | CODE |
| HIGH⚡ | tests/rules/test_vagrant_up.py | 30 | 'VM must be created before running this command. Run `vagrant up` first.'), 'vagrant up && vagrant rdp'), | CODE |
| HIGH⚡ | tests/rules/test_vagrant_up.py | 32 | 'VM must be created before running this command. Run `vagrant up` first.'), ['vagrant up devbox && vagrant | CODE |
| HIGH | tests/rules/test_cd_mkdir.py | 23 | (Command('cd foo', ''), 'mkdir -p foo && cd foo'), | CODE |
| HIGH | tests/rules/test_cd_mkdir.py | 24 | (Command('cd foo/bar/baz', ''), 'mkdir -p foo/bar/baz && cd foo/bar/baz')]) | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 46 | sudo_vim_possibilities = ['{} -S extra/gvim && sudo vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 47 | '{} -S extra/gvim-python3 && sudo vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 48 | '{} -S extra/vim && sudo vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 49 | '{} -S extra/vim-minimal && sudo vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 50 | '{} -S extra/vim-python3 && sudo vim'] | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 53 | vim_possibilities = ['{} -S extra/gvim && vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 54 | '{} -S extra/gvim-python3 && vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 55 | '{} -S extra/vim && vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 56 | '{} -S extra/vim-minimal && vim', | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 57 | '{} -S extra/vim-python3 && vim'] | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 66 | (Command('convert', ''), ['{} -S extra/imagemagick && convert'.format(pacman_cmd)]), | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 67 | (Command('sudo convert', ''), ['{} -S extra/imagemagick && sudo convert'.format(pacman_cmd)])]) | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 75 | (Command('convert', ''), ['{} -S extra/imagemagick && convert'.format(pacman_cmd)], PKGFILE_OUTPUT_CONVERT), | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 76 | (Command('sudo', ''), ['{} -S core/sudo && sudo'.format(pacman_cmd)], PKGFILE_OUTPUT_SUDO), | CODE |
| HIGH⚡ | tests/rules/test_pacman.py | 77 | (Command('sudo convert', ''), ['{} -S extra/imagemagick && sudo convert'.format(pacman_cmd)], PKGFILE_OUTPUT_CONVERT | CODE |
| HIGH | …sts/rules/test_docker_image_being_used_by_container.py | 26 | expected = 'docker container rm -f e5e2591040d1 && docker image rm -f cd809b04b6ff' | STRING |
| HIGH | tests/rules/test_git_pull.py | 29 | == "git branch --set-upstream-to=origin/master master && git pull") | STRING |
| HIGH | tests/rules/test_open.py | 46 | ('open nonest', ['touch nonest && open nonest', | CODE |
| HIGH | tests/rules/test_open.py | 47 | 'mkdir nonest && open nonest'])]) | CODE |
| HIGH | tests/rules/test_git_stash.py | 33 | 'git stash && git cherry-pick a1b2c3d'), | CODE |
| HIGH | tests/rules/test_git_stash.py | 35 | 'git stash && git rebase -i HEAD~7')]) | CODE |
| HIGH | tests/rules/test_docker_login.py | 36 | assert get_new_command(Command('docker build -t artifactory:9090/foo/bar:fdb7c6d .', '')) == 'docker login && docker | STRING |
| HIGH | tests/rules/test_docker_login.py | 37 | assert get_new_command(Command('docker push artifactory:9090/foo/bar:fdb7c6d', '')) == 'docker login && docker push | STRING |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | thefuck/utils.py | 313 | def get_valid_history_without_current(command): | CODE |
| LOW | thefuck/argument_parser.py | 54 | def _add_conflicting_arguments(self): | CODE |
| LOW | thefuck/shells/generic.py | 149 | def _create_shell_configuration(self, content, path, reload): | CODE |
| LOW | thefuck/rules/git_push.py | 12 | def _get_upstream_option_index(command_parts): | CODE |
| LOW | thefuck/rules/apt_invalid_operation.py | 28 | def _parse_apt_get_and_cache_operations(help_text_lines): | CODE |
| LOW | thefuck/rules/path_from_history.py | 28 | def _get_all_absolute_paths_from_history(command): | CODE |
| LOW | thefuck/rules/brew_cask_dependency.py | 20 | def _get_script_for_brew_cask(output): | CODE |
| LOW | thefuck/rules/brew_unknown_command.py | 21 | def _get_brew_tap_specific_commands(brew_path_prefix): | CODE |
| LOW | thefuck/rules/brew_unknown_command.py | 48 | def _get_directory_names_only(path): | CODE |
| LOW | thefuck/entrypoints/not_configured.py | 29 | def _get_not_configured_usage_tracker_path(): | CODE |
| LOW | tests/test_utils.py | 91 | def test_get_all_executables_pathsep(path, pathsep): | CODE |
| LOW | tests/test_utils.py | 101 | def test_get_all_executables_exclude_paths(path, pathsep, excluded, settings): | CODE |
| LOW | tests/test_utils.py | 143 | def test_get_all_matched_commands(stderr, result): | CODE |
| LOW | tests/test_utils.py | 274 | def test_get_valid_history_without_current(self, script, result): | CODE |
| LOW | tests/test_conf.py | 92 | def test_create_if_doesnt_exists(self, settings): | CODE |
| LOW | tests/test_ui.py | 56 | def commands_with_side_effect(self): | CODE |
| LOW | tests/test_ui.py | 69 | def test_without_confirmation(self, capsys, commands, settings): | CODE |
| LOW | tests/test_ui.py | 74 | def test_without_confirmation_with_side_effects( | CODE |
| LOW⚡ | tests/test_ui.py | 87 | def test_with_confirmation_abort(self, capsys, patch_get_key, commands): | CODE |
| LOW⚡ | tests/test_ui.py | 93 | def test_with_confirmation_with_side_effct(self, capsys, patch_get_key, | CODE |
| LOW⚡ | tests/test_ui.py | 101 | def test_with_confirmation_select_second(self, capsys, patch_get_key, commands): | CODE |
| LOW | tests/test_corrector.py | 43 | def test_get_rules_rule_exception(mocker, glob): | CODE |
| LOW | tests/test_corrector.py | 51 | def test_get_corrected_commands(mocker): | CODE |
| LOW⚡ | tests/test_types.py | 48 | def test_from_path_rule_exception(self, mocker): | CODE |
| LOW | tests/test_types.py | 69 | def test_from_path_excluded_rule(self, mocker, settings): | CODE |
| LOW⚡ | tests/test_types.py | 96 | def test_isnt_match_when_rule_failed(self, capsys): | CODE |
| LOW⚡ | tests/test_types.py | 102 | def test_get_corrected_commands_with_rule_returns_list(self): | CODE |
| LOW⚡ | tests/test_types.py | 109 | def test_get_corrected_commands_with_rule_returns_command(self): | CODE |
| LOW⚡ | tests/output_readers/test_rerun.py | 28 | def test_get_output_invalid_continuation_byte(self, popen_mock): | CODE |
| LOW⚡ | tests/output_readers/test_rerun.py | 37 | def test_get_output_unicode_misspell(self, wait_output_mock): | CODE |
| LOW⚡ | tests/output_readers/test_rerun.py | 45 | def test_wait_output_is_not_slow(self, settings): | CODE |
| LOW | tests/output_readers/test_rerun.py | 57 | def test_wait_output_timeout_children(self, kill_process_mock): | CODE |
| LOW | tests/output_readers/test_rerun.py | 69 | def test_kill_process_access_denied(self, logs_mock): | CODE |
| LOW | tests/shells/test_tcsh.py | 60 | def test_how_to_configure_when_config_not_found(self, shell, | CODE |
| LOW | tests/shells/test_zsh.py | 56 | def test_app_alias_variables_correctly_set(self, shell): | CODE |
| LOW | tests/shells/test_zsh.py | 72 | def test_how_to_configure_when_config_not_found(self, shell, | CODE |
| LOW | tests/shells/test_bash.py | 56 | def test_app_alias_variables_correctly_set(self, shell): | CODE |
| LOW | tests/shells/test_bash.py | 77 | def test_how_to_configure_when_config_not_found(self, shell, | CODE |
| LOW | tests/shells/test_fish.py | 30 | def test_get_overridden_aliases(self, shell, os_environ, key, value): | CODE |
| LOW | tests/shells/test_fish.py | 88 | def test_app_alias_alter_history(self, settings, shell): | CODE |
| LOW | tests/shells/test_fish.py | 117 | def test_how_to_configure_when_config_not_found(self, shell, | CODE |
| LOW | tests/rules/test_omnienv_no_such_command.py | 36 | def test_match_goenv_output_quote(): | CODE |
| LOW⚡ | tests/rules/test_git_branch_0flag.py | 53 | def test_get_new_command_branch_exists(script, output_branch_exists, new_command): | CODE |
| LOW | tests/rules/test_git_branch_0flag.py | 69 | def test_get_new_command_not_valid_object(script, output_not_valid_object, new_command): | CODE |
| LOW | tests/rules/test_docker_not_command.py | 249 | def test_match_management_cmd(script, output): | STRING |
| LOW | tests/rules/test_docker_not_command.py | 258 | def test_match_management_subcmd(script, output): | STRING |
| LOW | tests/rules/test_docker_not_command.py | 282 | def test_get_new_management_command(wrong, fixed): | STRING |
| LOW | tests/rules/test_docker_not_command.py | 291 | def test_get_new_management_command_subcommand(wrong, fixed, output): | STRING |
| LOW | tests/rules/test_git_not_command.py | 16 | def git_not_command_one_of_this(): | STRING |
| LOW⚡ | tests/rules/test_brew_install.py | 7 | def brew_no_available_formula_one(): | CODE |
| LOW⚡ | tests/rules/test_brew_install.py | 12 | def brew_no_available_formula_two(): | CODE |
| LOW⚡ | tests/rules/test_brew_install.py | 17 | def brew_no_available_formula_three(): | CODE |
| LOW | tests/rules/test_pacman_invalid_option.py | 13 | def test_not_match_good_output(option): | STRING |
| LOW | tests/rules/test_pacman_invalid_option.py | 18 | def test_not_match_bad_output(option): | STRING |
| LOW⚡ | tests/rules/test_pacman.py | 80 | def test_get_new_command_mocked(subp_mock, command, new_command, return_value): | CODE |
| LOW | tests/rules/test_fix_file.py | 211 | def test_get_new_command_with_settings(mocker, monkeypatch, test, settings): | STRING |
| LOW | tests/rules/test_composer_not_command.py | 24 | def composer_not_command_one_of_this(): | CODE |
| LOW | tests/rules/test_composer_not_command.py | 43 | def composer_require_instead_of_install(): | CODE |
| LOW | tests/rules/test_pip_unknown_command.py | 7 | def pip_unknown_cmd_without_recommend(): | CODE |
| LOW | tests/rules/test_mercurial.py | 99 | def test_extract_possibilities(command, possibilities): | CODE |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | setup.py | 14 | except pkg_resources.DistributionNotFound: | CODE |
| HIGH | thefuck/rules/dirty_untar.py | 50 | except OSError: | CODE |
| HIGH | thefuck/rules/dirty_unzip.py | 54 | except OSError: | CODE |
| HIGH | thefuck/rules/brew_unknown_command.py | 59 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/specific/test_npm.py | 0 | lifecycle scripts included in code-view-web: test jest available via `npm run-script`: build cp node_modules/ace-builds/ | STRING |
| HIGH | tests/rules/test_npm_missing_script.py | 0 | lifecycle scripts included in code-view-web: test jest available via `npm run-script`: build cp node_modules/ace-builds/ | STRING |
| HIGH | tests/rules/test_npm_run_script.py | 0 | lifecycle scripts included in code-view-web: test jest available via `npm run-script`: build cp node_modules/ace-builds/ | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | thefuck/ui.py | 11 | CODE | |
| LOW | thefuck/ui.py | 59 | CODE | |
| LOW | thefuck/conf.py | 101 | CODE | |
| LOW | thefuck/utils.py | 49 | CODE | |
| LOW | thefuck/specific/archlinux.py | 34 | CODE | |
| LOW | thefuck/output_readers/read_log.py | 15 | CODE | |
| LOW | thefuck/shells/generic.py | 56 | CODE | |
| LOW | thefuck/system/unix.py | 22 | CODE | |
| LOW | thefuck/rules/switch_lang.py | 79 | CODE | |
| LOW | thefuck/rules/path_from_history.py | 28 | CODE | |
| LOW | thefuck/rules/npm_wrong_command.py | 23 | CODE | |
| LOW | thefuck/entrypoints/fix_command.py | 13 | CODE | |
| LOW | thefuck/entrypoints/main.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | thefuck/conf.py | 36 | except Exception: | CODE |
| LOW | thefuck/conf.py | 41 | except Exception: | CODE |
| LOW | thefuck/types.py | 40 | except Exception: | CODE |
| LOW | thefuck/types.py | 144 | except Exception: | CODE |
| LOW | thefuck/types.py | 182 | except Exception: | CODE |
| LOW | thefuck/utils.py | 208 | except Exception: | CODE |
| MEDIUM | thefuck/utils.py | 115 | def _safe(fn, fallback): | CODE |
| LOW | thefuck/specific/brew.py | 14 | except Exception: | CODE |
| LOW | thefuck/shells/generic.py | 144 | except Exception as e: | CODE |
| LOW | thefuck/rules/dirty_unzip.py | 11 | except Exception: | CODE |
| MEDIUM | thefuck/rules/dirty_unzip.py | 7 | def _is_bad_zip(file): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 6 | CODE | |
| LOW | thefuck/system/__init__.py | 5 | CODE | |
| LOW | thefuck/system/__init__.py | 7 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fastentrypoints.py | 1 | # Copyright (c) 2016, Aaron Christianson | COMMENT |