Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add debuginfod settings #366

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

ArchieMeng
Copy link
Contributor

Allow user to enable/disable debuginfod environment variable

Requirements: https://pms.uniontech.com/story-view-37445.html
Log: Add debuginfod settings

Copy link

  • 检测到敏感词export, unset变动
详情
    {
    "export": {
        "src/views/termwidget.cpp": {
            "b": [
                "                sendText(\"test -z $DEBUGINFOD_URLS && export DEBUGINFOD_URLS=https://debuginfod.deepin.com\\n\");"
            ]
        }
    },
    "unset": {
        "src/views/termwidget.cpp": {
            "b": [
                "                sendText(\"test -z $DEBUGINFOD_URLS || unset DEBUGINFOD_URLS\\n\");"
            ]
        }
    }
}

Copy link

  • 检测到敏感词export, unset变动
详情
    {
    "export": {
        "src/views/termwidget.cpp": {
            "b": [
                "                sendText(\"test -z $DEBUGINFOD_URLS && export DEBUGINFOD_URLS=https://debuginfod.deepin.com\\n\");"
            ]
        }
    },
    "unset": {
        "src/views/termwidget.cpp": {
            "b": [
                "                sendText(\"test -z $DEBUGINFOD_URLS || unset DEBUGINFOD_URLS\\n\");"
            ]
        }
    }
}

Copy link

  • 敏感词检查失败, 检测到2个文件存在敏感词
