))}
{backgrounds.concat(presetBackgrounds as Background[]).filter(bg => bg.type === 'image' && bg.isPreset && !bg.isDownloaded && !downloadedPresetIds.includes(bg.id)).map(bg => (
From fcd6618ea1ff23b5f318675fd5a7eb9527832a0a Mon Sep 17 00:00:00 2001
From: SethBurkart123
Date: Thu, 16 Nov 2023 06:33:21 +1100
Subject: [PATCH 2/3] Refactor Sweep rules in sweep.yaml
---
sweep.yaml | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sweep.yaml b/sweep.yaml
index eec2a7c5..a1af2e61 100644
--- a/sweep.yaml
+++ b/sweep.yaml
@@ -4,9 +4,6 @@
# This setting contains a list of rules that Sweep will check for. If any of these rules are broken in a new commit, Sweep will create an pull request to fix the broken rule.
rules:
- "All docstrings and comments should be up to date."
- - "Ensure consistent indentation and spacing throughout the code."
- - "Use meaningful variable and function names that accurately describe their purpose."
- - "Avoid using magic numbers or hard-coded values. Instead, use constants or variables to improve code readability and maintainability."
- "Remove commented-out code and unused imports to keep the codebase clean and organized."
- "Follow a consistent naming convention for files, functions, and variables to improve code readability and maintainability."
From 959f58f2ff31a862e4947708bf2f5b3e1fc470a6 Mon Sep 17 00:00:00 2001
From: SethBurkart123
Date: Thu, 16 Nov 2023 06:33:58 +1100
Subject: [PATCH 3/3] Added new rules to sweep.yaml
---
sweep.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sweep.yaml b/sweep.yaml
index a1af2e61..eec2a7c5 100644
--- a/sweep.yaml
+++ b/sweep.yaml
@@ -4,6 +4,9 @@
# This setting contains a list of rules that Sweep will check for. If any of these rules are broken in a new commit, Sweep will create an pull request to fix the broken rule.
rules:
- "All docstrings and comments should be up to date."
+ - "Ensure consistent indentation and spacing throughout the code."
+ - "Use meaningful variable and function names that accurately describe their purpose."
+ - "Avoid using magic numbers or hard-coded values. Instead, use constants or variables to improve code readability and maintainability."
- "Remove commented-out code and unused imports to keep the codebase clean and organized."
- "Follow a consistent naming convention for files, functions, and variables to improve code readability and maintainability."