You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor 21 high-complexity functions into smaller helpers (keyPressEvent,
_show_diff_for_change, set_plugin_menu, add_dock_widget, redirect,
startup_setting, check_all_format, toggle_comment, _assign_lanes,
_parse_unified_diff, _reapply_highlights_for_theme, run_program,
load_external_plugins, PythonHighlighter.__init__, etc.), rename camelCase
locals to snake_case, replace `list()`/`dict()` with literals, extract
duplicated string literals into module-level constants, remove unused
imports and parameters, drop dead-code comments, fix always-true
conditions, and rename `copyright` to `project_copyright`.
Tighten security surface: validate http(s) scheme before urlopen in
github_api, resolve and confine replace paths to project root to block
traversal, drop "http://" literal from clone URL parser, narrow broad
`except Exception` clauses to specific IO errors, reraise SystemExit in
CI entry points, add nosec justifications on legitimate subprocess/urllib
calls, and configure `[tool.bandit] exclude_dirs` in pyproject and
dev.toml to silence assert-in-tests B101 noise.
0 commit comments