Solve most code style warnings #149

Merged
Kevinjil merged 1 commits from fix/code-style into master 2025-01-09 17:59:21 +00:00
Kevinjil commented 2025-01-09 17:39:38 +00:00 (Migrated from github.com)

Skipped "Member ... does not access instance data and can be marked as static" when future non-static use is expected.
Skipped some switch statements which will be filled in.

Skipped "Member ... does not access instance data and can be marked as static" when future non-static use is expected. Skipped some switch statements which will be filled in.
github-advanced-security[bot] (Migrated from github.com) reviewed 2025-01-09 17:41:16 +00:00
@@ -40,3 +37,4 @@
private static Plugin? _instance;
/// <summary>
/// Initializes a new instance of the <see cref="Plugin"/> class.
github-advanced-security[bot] (Migrated from github.com) commented 2025-01-09 17:41:16 +00:00

Missed 'readonly' opportunity

Field '_instance' can be 'readonly'.

Show more details

## Missed 'readonly' opportunity Field '_instance' can be 'readonly'. [Show more details](https://github.com/Kevinjil/Jellyfin.Xtream/security/code-scanning/128)
github-advanced-security[bot] (Migrated from github.com) commented 2025-01-09 17:41:16 +00:00

Static field written by instance method

Write to static field from instance method, property, or constructor.

Show more details

## Static field written by instance method Write to static field from instance method, property, or constructor. [Show more details](https://github.com/Kevinjil/Jellyfin.Xtream/security/code-scanning/127)
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Sirherobrine23/Jellyfin_Xtream#149
No description provided.