From fe0506f8102f48f7391b75c92f832fbe06d01626 Mon Sep 17 00:00:00 2001 From: Kampfkarren Date: Tue, 12 Sep 2023 04:52:23 +0000 Subject: [PATCH] deploy: 5f6c2be747eb53b4f83fe045325c3b488e7145ac --- 404.html | 2 +- archive/index.html | 2 +- archive/std_v1.html | 2 +- cli/index.html | 2 +- cli/installation.html | 2 +- cli/usage.html | 2 +- contributing.html | 2 +- index.html | 2 +- lints/almost_swapped.html | 2 +- lints/constant_table_comparison.html | 2 +- lints/deprecated.html | 2 +- lints/divide_by_zero.html | 2 +- lints/duplicate_keys.html | 2 +- lints/empty_if.html | 2 +- lints/empty_loop.html | 2 +- lints/global_usage.html | 2 +- lints/high_cyclomatic_complexity.html | 2 +- lints/if_same_then_else.html | 2 +- lints/ifs_same_cond.html | 2 +- lints/incorrect_standard_library_use.html | 2 +- lints/index.html | 2 +- lints/manual_table_clone.html | 2 +- lints/mismatched_arg_count.html | 6 +- lints/mixed_table.html | 231 ++++++++++++++++++ lints/multiple_statements.html | 6 +- lints/must_use.html | 2 +- lints/parenthese_conditions.html | 2 +- lints/roblox_incorrect_color3_new_bounds.html | 2 +- lints/roblox_incorrect_roact_usage.html | 2 +- lints/roblox_suspicious_udim2_new.html | 2 +- lints/shadowing.html | 2 +- lints/suspicious_reverse_loop.html | 2 +- lints/type_check_inside_call.html | 2 +- lints/unbalanced_assignments.html | 2 +- lints/undefined_variable.html | 2 +- lints/unscoped_variables.html | 2 +- lints/unused_variable.html | 2 +- luacheck.html | 2 +- motivation.html | 2 +- print.html | 91 ++++--- roblox.html | 2 +- searchindex.js | 2 +- searchindex.json | 2 +- selene.html | 2 +- usage/configuration.html | 2 +- usage/filtering.html | 2 +- usage/index.html | 2 +- usage/std.html | 2 +- 48 files changed, 332 insertions(+), 90 deletions(-) create mode 100644 lints/mixed_table.html diff --git a/404.html b/404.html index 9b7e74c7..50c24670 100644 --- a/404.html +++ b/404.html @@ -84,7 +84,7 @@ diff --git a/archive/index.html b/archive/index.html index 126a797d..4ba0a338 100644 --- a/archive/index.html +++ b/archive/index.html @@ -83,7 +83,7 @@ diff --git a/archive/std_v1.html b/archive/std_v1.html index c9198ff3..cd5778ca 100644 --- a/archive/std_v1.html +++ b/archive/std_v1.html @@ -83,7 +83,7 @@ diff --git a/cli/index.html b/cli/index.html index d730daa7..025a86b4 100644 --- a/cli/index.html +++ b/cli/index.html @@ -83,7 +83,7 @@ diff --git a/cli/installation.html b/cli/installation.html index 1f039ee3..c9911349 100644 --- a/cli/installation.html +++ b/cli/installation.html @@ -83,7 +83,7 @@ diff --git a/cli/usage.html b/cli/usage.html index 81c137ca..7e3a9903 100644 --- a/cli/usage.html +++ b/cli/usage.html @@ -83,7 +83,7 @@ diff --git a/contributing.html b/contributing.html index cb8af0f2..6ff03892 100644 --- a/contributing.html +++ b/contributing.html @@ -83,7 +83,7 @@ diff --git a/index.html b/index.html index a0623d0a..7b1184ea 100644 --- a/index.html +++ b/index.html @@ -83,7 +83,7 @@ diff --git a/lints/almost_swapped.html b/lints/almost_swapped.html index 0e795250..86505e03 100644 --- a/lints/almost_swapped.html +++ b/lints/almost_swapped.html @@ -83,7 +83,7 @@ diff --git a/lints/constant_table_comparison.html b/lints/constant_table_comparison.html index 0f2ce53d..09514cce 100644 --- a/lints/constant_table_comparison.html +++ b/lints/constant_table_comparison.html @@ -83,7 +83,7 @@ diff --git a/lints/deprecated.html b/lints/deprecated.html index 4f8fd5a2..b2711cd8 100644 --- a/lints/deprecated.html +++ b/lints/deprecated.html @@ -83,7 +83,7 @@ diff --git a/lints/divide_by_zero.html b/lints/divide_by_zero.html index 46afef36..1782d739 100644 --- a/lints/divide_by_zero.html +++ b/lints/divide_by_zero.html @@ -83,7 +83,7 @@ diff --git a/lints/duplicate_keys.html b/lints/duplicate_keys.html index 42269202..bcfd0f6b 100644 --- a/lints/duplicate_keys.html +++ b/lints/duplicate_keys.html @@ -83,7 +83,7 @@ diff --git a/lints/empty_if.html b/lints/empty_if.html index 284a468a..ab834705 100644 --- a/lints/empty_if.html +++ b/lints/empty_if.html @@ -83,7 +83,7 @@ diff --git a/lints/empty_loop.html b/lints/empty_loop.html index 9ba592b8..4da1df2b 100644 --- a/lints/empty_loop.html +++ b/lints/empty_loop.html @@ -83,7 +83,7 @@ diff --git a/lints/global_usage.html b/lints/global_usage.html index 6d21c47b..2a9d39f8 100644 --- a/lints/global_usage.html +++ b/lints/global_usage.html @@ -83,7 +83,7 @@ diff --git a/lints/high_cyclomatic_complexity.html b/lints/high_cyclomatic_complexity.html index bf7c4f6a..273a1a32 100644 --- a/lints/high_cyclomatic_complexity.html +++ b/lints/high_cyclomatic_complexity.html @@ -83,7 +83,7 @@ diff --git a/lints/if_same_then_else.html b/lints/if_same_then_else.html index 00c2e4f2..512bbc4e 100644 --- a/lints/if_same_then_else.html +++ b/lints/if_same_then_else.html @@ -83,7 +83,7 @@ diff --git a/lints/ifs_same_cond.html b/lints/ifs_same_cond.html index a0e894c1..f777004a 100644 --- a/lints/ifs_same_cond.html +++ b/lints/ifs_same_cond.html @@ -83,7 +83,7 @@ diff --git a/lints/incorrect_standard_library_use.html b/lints/incorrect_standard_library_use.html index 53a7daaa..e788ba1d 100644 --- a/lints/incorrect_standard_library_use.html +++ b/lints/incorrect_standard_library_use.html @@ -83,7 +83,7 @@ diff --git a/lints/index.html b/lints/index.html index 84e9041a..556f6a36 100644 --- a/lints/index.html +++ b/lints/index.html @@ -83,7 +83,7 @@ diff --git a/lints/manual_table_clone.html b/lints/manual_table_clone.html index cd7d4840..cc1d6715 100644 --- a/lints/manual_table_clone.html +++ b/lints/manual_table_clone.html @@ -83,7 +83,7 @@ diff --git a/lints/mismatched_arg_count.html b/lints/mismatched_arg_count.html index 97cb45ca..71324171 100644 --- a/lints/mismatched_arg_count.html +++ b/lints/mismatched_arg_count.html @@ -83,7 +83,7 @@ @@ -219,7 +219,7 @@

Remarks

- @@ -233,7 +233,7 @@

Remarks

- diff --git a/lints/mixed_table.html b/lints/mixed_table.html new file mode 100644 index 00000000..a2775644 --- /dev/null +++ b/lints/mixed_table.html @@ -0,0 +1,231 @@ + + + + + + mixed_table - selene Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
+

mixed_table

+

What it does

+

Checks for mixed tables (tables that act as both an array and dictionary).

+

Why this is bad

+

Mixed tables harms readability and are prone to bugs. There is almost always a better alternative.

+

Example

+
local foo = {
+    "array field",
+    bar = "dictionary field",
+}
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + +
+ + diff --git a/lints/multiple_statements.html b/lints/multiple_statements.html index 05018ec0..671f60f3 100644 --- a/lints/multiple_statements.html +++ b/lints/multiple_statements.html @@ -83,7 +83,7 @@ @@ -191,7 +191,7 @@

Example