详情
{
    "src/assets/other/default-config.json": [
        {
            "line": "            \"key\": \"basic\",",
            "line_number": 4,
            "rule": "S106",
            "reason": "Var naming | 3660712859"
        },
        {
            "line": "                    \"key\": \"interface\",",
            "line_number": 8,
            "rule": "S106",
            "reason": "Var naming | 3eed34c15c"
        },
        {
            "line": "                            \"key\": \"opacity\",",
            "line_number": 12,
            "rule": "S106",
            "reason": "Var naming | 031fd5ff6d"
        },
        {
            "line": "                            \"key\": \"blurred_background\",",
            "line_number": 20,
            "rule": "S106",
            "reason": "Var naming | d0f437bc20"
        },
        {
            "line": "                            \"key\": \"font\",",
            "line_number": 26,
            "rule": "S106",
            "reason": "Var naming | 67be97553b"
        },
        {
            "line": "                            \"key\": \"font_size\",",
            "line_number": 32,
            "rule": "S106",
            "reason": "Var naming | e5873f7cb5"
        },
        {
            "line": "                            \"key\": \"theme\",",
            "line_number": 41,
            "rule": "S106",
            "reason": "Var naming | ef1bf43385"
        },
        {
            "line": "                            \"key\": \"expand_theme\",",
            "line_number": 47,
            "rule": "S106",
            "reason": "Var naming | cd997c6257"
        },
        {
            "line": "                    \"key\": \"tab_title\",",
            "line_number": 55,
            "rule": "S106",
            "reason": "Var naming | 970bf3ac89"
        },
        {
            "line": "                            \"key\": \"tab_title_format\",",
            "line_number": 59,
            "rule": "S106",
            "reason": "Var naming | c929804a61"
        },
        {
            "line": "                            \"key\": \"remote_tab_title_format\",",
            "line_number": 65,
            "rule": "S106",
            "reason": "Var naming | 1756ec6025"
        },
        {
            "line": "            \"key\": \"shortcuts\",",
            "line_number": 75,
            "rule": "S106",
            "reason": "Var naming | a882334ca2"
        },
        {
            "line": "                    \"key\" : \"terminal\",",
            "line_number": 79,
            "rule": "S106",
            "reason": "Var naming | 24fd8c7283"
        },
        {
            "line": "                            \"key\": \"copy\",",
            "line_number": 83,
            "rule": "S106",
            "reason": "Var naming | 6a7eb7948d"
        },
        {
            "line": "                            \"key\": \"paste\",",
            "line_number": 91,
            "rule": "S106",
            "reason": "Var naming | 8d1f92a9c5"
        },
        {
            "line": "                            \"key\": \"find\",",
            "line_number": 97,
            "rule": "S106",
            "reason": "Var naming | e2e0ba99d0"
        },
        {
            "line": "                            \"key\": \"zoom_in\",",
            "line_number": 103,
            "rule": "S106",
            "reason": "Var naming | 34c633183d"
        },
        {
            "line": "                            \"key\": \"zoom_out\",",
            "line_number": 109,
            "rule": "S106",
            "reason": "Var naming | 1f8054cc69"
        },
        {
            "line": "                            \"key\": \"default_size\",",
            "line_number": 115,
            "rule": "S106",
            "reason": "Var naming | 40dbad4e98"
        },
        {
            "line": "                            \"key\": \"select_all\",",
            "line_number": 121,
            "rule": "S106",
            "reason": "Var naming | 3104e2b962"
        },
        {
            "line": "                    \"key\" : \"tab\",",
            "line_number": 129,
            "rule": "S106",
            "reason": "Var naming | e8b3c9f39e"
        },
        {
            "line": "                            \"key\": \"new_tab\",",
            "line_number": 133,
            "rule": "S106",
            "reason": "Var naming | 8e79d0feeb"
        },
        {
            "line": "                            \"key\": \"close_tab\",",
            "line_number": 139,
            "rule": "S106",
            "reason": "Var naming | 8b6a884b13"
        },
        {
            "line": "                            \"key\": \"close_other_tabs\",",
            "line_number": 145,
            "rule": "S106",
            "reason": "Var naming | 06a87ca13f"
        },
        {
            "line": "                            \"key\": \"previous_tab\",",
            "line_number": 151,
            "rule": "S106",
            "reason": "Var naming | 5af136ce5e"
        },
        {
            "line": "                            \"key\": \"next_tab\",",
            "line_number": 157,
            "rule": "S106",
            "reason": "Var naming | bbeaf83e64"
        },
        {
            "line": "                            \"key\": \"vertical_split\",",
            "line_number": 163,
            "rule": "S106",
            "reason": "Var naming | 86f5245470"
        },
        {
            "line": "                            \"key\": \"horionzal_split\",",
            "line_number": 169,
            "rule": "S106",
            "reason": "Var naming | fba452e82e"
        },
        {
            "line": "                            \"key\": \"select_upper_workspace\",",
            "line_number": 175,
            "rule": "S106",
            "reason": "Var naming | 976145fb53"
        },
        {
            "line": "                            \"key\": \"select_lower_workspace\",",
            "line_number": 181,
            "rule": "S106",
            "reason": "Var naming | f0e428d847"
        },
        {
            "line": "                            \"key\": \"select_left_workspace\",",
            "line_number": 187,
            "rule": "S106",
            "reason": "Var naming | e570868c51"
        },
        {
            "line": "                            \"key\": \"select_right_workspace\",",
            "line_number": 193,
            "rule": "S106",
            "reason": "Var naming | f0eb2e7fd3"
        },
        {
            "line": "                            \"key\": \"close_workspace\",",
            "line_number": 199,
            "rule": "S106",
            "reason": "Var naming | 9b8b249fb1"
        },
        {
            "line": "                            \"key\": \"close_other_workspaces\",",
            "line_number": 205,
            "rule": "S106",
            "reason": "Var naming | 3d388f9973"
        },
        {
            "line": "                            \"key\": \"switch_label_win_1\",",
            "line_number": 211,
            "rule": "S106",
            "reason": "Var naming | bd41cf6e38"
        },
        {
            "line": "                            \"key\": \"switch_label_win_2\",",
            "line_number": 217,
            "rule": "S106",
            "reason": "Var naming | 4f6560f6ac"
        },
        {
            "line": "                            \"key\": \"switch_label_win_3\",",
            "line_number": 223,
            "rule": "S106",
            "reason": "Var naming | 7d98167a56"
        },
        {
            "line": "                            \"key\": \"switch_label_win_4\",",
            "line_number": 229,
            "rule": "S106",
            "reason": "Var naming | cd7586773d"
        },
        {
            "line": "                            \"key\": \"switch_label_win_5\",",
            "line_number": 235,
            "rule": "S106",
            "reason": "Var naming | 70ce7cf13a"
        },
        {
            "line": "                            \"key\": \"switch_label_win_6\",",
            "line_number": 241,
            "rule": "S106",
            "reason": "Var naming | bea07c94e6"
        },
        {
            "line": "                            \"key\": \"switch_label_win_7\",",
            "line_number": 247,
            "rule": "S106",
            "reason": "Var naming | dd3457f01a"
        },
        {
            "line": "                            \"key\": \"switch_label_win_8\",",
            "line_number": 253,
            "rule": "S106",
            "reason": "Var naming | c15a34265b"
        },
        {
            "line": "                            \"key\": \"switch_label_win_9\",",
            "line_number": 259,
            "rule": "S106",
            "reason": "Var naming | 26582a9705"
        },
        {
            "line": "                    \"key\" : \"advanced\",",
            "line_number": 267,
            "rule": "S106",
            "reason": "Var naming | 134b5cc4a5"
        },
        {
            "line": "                            \"key\": \"switch_fullscreen\",",
            "line_number": 271,
            "rule": "S106",
            "reason": "Var naming | 8ec6ea129a"
        },
        {
            "line": "                            \"key\": \"rename_title\",",
            "line_number": 277,
            "rule": "S106",
            "reason": "Var naming | fbcf9245ff"
        },
        {
            "line": "                            \"key\": \"display_shortcuts\",",
            "line_number": 283,
            "rule": "S106",
            "reason": "Var naming | 86a8bf3380"
        },
        {
            "line": "                            \"key\": \"custom_command\",",
            "line_number": 290,
            "rule": "S106",
            "reason": "Var naming | 08b6d74b1e"
        },
        {
            "line": "                            \"key\": \"remote_management\",",
            "line_number": 296,
            "rule": "S106",
            "reason": "Var naming | 5ec54dc5e4"
        },
        {
            "line": "            \"key\": \"advanced\",",
            "line_number": 306,
            "rule": "S106",
            "reason": "Var naming | 134b5cc4a5"
        },
        {
            "line": "                    \"key\": \"cursor\",",
            "line_number": 310,
            "rule": "S106",
            "reason": "Var naming | 4f6d834652"
        },
        {
            "line": "                            \"key\": \"cursor_shape\",",
            "line_number": 314,
            "rule": "S106",
            "reason": "Var naming | d690861c1e"
        },
        {
            "line": "                            \"key\": \"include_special_characters_in_double_click_selections\",",
            "line_number": 322,
            "rule": "S106",
            "reason": "Var naming | 372a9e73c4"
        },
        {
            "line": "                            \"key\": \"cursor_blink\",",
            "line_number": 328,
            "rule": "S106",
            "reason": "Var naming | 1668b704da"
        },
        {
            "line": "                            \"key\": \"auto_copy_selection\",",
            "line_number": 334,
            "rule": "S106",
            "reason": "Var naming | 4ea8dd9663"
        },
        {
            "line": "                            \"key\": \"set_cursor_position\",",
            "line_number": 340,
            "rule": "S106",
            "reason": "Var naming | 0f78722639"
        },
        {
            "line": "                    \"key\": \"scroll\",",
            "line_number": 348,
            "rule": "S106",
            "reason": "Var naming | 6a680d2789"
        },
        {
            "line": "                            \"key\": \"history_size\",",
            "line_number": 352,
            "rule": "S106",
            "reason": "Var naming | 40cee3e8d6"
        },
        {
            "line": "                            \"key\": \"scroll_on_key\",",
            "line_number": 361,
            "rule": "S106",
            "reason": "Var naming | dad1ccb98b"
        },
        {
            "line": "                            \"key\": \"scroll_on_output\",",
            "line_number": 367,
            "rule": "S106",
            "reason": "Var naming | ddef8031bd"
        },
        {
            "line": "                            \"key\": \"zoom_on_ctrl_scrollwheel\",",
            "line_number": 373,
            "rule": "S106",
            "reason": "Var naming | 1409cc0c37"
        },
        {
            "line": "                    \"key\": \"window\",",
            "line_number": 381,
            "rule": "S106",
            "reason": "Var naming | 1d9470aed8"
        },
        {
            "line": "                            \"key\": \"use_on_starting\",",
            "line_number": 385,
            "rule": "S106",
            "reason": "Var naming | bb195f507d"
        },
        {
            "line": "                            \"key\": \"auto_hide_raytheon_window\",",
            "line_number": 391,
            "rule": "S106",
            "reason": "Var naming | 03148969fc"
        },
        {
            "line": "                            \"key\": \"quake_window_animation_duration\",",
            "line_number": 397,
            "rule": "S106",
            "reason": "Var naming | b08c5ab9ea"
        },
        {
            "line": "                    \"key\": \"shell\",",
            "line_number": 408,
            "rule": "S106",
            "reason": "Var naming | b1e39ca235"
        },
        {
            "line": "                            \"key\": \"default_shell\",",
            "line_number": 412,
            "rule": "S106",
            "reason": "Var naming | c4ae2e9b36"
        },
        {
            "line": "                            \"key\": \"disable_ctrl_flow\",",
            "line_number": 418,
            "rule": "S106",
            "reason": "Var naming | eceb6ef6b0"
        },
        {
            "line": "                            \"key\": \"enable_debuginfod\",",
            "line_number": 424,
            "rule": "S106",
            "reason": "Var naming | 6c14d4cba9"
        }
    ],
    "src/views/termwidget.cpp": [
        {
            "line": "            env.insert(\"DEBUGINFOD_URLS\", \"https://debuginfod.deepin.com\");",
            "line_number": 59,
            "rule": "S35",
            "reason": "Url link | b7a259b630"
        },
        {
            "line": "    QString strUrl = \"https://cn.bing.com/search?q=\" + selectedText();",
            "line_number": 601,
            "rule": "S35",
            "reason": "Url link | fd576f862d"
        },
        {
            "line": "    QString strUrl = \"https://www.baidu.com/s?wd=\" + selectedText();",
            "line_number": 607,
            "rule": "S35",
            "reason": "Url link | 6f8d292d20"
        },
        {
            "line": "    QString strUrl = \"https://github.com/search?q=\" + selectedText();",
            "line_number": 613,
            "rule": "S35",
            "reason": "Url link | e1ba2d7c70"
        },
        {
            "line": "    QString strUrl = \"https://stackoverflow.com/search?q=\" + selectedText();",
            "line_number": 619,
            "rule": "S35",
            "reason": "Url link | bd659725f2"
        }
    ]
}

