Skip to content

A platform for community discussion. Free, open, simple.

FIX: typos, dead code, debug statements, incorrect naming, etc. (#37462)

Keegan Georgeec42f4cfaaf4
diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scss
index 6395bba3f8a..58788705c56 100644
--- a/app/assets/stylesheets/wizard.scss
+++ b/app/assets/stylesheets/wizard.scss
@@ -494,10 +494,6 @@ body.wizard {
}
}
- &primary:active {
- background-color: var(--tertiary-high);
- }
-
&:disabled {
background-color: var(--tertiary-low);
}
diff --git a/frontend/discourse/app/lib/lazy-load-images.js b/frontend/discourse/app/lib/lazy-load-images.js
index 71c5ed8e6a6..a99f3b299e1 100644
--- a/frontend/discourse/app/lib/lazy-load-images.js
+++ b/frontend/discourse/app/lib/lazy-load-images.js
@@ -23,7 +23,7 @@ export function nativeLazyLoading(api) {
if (siteSettings.secure_uploads && smallUpload) {
// Secure uploads requests go through the app. In topics with many images,
// this makes it very easy to hit rate limiters. Skipping the low-res
- // placeholders reduces the chance of this problem occuring.
+ // placeholders reduces the chance of this problem occurring.
return;
}
diff --git a/frontend/discourse/app/services/capabilities.js b/frontend/discourse/app/services/capabilities.js
index c0e201bd95e..095eeac2604 100644
--- a/frontend/discourse/app/services/capabilities.js
+++ b/frontend/discourse/app/services/capabilities.js
@@ -9,7 +9,7 @@ const APPLE_USER_AGENT_DATA_PLATFORM = /macOS/;
const ua = navigator.userAgent;
-const anyPointerCourseQuery = new TrackedMediaQuery("(any-pointer: coarse)");
+const anyPointerCoarseQuery = new TrackedMediaQuery("(any-pointer: coarse)");
let siteInitialized = false;
@@ -110,7 +110,7 @@ class Capabilities {
}
get touch() {
- return anyPointerCourseQuery.matches;
+ return anyPointerCoarseQuery.matches;
}
get userHasBeenActive() {
diff --git a/plugins/discourse-rewind/spec/actions/best_posts_spec.rb b/plugins/discourse-rewind/spec/actions/best_posts_spec.rb
index e86be9cdc45..515d4e89376 100644
--- a/plugins/discourse-rewind/spec/actions/best_posts_spec.rb
+++ b/plugins/discourse-rewind/spec/actions/best_posts_spec.rb
@@ -81,7 +81,7 @@ RSpec.describe DiscourseRewind::Action::BestPosts do
end
end
- context "when a post is in a private category" do
+ context "when a post is in a private category" do
fab!(:private_category) { Fabricate(:category, read_restricted: true) }
fab!(:private_topic) { Fabricate(:topic, category: private_category, user: user) }
fab!(:private_category_post) do
diff --git a/plugins/discourse-rewind/spec/actions/best_topics_spec.rb b/plugins/discourse-rewind/spec/actions/best_topics_spec.rb
index 4d2fca9d72a..798128ef429 100644
--- a/plugins/discourse-rewind/spec/actions/best_topics_spec.rb
+++ b/plugins/discourse-rewind/spec/actions/best_topics_spec.rb
@@ -55,7 +55,7 @@ RSpec.describe DiscourseRewind::Action::BestTopics do
end
end
- context "when a topic" do
+ context "when a topic belongs to another user" do
before { topic_1.update!(user: Fabricate(:user)) }
it "is not included" do
diff --git a/plugins/discourse-subscriptions/spec/requests/hooks_controller_spec.rb b/plugins/discourse-subscriptions/spec/requests/hooks_controller_spec.rb
index c962c469f01..93b42df0960 100644
--- a/plugins/discourse-subscriptions/spec/requests/hooks_controller_spec.rb
+++ b/plugins/discourse-subscriptions/spec/requests/hooks_controller_spec.rb
@@ -173,7 +173,7 @@ RSpec.describe DiscourseSubscriptions::HooksController do
::Stripe::Webhook.stubs(:construct_event).returns(event)
end
- it "is successfull" do
+ it "is successful" do
post "/s/hooks.json"
expect(response.status).to eq 200
end
@@ -272,7 +272,7 @@ RSpec.describe DiscourseSubscriptions::HooksController do
::Stripe::Webhook.stubs(:construct_event).returns(event)
end
- it "is successfull" do
+ it "is successful" do
post "/s/hooks.json"
expect(response.status).to eq 200
end
diff --git a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjs b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjs
index b1eafd5f25c..c445ae30537 100644
--- a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjs
+++ b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjs
@@ -372,7 +372,7 @@ import Form from "discourse/components/form";
</row.Col>
<row.Col @size={{12}}>
- <form.Field @title="Adress" @name="adress" as |field|>
+ <form.Field @title="Address" @name="address" as |field|>
<field.Input />
</form.Field>
</row.Col>
@@ -713,7 +713,7 @@ import Form from "discourse/components/form";
</row.Col>
<row.Col @size={{12}}>
- <form.Field @title="Adress" @name="adress" as |field|>
+ <form.Field @title="Address" @name="address" as |field|>
<field.Input />
</form.Field>
</row.Col>
diff --git a/spec/requests/admin/config/site_settings_controller_spec.rb b/spec/requests/admin/config/site_settings_controller_spec.rb
index 6a280daca6c..ebc36a9040e 100644
--- a/spec/requests/admin/config/site_settings_controller_spec.rb
+++ b/spec/requests/admin/config/site_settings_controller_spec.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-RSpec.describe Admin::SiteSettingsController do
+RSpec.describe Admin::Config::SiteSettingsController do
fab!(:admin)
fab!(:user)
diff --git a/spec/requests/admin/site_texts_controller_spec.rb b/spec/requests/admin/site_texts_controller_spec.rb
index 56caf378714..cc0c53e80ca 100644
--- a/spec/requests/admin/site_texts_controller_spec.rb
+++ b/spec/requests/admin/site_texts_controller_spec.rb
@@ -174,7 +174,6 @@ RSpec.describe Admin::SiteTextsController do
end
it "returns only untranslated (english) strings" do
- available_locales = I18n.config.available_locales
I18n.config.available_locales = %i[en test]
I18n.backend.store_translations(:en, { shrubbery: "Shrubbery" })
diff --git a/spec/system/topic_tracking_state_spec.rb b/spec/system/topic_tracking_state_spec.rb
index c0c2c8a18ca..9b978d56816 100644
--- a/spec/system/topic_tracking_state_spec.rb
+++ b/spec/system/topic_tracking_state_spec.rb
@@ -59,7 +59,6 @@ describe "Topic tracking state", type: :system do
muted_topic = publish_new_topic([muted_tag])
normal_topic = publish_new_topic([])
- puts "Published topics: #{muted_topic.id} (muted), #{normal_topic.id} (normal)"
try_until_success(reason: "relies on MessageBus updates") do
expect(page).to have_css(".show-more", text: /1.*new/)