code clean and optimize

Open
#894 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Quiet
Tech stack
c
Domain
devtools

Research direction

The issue points to cleanup across the codebase, including src/xiphos_html, deprecated GTK related APIs, resources, and file headers, but it does not identify a specific change or entry point. Start by reviewing the listed concerns and discussing one bounded cleanup with maintainers; done would need a defined scope and checks for that change.

Written by the indexing model from the issue text.

Description

Maybe we should clean up and optimize the code if have enough time? I found those code should be cleaned up:

  1. #if 0 ...... #endif
  2. The commented or invalided code.
  3. Deprecations api migrate, like gconf to gsettings, dbus-glib to gdbus, etc.
  4. Use gresource to include resource files, like images, ui files, etc.
  5. Rewrite real object to instead alias or macro defined object under src/xiphos_html.
  6. Eliminate global and external variables, decouple code, and avoid the internal implementation of exposed objects.
  7. The address of the license is located in the header of some files.
Dominant language
Tree-sitter Query
Stars
271
Forks
68
Avg merge
3d 2h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from crosswire/xiphos

All issues in crosswire/xiphos

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.