1 similar comment
Copy link

  • 敏感词检查失败, 检测到2个文件存在敏感词
详情
{
    "src/assets/other/default-config.json": [
        {
            "line": "            \"key\": \"basic\",",
            "line_number": 4,
            "rule": "S106",
            "reason": "Var naming | 3660712859"
        },
        {
            "line": "                    \"key\": \"interface\",",
            "line_number": 8,
            "rule": "S106",
            "reason": "Var naming | 3eed34c15c"
        },
        {
            "line": "                            \"key\": \"opacity\",",
            "line_number": 12,
            "rule": "S106",
            "reason": "Var naming | 031fd5ff6d"
        },
        {
            "line": "                            \"key\": \"blurred_background\",",
            "line_number": 20,
            "rule": "S106",
            "reason": "Var naming | d0f437bc20"
        },
        {
            "line": "                            \"key\": \"font\",",
            "line_number": 26,
            "rule": "S106",
            "reason": "Var naming | 67be97553b"
        },
        {
            "line": "                            \"key\": \"font_size\",",
            "line_number": 32,
            "rule": "S106",
            "reason": "Var naming | e5873f7cb5"
        },
        {
            "line": "                            \"key\": \"theme\",",
            "line_number": 41,
            "rule": "S106",
            "reason": "Var naming | ef1bf43385"
        },
        {
            "line": "                            \"key\": \"expand_theme\",",
            "line_number": 47,
            "rule": "S106",
            "reason": "Var naming | cd997c6257"
        },
        {
            "line": "                    \"key\": \"tab_title\",",
            "line_number": 55,
            "rule": "S106",
            "reason": "Var naming | 970bf3ac89"
        },
        {
            "line": "                            \"key\": \"tab_title_format\",",
            "line_number": 59,
            "rule": "S106",
            "reason": "Var naming | c929804a61"
        },
        {
            "line": "                            \"key\": \"remote_tab_title_format\",",
            "line_number": 65,
            "rule": "S106",
            "reason": "Var naming | 1756ec6025"
        },
        {
            "line": "            \"key\": \"shortcuts\",",
            "line_number": 75,
            "rule": "S106",
            "reason": "Var naming | a882334ca2"
        },
        {
            "line": "                    \"key\" : \"terminal\",",
            "line_number": 79,
            "rule": "S106",
            "reason": "Var naming | 24fd8c7283"
        },
        {
            "line": "                            \"key\": \"copy\",",
            "line_number": 83,
            "rule": "S106",
            "reason": "Var naming | 6a7eb7948d"
        },
        {
            "line": "                            \"key\": \"paste\",",
            "line_number": 91,
            "rule": "S106",
            "reason": "Var naming | 8d1f92a9c5"
        },
        {
            "line": "                            \"key\": \"find\",",
            "line_number": 97,
            "rule": "S106",
            "reason": "Var naming | e2e0ba99d0"
        },
        {
            "line": "                            \"key\": \"zoom_in\",",
            "line_number": 103,
            "rule": "S106",
            "reason": "Var naming | 34c633183d"
        },
        {
            "line": "                            \"key\": \"zoom_out\",",
            "line_number": 109,
            "rule": "S106",
            "reason": "Var naming | 1f8054cc69"
        },
        {
            "line": "                            \"key\": \"default_size\",",
            "line_number": 115,
            "rule": "S106",
            "reason": "Var naming | 40dbad4e98"
        },
        {
            "line": "                            \"key\": \"select_all\",",
            "line_number": 121,
            "rule": "S106",
            "reason": "Var naming | 3104e2b962"
        },
        {
            "line": "                    \"key\" : \"tab\",",
            "line_number": 129,
            "rule": "S106",
            "reason": "Var naming | e8b3c9f39e"
        },
        {
            "line": "                            \"key\": \"new_tab\",",
            "line_number": 133,
            "rule": "S106",
            "reason": "Var naming | 8e79d0feeb"
        },
        {
            "line": "                            \"key\": \"close_tab\",",
            "line_number": 139,
            "rule": "S106",
            "reason": "Var naming | 8b6a884b13"
        },
        {
            "line": "                            \"key\": \"close_other_tabs\",",
            "line_number": 145,
            "rule": "S106",
            "reason": "Var naming | 06a87ca13f"
        },
        {
            "line": "                            \"key\": \"previous_tab\",",
            "line_number": 151,
            "rule": "S106",
            "reason": "Var naming | 5af136ce5e"
        },
        {
            "line": "                            \"key\": \"next_tab\",",
            "line_number": 157,
            "rule": "S106",
            "reason": "Var naming | bbeaf83e64"
        },
        {
            "line": "                            \"key\": \"vertical_split\",",
            "line_number": 163,
            "rule": "S106",
            "reason": "Var naming | 86f5245470"
        },
        {
            "line": "                            \"key\": \"horionzal_split\",",
            "line_number": 169,
            "rule": "S106",
            "reason": "Var naming | fba452e82e"
        },
        {
            "line": "                            \"key\": \"select_upper_workspace\",",
            "line_number": 175,
            "rule": "S106",
            "reason": "Var naming | 976145fb53"
        },
        {
            "line": "                            \"key\": \"select_lower_workspace\",",
            "line_number": 181,
            "rule": "S106",
            "reason": "Var naming | f0e428d847"
        },
        {
            "line": "                            \"key\": \"select_left_workspace\",",
            "line_number": 187,
            "rule": "S106",
            "reason": "Var naming | e570868c51"
        },
        {
            "line": "                            \"key\": \"select_right_workspace\",",
            "line_number": 193,
            "rule": "S106",
            "reason": "Var naming | f0eb2e7fd3"
        },
        {
            "line": "                            \"key\": \"close_workspace\",",
            "line_number": 199,
            "rule": "S106",
            "reason": "Var naming | 9b8b249fb1"
        },
        {
            "line": "                            \"key\": \"close_other_workspaces\",",
            "line_number": 205,
            "rule": "S106",
            "reason": "Var naming | 3d388f9973"
        },
        {
            "line": "                            \"key\": \"switch_label_win_1\",",
            "line_number": 211,
            "rule": "S106",
            "reason": "Var naming | bd41cf6e38"
        },
        {
            "line": "                            \"key\": \"switch_label_win_2\",",
            "line_number": 217,
            "rule": "S106",
            "reason": "Var naming | 4f6560f6ac"
        },
        {
            "line": "                            \"key\": \"switch_label_win_3\",",
            "line_number": 223,
            "rule": "S106",
            "reason": "Var naming | 7d98167a56"
        },
        {
            "line": "                            \"key\": \"switch_label_win_4\",",
            "line_number": 229,
            "rule": "S106",
            "reason": "Var naming | cd7586773d"
        },
        {
            "line": "                            \"key\": \"switch_label_win_5\",",
            "line_number": 235,
            "rule": "S106",
            "reason": "Var naming | 70ce7cf13a"
        },
        {
            "line": "                            \"key\": \"switch_label_win_6\",",
            "line_number": 241,
            "rule": "S106",
            "reason": "Var naming | bea07c94e6"
        },
        {
            "line": "                            \"key\": \"switch_label_win_7\",",
            "line_number": 247,
            "rule": "S106",
            "reason": "Var naming | dd3457f01a"
        },
        {
            "line": "                            \"key\": \"switch_label_win_8\",",
            "line_number": 253,
            "rule": "S106",
            "reason": "Var naming | c15a34265b"
        },
        {
            "line": "                            \"key\": \"switch_label_win_9\",",
            "line_number": 259,
            "rule": "S106",
            "reason": "Var naming | 26582a9705"
        },
        {
            "line": "                    \"key\" : \"advanced\",",
            "line_number": 267,
            "rule": "S106",
            "reason": "Var naming | 134b5cc4a5"
        },
        {
            "line": "                            \"key\": \"switch_fullscreen\",",
            "line_number": 271,
            "rule": "S106",
            "reason": "Var naming | 8ec6ea129a"
        },
        {
            "line": "                            \"key\": \"rename_title\",",
            "line_number": 277,
            "rule": "S106",
            "reason": "Var naming | fbcf9245ff"
        },
        {
            "line": "                            \"key\": \"display_shortcuts\",",
            "line_number": 283,
            "rule": "S106",
            "reason": "Var naming | 86a8bf3380"
        },
        {
            "line": "                            \"key\": \"custom_command\",",
            "line_number": 290,
            "rule": "S106",
            "reason": "Var naming | 08b6d74b1e"
        },
        {
            "line": "                            \"key\": \"remote_management\",",
            "line_number": 296,
            "rule": "S106",
            "reason": "Var naming | 5ec54dc5e4"
        },
        {
            "line": "            \"key\": \"advanced\",",
            "line_number": 306,
            "rule": "S106",
            "reason": "Var naming | 134b5cc4a5"
        },
        {
            "line": "                    \"key\": \"cursor\",",
            "line_number": 310,
            "rule": "S106",
            "reason": "Var naming | 4f6d834652"
        },
        {
            "line": "                            \"key\": \"cursor_shape\",",
            "line_number": 314,
            "rule": "S106",
            "reason": "Var naming | d690861c1e"
        },
        {
            "line": "                            \"key\": \"include_special_characters_in_double_click_selections\",",
            "line_number": 322,
            "rule": "S106",
            "reason": "Var naming | 372a9e73c4"
        },
        {
            "line": "                            \"key\": \"cursor_blink\",",
            "line_number": 328,
            "rule": "S106",
            "reason": "Var naming | 1668b704da"
        },
        {
            "line": "                            \"key\": \"auto_copy_selection\",",
            "line_number": 334,
            "rule": "S106",
            "reason": "Var naming | 4ea8dd9663"
        },
        {
            "line": "                            \"key\": \"set_cursor_position\",",
            "line_number": 340,
            "rule": "S106",
            "reason": "Var naming | 0f78722639"
        },
        {
            "line": "                    \"key\": \"scroll\",",
            "line_number": 348,
            "rule": "S106",
            "reason": "Var naming | 6a680d2789"
        },
        {
            "line": "                            \"key\": \"history_size\",",
            "line_number": 352,
            "rule": "S106",
            "reason": "Var naming | 40cee3e8d6"
        },
        {
            "line": "                            \"key\": \"scroll_on_key\",",
            "line_number": 361,
            "rule": "S106",
            "reason": "Var naming | dad1ccb98b"
        },
        {
            "line": "                            \"key\": \"scroll_on_output\",",
            "line_number": 367,
            "rule": "S106",
            "reason": "Var naming | ddef8031bd"
        },
        {
            "line": "                            \"key\": \"zoom_on_ctrl_scrollwheel\",",
            "line_number": 373,
            "rule": "S106",
            "reason": "Var naming | 1409cc0c37"
        },
        {
            "line": "                    \"key\": \"window\",",
            "line_number": 381,
            "rule": "S106",
            "reason": "Var naming | 1d9470aed8"
        },
        {
            "line": "                            \"key\": \"use_on_starting\",",
            "line_number": 385,
            "rule": "S106",
            "reason": "Var naming | bb195f507d"
        },
        {
            "line": "                            \"key\": \"auto_hide_raytheon_window\",",
            "line_number": 391,
            "rule": "S106",
            "reason": "Var naming | 03148969fc"
        },
        {
            "line": "                            \"key\": \"quake_window_animation_duration\",",
            "line_number": 397,
            "rule": "S106",
            "reason": "Var naming | b08c5ab9ea"
        },
        {
            "line": "                    \"key\": \"shell\",",
            "line_number": 408,
            "rule": "S106",
            "reason": "Var naming | b1e39ca235"
        },
        {
            "line": "                            \"key\": \"default_shell\",",
            "line_number": 412,
            "rule": "S106",
            "reason": "Var naming | c4ae2e9b36"
        },
        {
            "line": "                            \"key\": \"disable_ctrl_flow\",",
            "line_number": 418,
            "rule": "S106",
            "reason": "Var naming | eceb6ef6b0"
        },
        {
            "line": "                            \"key\": \"enable_debuginfod\",",
            "line_number": 424,
            "rule": "S106",
            "reason": "Var naming | 6c14d4cba9"
        }
    ],
    "src/views/termwidget.cpp": [
        {
            "line": "            env.insert(\"DEBUGINFOD_URLS\", \"https://debuginfod.deepin.com\");",
            "line_number": 59,
            "rule": "S35",
            "reason": "Url link | b7a259b630"
        },
        {
            "line": "    QString strUrl = \"https://cn.bing.com/search?q=\" + selectedText();",
            "line_number": 601,
            "rule": "S35",
            "reason": "Url link | fd576f862d"
        },
        {
            "line": "    QString strUrl = \"https://www.baidu.com/s?wd=\" + selectedText();",
            "line_number": 607,
            "rule": "S35",
            "reason": "Url link | 6f8d292d20"
        },
        {
            "line": "    QString strUrl = \"https://github.com/search?q=\" + selectedText();",
            "line_number": 613,
            "rule": "S35",
            "reason": "Url link | e1ba2d7c70"
        },
        {
            "line": "    QString strUrl = \"https://stackoverflow.com/search?q=\" + selectedText();",
            "line_number": 619,
            "rule": "S35",
            "reason": "Url link | bd659725f2"
        }
    ]
}

