Skip to content

yfquotes@thegli: refactoring - #1896

Open
sulonetskyy wants to merge 1 commit into
linuxmint:masterfrom
sulonetskyy:refactoring
Open

yfquotes@thegli: refactoring#1896
sulonetskyy wants to merge 1 commit into
linuxmint:masterfrom
sulonetskyy:refactoring

Conversation

@sulonetskyy

@sulonetskyy sulonetskyy commented Aug 25, 2026

Copy link
Copy Markdown
Contributor
  • extract logging in a separate utility class
  • use extracted logger instead of YahooFinanceQuoteUtils
  • some minor fixes

@github-actions

Copy link
Copy Markdown

Best-practices scanner

This is a regex-based check for API usage that can pose security, performance or
maintainability issues, or that may already be provided by Cinnamon. Most findings
are advisory and do not automatically disqualify a pull request.

This check is not perfect and will not replace a normal review.


Found 1 potential issue(s):

⚠️ WARNING

⚠️ sync_file_query_exists

yfquotes@thegli/files/yfquotes@thegli/logger.js:19

this.debugging = DEBUGGING || Gio.file_new_for_path(DeskletManager.deskletMeta[this.uuid].path + "/DEBUG").query_exists(null);

query_exists() is a synchronous call that can block on slow/network filesystems.
Prefer attempting the operation and handling a Gio.IOErrorEnum.NOT_FOUND error instead.


Automated pattern check.

@sulonetskyy

Copy link
Copy Markdown
Contributor Author

@thegli could you please review )

@github-actions

Copy link
Copy Markdown

Best-practices scanner

This is a regex-based check for API usage that can pose security, performance or
maintainability issues, or that may already be provided by Cinnamon. Most findings
are advisory and do not automatically disqualify a pull request.

This check is not perfect and will not replace a normal review.


Found 1 potential issue(s):

⚠️ WARNING

⚠️ sync_file_query_info

yfquotes@thegli/files/yfquotes@thegli/logger.js:28

file.query_info(Gio.FILE_ATTRIBUTE_STANDARD_TYPE, Gio.FileQueryInfoFlags.NONE, null);

Synchronous query_info() blocks the main loop.
Use query_info_async() instead.


Automated pattern check.

- extract logging in a separate utility class
- use extracted logger instead of YahooFinanceQuoteUtils
- some minor fixes
@github-actions

Copy link
Copy Markdown

Best-practices scanner

This is a regex-based check for API usage that can pose security, performance or
maintainability issues, or that may already be provided by Cinnamon. Most findings
are advisory and do not automatically disqualify a pull request.

This check is not perfect and will not replace a normal review.


Found 1 potential issue(s):

⚠️ WARNING

⚠️ sync_file_query_exists

yfquotes@thegli/files/yfquotes@thegli/logger.js:19

this.debugging = DEBUGGING || Gio.file_new_for_path(DeskletManager.deskletMeta[this.uuid].path + "/DEBUG").query_exists(null);

query_exists() is a synchronous call that can block on slow/network filesystems.
Prefer attempting the operation and handling a Gio.IOErrorEnum.NOT_FOUND error instead.


Automated pattern check.

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.

1 participant