-
Notifications
You must be signed in to change notification settings - Fork 177
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
refactor: Move dfmplugin-disk-encrypt from dde-filemanager-extensions #2466
Conversation
Warning
详情 {
"export": {
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
"b": [
" exportRecKeyEnabled = config_utils::exportKeyEnabled();",
" params.exportPath = keyExportInput->text();",
" \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
" keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
" if (exportRecKeyEnabled) {",
" exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
"b": [
" bool exportRecKeyEnabled { false };"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
"b": [
" addButton(tr(\"Re-export the recovery key\"));",
" if (btnTxt != tr(\"Re-export the recovery key\"))",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable \"",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
"b": [
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
]
}
}
} |
Note
详情{
"examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
{
"line": " const QString password = \"Qwer@1234\";",
"line_number": 104,
"rule": "S106",
"reason": "Var naming | cafae82bb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 335,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
},
{
"line": " *pwd = acquirePassphraseByPIN(dev, *cancelled);",
"line_number": 342,
"rule": "S28",
"reason": "Suspicious password declaration | 4cdcd2dd34"
},
{
"line": " *pwd = acquirePassphraseByTPM(dev, *cancelled);",
"line_number": 345,
"rule": "S28",
"reason": "Suspicious password declaration | 1db15c632e"
},
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 366,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
}
],
"src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 68,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
Warning
详情 {
"export": {
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
"b": [
" exportRecKeyEnabled = config_utils::exportKeyEnabled();",
" params.exportPath = keyExportInput->text();",
" \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
" keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
" if (exportRecKeyEnabled) {",
" exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
"b": [
" bool exportRecKeyEnabled { false };"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
"b": [
" addButton(tr(\"Re-export the recovery key\"));",
" if (btnTxt != tr(\"Re-export the recovery key\"))",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable \"",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
"b": [
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
]
}
}
} |
Note
详情{
"examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
{
"line": " const QString password = \"Qwer@1234\";",
"line_number": 104,
"rule": "S106",
"reason": "Var naming | cafae82bb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 335,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
},
{
"line": " *pwd = acquirePassphraseByPIN(dev, *cancelled);",
"line_number": 342,
"rule": "S28",
"reason": "Suspicious password declaration | 4cdcd2dd34"
},
{
"line": " *pwd = acquirePassphraseByTPM(dev, *cancelled);",
"line_number": 345,
"rule": "S28",
"reason": "Suspicious password declaration | 1db15c632e"
},
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 366,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
}
],
"src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 68,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
Move dfmplugin-disk-encrypt from dde-filemanager-extensions Log:
Warning
详情 {
"export": {
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
"b": [
" exportRecKeyEnabled = config_utils::exportKeyEnabled();",
" params.exportPath = keyExportInput->text();",
" \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
" keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
" if (exportRecKeyEnabled) {",
" exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
"b": [
" bool exportRecKeyEnabled { false };"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
"b": [
" addButton(tr(\"Re-export the recovery key\"));",
" if (btnTxt != tr(\"Re-export the recovery key\"))",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable \"",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
"b": [
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
]
}
}
} |
Note
详情{
"examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
{
"line": " const QString password = \"Qwer@1234\";",
"line_number": 104,
"rule": "S106",
"reason": "Var naming | cafae82bb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 335,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
},
{
"line": " *pwd = acquirePassphraseByPIN(dev, *cancelled);",
"line_number": 342,
"rule": "S28",
"reason": "Suspicious password declaration | 4cdcd2dd34"
},
{
"line": " *pwd = acquirePassphraseByTPM(dev, *cancelled);",
"line_number": 345,
"rule": "S28",
"reason": "Suspicious password declaration | 1db15c632e"
},
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 366,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
}
],
"src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 68,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
Warning
详情 {
"export": {
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
"b": [
" exportRecKeyEnabled = config_utils::exportKeyEnabled();",
" params.exportPath = keyExportInput->text();",
" \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
" keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
" if (exportRecKeyEnabled) {",
" exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
"b": [
" bool exportRecKeyEnabled { false };"
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
"b": [
" addButton(tr(\"Re-export the recovery key\"));",
" if (btnTxt != tr(\"Re-export the recovery key\"))",
" setMsg(tr(\"Recovery key export path cannot be empty!\"));",
" setMsg(tr(\"Recovery key export path is not exists!\"));",
" setMsg(tr(\"This partition is read-only, please export to a writable \"",
" setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
]
},
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
"b": [
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
" { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
]
}
}
} |
Note
详情{
"examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
{
"line": " const QString password = \"Qwer@1234\";",
"line_number": 104,
"rule": "S106",
"reason": "Var naming | cafae82bb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 335,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
},
{
"line": " *pwd = acquirePassphraseByPIN(dev, *cancelled);",
"line_number": 342,
"rule": "S28",
"reason": "Suspicious password declaration | 4cdcd2dd34"
},
{
"line": " *pwd = acquirePassphraseByTPM(dev, *cancelled);",
"line_number": 345,
"rule": "S28",
"reason": "Suspicious password declaration | 1db15c632e"
},
{
"line": " *pwd = acquirePassphraseByRec(dev, *cancelled);",
"line_number": 366,
"rule": "S28",
"reason": "Suspicious password declaration | c7753508fa"
}
],
"src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
{
"line": " \"UrlLink\" : \"https://www.uniontech.com\",",
"line_number": 11,
"rule": "S35",
"reason": "Url link | 3c9a9fccb6"
}
],
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 68,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Clauszy, itsXuSt, Johnson-zs 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 |
/forcemerge |
This pr force merged! (status: blocked) |
Move dfmplugin-disk-encrypt from dde-filemanager-extensions
Log: