Add .exs and .eex checking in cspell

pull/7435/head
Maxim Filonov 2 years ago
parent a1f6b6fc94
commit bbf0a07de2
  1. 5
      .github/workflows/config.yml
  2. 1
      CHANGELOG.md
  3. 2
      apps/block_scout_web/config/runtime/test.exs
  4. 4
      apps/block_scout_web/lib/block_scout_web/templates/chain/show.html.eex
  5. 2
      apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex
  6. 2
      apps/block_scout_web/test/block_scout_web/controllers/address_withdrawal_controller_test.exs
  7. 2
      apps/ethereum_jsonrpc/test/ethereum_jsonrpc/block_test.exs
  8. 2
      apps/explorer/priv/account/migrations/20220706114430_encrypt_account_data.exs
  9. 2
      apps/explorer/priv/account/migrations/20220706153506_remove_unencrypted_fields.exs
  10. 2
      apps/explorer/priv/repo/migrations/20190313085740_add_index_symobl_in_tokens.exs
  11. 2
      apps/explorer/priv/repo/migrations/20191007082500_add_indexes_for_token_instances_query.exs
  12. 2
      apps/explorer/priv/repo/migrations/20211029085117_drop_block_rewards_block_hash_partial_index.exs
  13. 2
      apps/explorer/priv/repo/migrations/20221223214711_create_withdrawals.exs
  14. 2
      apps/explorer/test/explorer/chain_test.exs
  15. 219
      cspell.json

@ -265,7 +265,10 @@ jobs:
- name: Run cspell
uses: streetsidesoftware/cspell-action@v2
with:
files: "**/*.ex* **/*.eex **/*.js"
files: |
**/*.ex*
**/*.eex
**/*.js"
eslint:
name: ESLint

@ -20,6 +20,7 @@
### Chore
- [#7435](https://github.com/blockscout/blockscout/pull/7435) - Add `.exs` and `.eex` checking in cspell
- [#7450](https://github.com/blockscout/blockscout/pull/7450) - Resolve unresponsive navbar in verification form page
- [#7449](https://github.com/blockscout/blockscout/pull/7449) - Actualize docker-compose readme and use latest tags instead main
- [#7417](https://github.com/blockscout/blockscout/pull/7417) - Docker compose for frontend

@ -6,7 +6,7 @@ config :explorer, Explorer.ExchangeRates, enabled: false, store: :none
config :ueberauth, Ueberauth.Strategy.Auth0.OAuth,
domain: "example.com",
client_id: "clien_id",
client_id: "client_id",
client_secret: "secrets"
config :ueberauth, Ueberauth, logout_url: "example.com/logout"

@ -31,9 +31,9 @@
<%= if Map.has_key?(@chart_config, :market) || price_chart_legend_enabled? do %>
<%# THE FOLLOWING LINE PREVENTS COPY/PASTE ERRORS %>
<%# Explicity put @chart_config.market in a variable %>
<%# Explicitly put @chart_config.market in a variable %>
<%# This is done so that when people add a new chart source, x, %>
<%# They wont just access @chart_config.x w/o first checking if x exists%>
<%# They wont just access @chart_config.x w/o first checking if x exists %>
<% market_chart_config = Map.has_key?(@chart_config, :market) && @chart_config.market%>
<%= if price_chart_legend_enabled? || Enum.member?(market_chart_config, :price) do %>

@ -54,7 +54,7 @@
<h3><%= gettext("Main Networks") %></h3>
<ul>
<%= for %{title: title, url: url} <- main_nets do %>
<li><a href="<%= url %>" rel="norefferer" class="footer-link"> <%= title %> </a></li>
<li><a href="<%= url %>" rel="noreferrer" class="footer-link"> <%= title %> </a></li>
<% end %>
</ul>
</div>

@ -46,7 +46,7 @@ defmodule BlockScoutWeb.AddressWithdrawalControllerTest do
test "returns withdrawals for the address", %{conn: conn} do
address = insert(:address, withdrawals: insert_list(30, :withdrawal))
# to check that we can correctly render adress overview
# to check that we can correctly render address overview
get(conn, address_withdrawal_path(conn, :index, Address.checksum(address)))
conn = get(conn, address_withdrawal_path(conn, :index, Address.checksum(address), %{"type" => "JSON"}))

@ -6,7 +6,7 @@ defmodule EthereumJSONRPC.BlockTest do
alias EthereumJSONRPC.Block
describe "elixir_to_params/1" do
test "sets totalDifficuly to nil if it's empty" do
test "sets totalDifficulty to nil if it's empty" do
result =
Block.elixir_to_params(%{
"difficulty" => 17_561_410_778,

@ -11,7 +11,7 @@ defmodule Explorer.Repo.Account.Migrations.EncryptAccountData do
add(:encrypted_avatar, :binary, null: true)
end
# unused because we dont have personal watchlists, only autogenerated `default` for each identity
# unused because we don't have personal watchlists, only autogenerated `default` for each identity
# alter table(:account_watchlists) do
# add(:encrypted_name, :binary)
# end

@ -16,7 +16,7 @@ defmodule Explorer.Repo.Account.Migrations.RemoveUnencryptedFields do
rename(table(:account_identities), :encrypted_nickname, to: :nickname)
rename(table(:account_identities), :encrypted_avatar, to: :avatar)
# unused because we dont have personal watchlists, only autogenerated `default` for each identity
# unused because we don't have personal watchlists, only autogenerated `default` for each identity
# alter table(:account_watchlists) do
# remove(:name)
# end

@ -1,4 +1,4 @@
defmodule Explorer.Repo.Migrations.AddIndexSymoblInTokens do
defmodule Explorer.Repo.Migrations.AddIndexSymbolInTokens do
use Ecto.Migration
def change do

@ -1,4 +1,4 @@
defmodule Explorer.Repo.Migrations.AddIndexesForTokenInstrancesQuery do
defmodule Explorer.Repo.Migrations.AddIndexesForTokenInstancesQuery do
use Ecto.Migration
def change do

@ -4,7 +4,7 @@ defmodule Explorer.Repo.Migrations.DropBlockRewardsBlockHashPartialIndex do
def change do
drop_if_exists(
index(
:block_rewadrs,
:block_rewards,
~w(block_hash)a,
name: :block_rewards_block_hash_partial_index,
where: "address_type='validator'"

@ -1,4 +1,4 @@
defmodule Explorer.Repo.Migrations.CreareWithdrawals do
defmodule Explorer.Repo.Migrations.CreateWithdrawals do
use Ecto.Migration
def change do

@ -972,7 +972,7 @@ defmodule Explorer.ChainTest do
end
describe "block_to_gas_used_by_1559_txs/1" do
test "sum of gas_usd from all transactions including glegacy" do
test "sum of gas_usd from all transactions including legacy" do
block = insert(:block, base_fee_per_gas: 4)
insert(:transaction,

@ -9,27 +9,48 @@
"apps/block_scout_web/assets/js/lib/ace/src-min/*.js"
],
"words": [
"aave",
"absname",
"acbs",
"accs",
"actb",
"addedfile",
"AION",
"AIRTABLE",
"Aiubo",
"alloc",
"amzootyukbugmx",
"apikey",
"Arbitrum",
"ARGMAX",
"arounds",
"asda",
"atoken",
"autodetectfalse",
"Autodetection",
"autodetecttrue",
"Autonity",
"autoplay",
"backoff",
"badhash",
"badnumber",
"badpassword",
"bafybeid",
"bafybeig",
"bafybeihxuj",
"balancemulti",
"benchee",
"besu",
"bignumber",
"bigserial",
"binwrite",
"bizbuz",
"Blockchair",
"blockheight",
"blockless",
"blockno",
"blockscout",
"blockscoutuser",
"bools",
"browserconfig",
"bsdr",
@ -43,15 +64,22 @@
"cacerts",
"callcode",
"CALLCODE",
"calltracer",
"capturelog",
"cattributes",
"CBOR",
"cellspacing",
"certifi",
"cfasync",
"chainlink",
"chakra",
"chartjs",
"checksummed",
"checkverifystatus",
"childspec",
"citext",
"Cldr",
"clearfix",
"clickover",
"codeformat",
"coef",
@ -59,51 +87,91 @@
"coinsupply",
"coinzilla",
"coinzillatag",
"coloreyes",
"colorprimary",
"colorsecondary",
"colortertiary",
"colspan",
"comeonin",
"compilerversion",
"concache",
"cond",
"Consolas",
"contractaddress",
"contractname",
"cooldown",
"cooltesthost",
"crossorigin",
"ctbs",
"ctid",
"cumalative",
"Cyclomatic",
"cypherpunk",
"czilladx",
"datapoint",
"datepicker",
"DATETIME",
"deae",
"decamelize",
"decompiled",
"decompiler",
"Decompiler",
"dedup",
"defmock",
"defsupervisor",
"dejob",
"dejobio",
"delegatecall",
"DELEGATECALL",
"delegators",
"demonitor",
"Denormalized",
"descr",
"describedby",
"differenceby",
"discordapp",
"dropzone",
"dxgd",
"dyntsrohg",
"Ebhwp",
"econnrefused",
"ECTO",
"EDCSA",
"edhygl",
"efkuga",
"Encryptor",
"endregion",
"enetunreach",
"enoent",
"epns",
"Erigon",
"errora",
"errorb",
"Ethash",
"etherchain",
"ethsupply",
"ethsupplyexchange",
"etimedout",
"eveem",
"evenodd",
"explorable",
"exponention",
"extcodehash",
"extname",
"extremums",
"exvcr",
"Faileddi",
"falala",
"Filesize",
"Floki",
"fontawesome",
"fortawesome",
"fsym",
"fullwidth",
"Fuov",
"fvdskvjglav",
"fwrite",
"fwupv",
"getabi",
"getblockbyhash",
"getblocknobytime",
@ -118,10 +186,17 @@
"gettxinfo",
"gettxreceiptstatus",
"giga",
"gqz",
"granitegrey",
"graphiql",
"grecaptcha",
"greymatter",
"happygokitty",
"haspopup",
"Hazkne",
"histoday",
"hljs",
"Hodl",
"httpoison",
"ifdef",
"ifeq",
@ -129,54 +204,117 @@
"iframes",
"Iframes",
"ilike",
"illustr",
"inapp",
"Incrementer",
"insertable",
"Instrumenter",
"intersectionby",
"ints",
"invalidend",
"invalidhash",
"invalidoffset",
"invalidpage",
"invalidsortoption",
"invalidstart",
"inversed",
"ipfs",
"itxs",
"johnnny",
"jsons",
"juon",
"Karnaugh",
"keccak",
"Keepalive",
"keyout",
"kittencream",
"labeledby",
"labelledby",
"lastname",
"lastword",
"lformat",
"libsecp",
"Limegreen",
"linecap",
"linejoin",
"listaccounts",
"listcontracts",
"lkve",
"llhauc",
"loggable",
"LUKSO",
"luxon",
"mabi",
"Mainnets",
"malihu",
"mallowance",
"MARKETCAP",
"maxlength",
"mcap",
"mconst",
"mdef",
"MDWW",
"Mendonça",
"Menlo",
"mergeable",
"Merkle",
"metatags",
"millis",
"mintings",
"mistmatches",
"miterlimit",
"Mixfile",
"mmem",
"mname",
"mnot",
"moxed",
"moxing",
"mpayable",
"msapplication",
"msha",
"mstile",
"mstor",
"msymbol",
"mtransfer",
"mult",
"multicall",
"multis",
"munchos",
"munknownc",
"munknowne",
"mydep",
"nanomorph",
"nbsp",
"Nethermind",
"Neue",
"newkey",
"nftproduct",
"ngettext",
"nillifies",
"Njhr",
"nlmyzui",
"nocheck",
"Nodealus",
"nohighlight",
"nolink",
"nonconsensus",
"nonpending",
"noproc",
"noreferrer",
"noreply",
"nowarn",
"nowrap",
"ntoa",
"Numbe",
"Nunito",
"nxdomain",
"omni",
"onclick",
"onconnect",
"ondisconnect",
"outcoming",
"pawesome",
"pbcopy",
"pendingtxlist",
"perc",
"persistable",
@ -189,15 +327,37 @@
"pikaday",
"pkey",
"pkix",
"playsinline",
"plpgsql",
"plts",
"poanetwork",
"poap",
"pocc",
"polyline",
"poolboy",
"POSDAO",
"Posix",
"Postrge",
"prederive",
"prederived",
"progressbar",
"psql",
"purrstige",
"qdai",
"Qebz",
"Qmbgk",
"qrcode",
"queriable",
"questiona",
"questionb",
"qwertyufhgkhiop",
"racecar",
"raisedbrow",
"rangeright",
"raquo",
"rarr",
"ratiolector",
"rbtc",
"recaptcha",
"rechunk",
"recollated",
@ -207,23 +367,29 @@
"relname",
"reltuples",
"removedfile",
"repayer",
"reqs",
"rerequest",
"reshows",
"retryable",
"reuseaddr",
"RPC's",
"RPCs",
"safelow",
"savechives",
"Secon",
"Segoe",
"seindexed",
"selfdestruct",
"selfdestructed",
"SENDGRID",
"Sérgio",
"sharelock",
"sharelocks",
"shortdoc",
"shortify",
"SJONRPC",
"smallint",
"smth",
"snapshotted",
"snapshotting",
@ -233,6 +399,7 @@
"sourcecode",
"sourcify",
"splitted",
"srcset",
"staker",
"stakers",
"stateroot",
@ -241,6 +408,7 @@
"strftime",
"stringly",
"stylelint",
"stylesheet",
"subcall",
"subcalls",
"subdenomination",
@ -248,30 +416,59 @@
"subqueries",
"subquery",
"subsubcalls",
"subtrace",
"subtraces",
"successa",
"successb",
"swal",
"sweetalert",
"Synthereum",
"tabindex",
"tablist",
"tabpanel",
"tarekraafat",
"tbody",
"tbrf",
"Tcnwg",
"tems",
"Testinit",
"Testit",
"Testname",
"testpassword",
"testtest",
"testuser",
"thead",
"thicccbrowz",
"throttleable",
"tokenbalance",
"tokenlist",
"tokensupply",
"tokentx",
"topbar",
"topnav",
"totalfees",
"totesbasic",
"trgm",
"trunc",
"trustwallet",
"tsquery",
"tsvector",
"tsym",
"txlistinternal",
"Txns",
"txpool",
"txreceipt",
"ueberauth",
"ufixed",
"uncatalog",
"unclosable",
"unfetched",
"Unitarion",
"Unitorius",
"Unitorus",
"unknownc",
"unknowne",
"unmarshal",
"unmatching",
"unnest",
"unpadded",
@ -282,25 +479,47 @@
"upserting",
"upserts",
"urijs",
"Utqn",
"valign",
"valuemax",
"valuemin",
"valuenow",
"verifysourcecode",
"viewerjs",
"volumefrom",
"volumeto",
"vyper",
"walletconnect",
"Wanchain",
"warninga",
"warningb",
"watchlist",
"watchlisted",
"watchlists",
"whereis",
"whiler",
"wysdvjkizxonu",
"xakgj",
"xbaddress",
"xdai",
"xffff",
"xlink",
"xmark",
"xmlhttprequest",
"xnonsense",
"xzzz",
"yellowgreen",
"zaphod",
"zeppelinos",
"zftv",
"ziczr",
"zindex",
"zipcode",
"zkbob"
],
"enableFiletypes": [
"dotenv",
"html-eex",
"makefile"
]
}

Loading…
Cancel
Save