Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use codespell #4145

Merged
merged 3 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
caf
Linz
linz
Taht
taht
referer
referers

17 changes: 17 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check spelling

on:
pull_request:
push:
branches: [ master ]

jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
ignore_words_file: .codespellignore
path: lib test extra
2 changes: 1 addition & 1 deletion lib/plausible/funnel/const.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Plausible.Funnel.Const do
@moduledoc """
Compile-time convience constants for funnel characteristics.
Compile-time convenience constants for funnel characteristics.
"""
@min_steps 2
@max_steps 8
Expand Down
2 changes: 1 addition & 1 deletion test/plausible/pagination_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule Plausible.PaginationTest do
assert Enum.count(pagination.entries) == Enum.count(sites)
end

test "user provided limit exceeeds maximum limit", %{query: q} do
test "user provided limit exceeds maximum limit", %{query: q} do
pagination = Pagination.paginate(q, %{"limit" => 200}, cursor_fields: [id: :desc])
assert pagination.metadata.limit == 10
end
Expand Down
2 changes: 1 addition & 1 deletion test/plausible_web/controllers/auth_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ defmodule PlausibleWeb.AuthControllerTest do
assert team_member_usage_row_text == "Team members 0"
end

test "redners 2FA section in disabled state", %{conn: conn} do
test "renders 2FA section in disabled state", %{conn: conn} do
conn = get(conn, "/settings")

assert html_response(conn, 200) =~ "Enable 2FA"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ defmodule PlausibleWeb.GoogleAnalyticsControllerTest do
"Google Analytics API has timed out."
end

test "redirects to imports and exports on list retrival failure with flash error",
test "redirects to imports and exports on list retrieval failure with flash error",
%{
conn: conn,
site: site
Expand Down
4 changes: 2 additions & 2 deletions test/plausible_web/controllers/site_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ defmodule PlausibleWeb.SiteControllerTest do

setup tags do
if tags[:async] do
raise "this test modifies application envinronment and can't be run asynchronously"
raise "this test modifies application environment and can't be run asynchronously"
end

prev_env = Application.get_env(:ex_aws, :s3)
Expand Down Expand Up @@ -1556,7 +1556,7 @@ defmodule PlausibleWeb.SiteControllerTest do
assert is_nil(site.domain_changed_from)
end

test "domain change succcessful form submission redirects to snippet change info", %{
test "domain change successful form submission redirects to snippet change info", %{
conn: conn,
site: site
} do
Expand Down
Loading