src/views/termwidget.cpp Outdated Show resolved Hide resolved
src/views/termwidget.cpp Outdated Show resolved Hide resolved
Allow user to enable/disable debuginfod environment variable

Requirements: https://pms.uniontech.com/story-view-37445.html
Log: Add debuginfod settings
Copy link

  • 检测到敏感词export, unset变动
详情
    {
    "export": {
        "src/views/termwidget.cpp": {
            "b": [
                "                sendText(QString(\"test -z $DEBUGINFOD_URLS && export DEBUGINFOD_URLS=$1\\n\").arg(Settings::instance()->debuginfodUrls()));"
            ]
        }
    },
    "unset": {
        "src/views/termwidget.cpp": {
            "b": [
                "                sendText(\"test -z $DEBUGINFOD_URLS || unset DEBUGINFOD_URLS\\n\");"
            ]
        }
    }
}

Copy link

  • 敏感词检查失败, 检测到2个文件存在敏感词
详情
{
    "src/assets/other/default-config.json": [
        {
            "line": "            \"key\": \"basic\",",
            "line_number": 4,
            "rule": "S106",
            "reason": "Var naming | 3660712859"
        },
        {
            "line": "                    \"key\": \"interface\",",
            "line_number": 8,
            "rule": "S106",
            "reason": "Var naming | 3eed34c15c"
        },
        {
            "line": "                            \"key\": \"opacity\",",
            "line_number": 12,
            "rule": "S106",
            "reason": "Var naming | 031fd5ff6d"
        },
        {
            "line": "                            \"key\": \"blurred_background\",",
            "line_number": 20,
            "rule": "S106",
            "reason": "Var naming | d0f437bc20"
        },
        {
            "line": "                            \"key\": \"font\",",
            "line_number": 26,
            "rule": "S106",
            "reason": "Var naming | 67be97553b"
        },
        {
            "line": "                            \"key\": \"font_size\",",
            "line_number": 32,
            "rule": "S106",
            "reason": "Var naming | e5873f7cb5"
        },
        {
            "line": "                            \"key\": \"theme\",",
            "line_number": 41,
            "rule": "S106",
            "reason": "Var naming | ef1bf43385"
        },
        {
            "line": "                            \"key\": \"expand_theme\",",
            "line_number": 47,
            "rule": "S106",
            "reason": "Var naming | cd997c6257"
        },
        {
            "line": "                    \"key\": \"tab_title\",",
            "line_number": 55,
            "rule": "S106",
            "reason": "Var naming | 970bf3ac89"
        },
        {
            "line": "                            \"key\": \"tab_title_format\",",
            "line_number": 59,
            "rule": "S106",
            "reason": "Var naming | c929804a61"
        },
        {
            "line": "                            \"key\": \"remote_tab_title_format\",",
            "line_number": 65,
            "rule": "S106",
            "reason": "Var naming | 1756ec6025"
        },
        {
            "line": "            \"key\": \"shortcuts\",",
            "line_number": 75,
            "rule": "S106",
            "reason": "Var naming | a882334ca2"
        },
        {
            "line": "                    \"key\" : \"terminal\",",
            "line_number": 79,
            "rule": "S106",
            "reason": "Var naming | 24fd8c7283"
        },
        {
            "line": "                            \"key\": \"copy\",",
            "line_number": 83,
            "rule": "S106",
            "reason": "Var naming | 6a7eb7948d"
        },
        {
            "line": "                            \"key\": \"paste\",",
            "line_number": 91,
            "rule": "S106",
            "reason": "Var naming | 8d1f92a9c5"
        },
        {
            "line": "                            \"key\": \"find\",",
            "line_number": 97,
            "rule": "S106",
            "reason": "Var naming | e2e0ba99d0"
        },
        {
            "line": "                            \"key\": \"zoom_in\",",
            "line_number": 103,
            "rule": "S106",
            "reason": "Var naming | 34c633183d"
        },
        {
            "line": "                            \"key\": \"zoom_out\",",
            "line_number": 109,
            "rule": "S106",
            "reason": "Var naming | 1f8054cc69"
        },
        {
            "line": "                            \"key\": \"default_size\",",
            "line_number": 115,
            "rule": "S106",
            "reason": "Var naming | 40dbad4e98"
        },
        {
            "line": "                            \"key\": \"select_all\",",
            "line_number": 121,
            "rule": "S106",
            "reason": "Var naming | 3104e2b962"
        },
        {
            "line": "                    \"key\" : \"tab\",",
            "line_number": 129,
            "rule": "S106",
            "reason": "Var naming | e8b3c9f39e"
        },
        {
            "line": "                            \"key\": \"new_tab\",",
            "line_number": 133,
            "rule": "S106",
            "reason": "Var naming | 8e79d0feeb"
        },
        {
            "line": "                            \"key\": \"close_tab\",",
            "line_number": 139,
            "rule": "S106",
            "reason": "Var naming | 8b6a884b13"
        },
        {
            "line": "                            \"key\": \"close_other_tabs\",",
            "line_number": 145,
            "rule": "S106",
            "reason": "Var naming | 06a87ca13f"
        },
        {
            "line": "                            \"key\": \"previous_tab\",",
            "line_number": 151,
            "rule": "S106",
            "reason": "Var naming | 5af136ce5e"
        },
        {
            "line": "                            \"key\": \"next_tab\",",
            "line_number": 157,
            "rule": "S106",
            "reason": "Var naming | bbeaf83e64"
        },
        {
            "line": "                            \"key\": \"vertical_split\",",
            "line_number": 163,
            "rule": "S106",
            "reason": "Var naming | 86f5245470"
        },
        {
            "line": "                            \"key\": \"horionzal_split\",",
            "line_number": 169,
            "rule": "S106",
            "reason": "Var naming | fba452e82e"
        },
        {
            "line": "                            \"key\": \"select_upper_workspace\",",
            "line_number": 175,
            "rule": "S106",
            "reason": "Var naming | 976145fb53"
        },
        {
            "line": "                            \"key\": \"select_lower_workspace\",",
            "line_number": 181,
            "rule": "S106",
            "reason": "Var naming | f0e428d847"
        },
        {
            "line": "                            \"key\": \"select_left_workspace\",",
            "line_number": 187,
            "rule": "S106",
            "reason": "Var naming | e570868c51"
        },
        {
            "line": "                            \"key\": \"select_right_workspace\",",
            "line_number": 193,
            "rule": "S106",
            "reason": "Var naming | f0eb2e7fd3"
        },
        {
            "line": "                            \"key\": \"close_workspace\",",
            "line_number": 199,
            "rule": "S106",
            "reason": "Var naming | 9b8b249fb1"
        },
        {
            "line": "                            \"key\": \"close_other_workspaces\",",
            "line_number": 205,
            "rule": "S106",
            "reason": "Var naming | 3d388f9973"
        },
        {
            "line": "                            \"key\": \"switch_label_win_1\",",
            "line_number": 211,
            "rule": "S106",
            "reason": "Var naming | bd41cf6e38"
        },
        {
            "line": "                            \"key\": \"switch_label_win_2\",",
            "line_number": 217,
            "rule": "S106",
            "reason": "Var naming | 4f6560f6ac"
        },
        {
            "line": "                            \"key\": \"switch_label_win_3\",",
            "line_number": 223,
            "rule": "S106",
            "reason": "Var naming | 7d98167a56"
        },
        {
            "line": "                            \"key\": \"switch_label_win_4\",",
            "line_number": 229,
            "rule": "S106",
            "reason": "Var naming | cd7586773d"
        },
        {
            "line": "                            \"key\": \"switch_label_win_5\",",
            "line_number": 235,
            "rule": "S106",
            "reason": "Var naming | 70ce7cf13a"
        },
        {
            "line": "                            \"key\": \"switch_label_win_6\",",
            "line_number": 241,
            "rule": "S106",
            "reason": "Var naming | bea07c94e6"
        },
        {
            "line": "                            \"key\": \"switch_label_win_7\",",
            "line_number": 247,
            "rule": "S106",
            "reason": "Var naming | dd3457f01a"
        },
        {
            "line": "                            \"key\": \"switch_label_win_8\",",
            "line_number": 253,
            "rule": "S106",
            "reason": "Var naming | c15a34265b"
        },
        {
            "line": "                            \"key\": \"switch_label_win_9\",",
            "line_number": 259,
            "rule": "S106",
            "reason": "Var naming | 26582a9705"
        },
        {
            "line": "                    \"key\" : \"advanced\",",
            "line_number": 267,
            "rule": "S106",
            "reason": "Var naming | 134b5cc4a5"
        },
        {
            "line": "                            \"key\": \"switch_fullscreen\",",
            "line_number": 271,
            "rule": "S106",
            "reason": "Var naming | 8ec6ea129a"
        },
        {
            "line": "                            \"key\": \"rename_title\",",
            "line_number": 277,
            "rule": "S106",
            "reason": "Var naming | fbcf9245ff"
        },
        {
            "line": "                            \"key\": \"display_shortcuts\",",
            "line_number": 283,
            "rule": "S106",
            "reason": "Var naming | 86a8bf3380"
        },
        {
            "line": "                            \"key\": \"custom_command\",",
            "line_number": 290,
            "rule": "S106",
            "reason": "Var naming | 08b6d74b1e"
        },
        {
            "line": "                            \"key\": \"remote_management\",",
            "line_number": 296,
            "rule": "S106",
            "reason": "Var naming | 5ec54dc5e4"
        },
        {
            "line": "            \"key\": \"advanced\",",
            "line_number": 306,
            "rule": "S106",
            "reason": "Var naming | 134b5cc4a5"
        },
        {
            "line": "                    \"key\": \"cursor\",",
            "line_number": 310,
            "rule": "S106",
            "reason": "Var naming | 4f6d834652"
        },
        {
            "line": "                            \"key\": \"cursor_shape\",",
            "line_number": 314,
            "rule": "S106",
            "reason": "Var naming | d690861c1e"
        },
        {
            "line": "                            \"key\": \"include_special_characters_in_double_click_selections\",",
            "line_number": 322,
            "rule": "S106",
            "reason": "Var naming | 372a9e73c4"
        },
        {
            "line": "                            \"key\": \"cursor_blink\",",
            "line_number": 328,
            "rule": "S106",
            "reason": "Var naming | 1668b704da"
        },
        {
            "line": "                            \"key\": \"auto_copy_selection\",",
            "line_number": 334,
            "rule": "S106",
            "reason": "Var naming | 4ea8dd9663"
        },
        {
            "line": "                            \"key\": \"set_cursor_position\",",
            "line_number": 340,
            "rule": "S106",
            "reason": "Var naming | 0f78722639"
        },
        {
            "line": "                    \"key\": \"scroll\",",
            "line_number": 348,
            "rule": "S106",
            "reason": "Var naming | 6a680d2789"
        },
        {
            "line": "                            \"key\": \"history_size\",",
            "line_number": 352,
            "rule": "S106",
            "reason": "Var naming | 40cee3e8d6"
        },
        {
            "line": "                            \"key\": \"scroll_on_key\",",
            "line_number": 361,
            "rule": "S106",
            "reason": "Var naming | dad1ccb98b"
        },
        {
            "line": "                            \"key\": \"scroll_on_output\",",
            "line_number": 367,
            "rule": "S106",
            "reason": "Var naming | ddef8031bd"
        },
        {
            "line": "                            \"key\": \"zoom_on_ctrl_scrollwheel\",",
            "line_number": 373,
            "rule": "S106",
            "reason": "Var naming | 1409cc0c37"
        },
        {
            "line": "                    \"key\": \"window\",",
            "line_number": 381,
            "rule": "S106",
            "reason": "Var naming | 1d9470aed8"
        },
        {
            "line": "                            \"key\": \"use_on_starting\",",
            "line_number": 385,
            "rule": "S106",
            "reason": "Var naming | bb195f507d"
        },
        {
            "line": "                            \"key\": \"auto_hide_raytheon_window\",",
            "line_number": 391,
            "rule": "S106",
            "reason": "Var naming | 03148969fc"
        },
        {
            "line": "                            \"key\": \"quake_window_animation_duration\",",
            "line_number": 397,
            "rule": "S106",
            "reason": "Var naming | b08c5ab9ea"
        },
        {
            "line": "                    \"key\": \"shell\",",
            "line_number": 408,
            "rule": "S106",
            "reason": "Var naming | b1e39ca235"
        },
        {
            "line": "                            \"key\": \"default_shell\",",
            "line_number": 412,
            "rule": "S106",
            "reason": "Var naming | c4ae2e9b36"
        },
        {
            "line": "                            \"key\": \"disable_ctrl_flow\",",
            "line_number": 418,
            "rule": "S106",
            "reason": "Var naming | eceb6ef6b0"
        },
        {
            "line": "                            \"key\": \"enable_debuginfod\",",
            "line_number": 424,
            "rule": "S106",
            "reason": "Var naming | 6c14d4cba9"
        },
        {
            "line": "                            \"key\": \"debuginfod_urls\",",
            "line_number": 430,
            "rule": "S106",
            "reason": "Var naming | 74e5c424d6"
        },
        {
            "line": "                            \"default\": \"https://debuginfod.deepin.com\"",
            "line_number": 433,
            "rule": "S35",
            "reason": "Url link | b7a259b630"
        }
    ],
    "src/views/termwidget.cpp": [
        {
            "line": "    QString strUrl = \"https://cn.bing.com/search?q=\" + selectedText();",
            "line_number": 601,
            "rule": "S35",
            "reason": "Url link | fd576f862d"
        },
        {
            "line": "    QString strUrl = \"https://www.baidu.com/s?wd=\" + selectedText();",
            "line_number": 607,
            "rule": "S35",
            "reason": "Url link | 6f8d292d20"
        },
        {
            "line": "    QString strUrl = \"https://github.com/search?q=\" + selectedText();",
            "line_number": 613,
            "rule": "S35",
            "reason": "Url link | e1ba2d7c70"
        },
        {
            "line": "    QString strUrl = \"https://stackoverflow.com/search?q=\" + selectedText();",
            "line_number": 619,
            "rule": "S35",
            "reason": "Url link | bd659725f2"
        }
    ]
}

Copy link
Member

@BLumia BLumia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

潜在问题:

需要校验吗?目前 DEBUGINFOD_URLS 会被直接传递给 sendText 作为命令发送。

其它看上去 ok。

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ArchieMeng, BLumia

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ArchieMeng
Copy link
Contributor Author

ArchieMeng commented Nov 19, 2024

潜在问题:

需要校验吗?目前 DEBUGINFOD_URLS 会被直接传递给 sendText 作为命令发送。

其它看上去 ok。

这个是用户自己设置的,应该问题不大吧。而且,它和debuginfod开关在同一界面,调整的时候是看得到这个参数的。而在终端启动阶段,这个值是直接设置成环境变量的。

@ArchieMeng ArchieMeng merged commit 35daf3d into linuxdeepin:master Nov 19, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants