From 488e1266d96153fec3143cf74172c600eff30970 Mon Sep 17 00:00:00 2001 From: ImNotAVirus <17680522+ImNotAVirus@users.noreply.github.com> Date: Sun, 26 Dec 2021 14:47:50 +0100 Subject: [PATCH] :fire: Remove TODOLIST from repo --- .gitignore | 2 ++ TODOLIST.md | 37 ------------------------------------- 2 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 TODOLIST.md diff --git a/.gitignore b/.gitignore index 1a76322..cfa4e6e 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ erl_crash.dump # Ignore package tarball (built via "mix hex.build"). simple_enum-*.tar +# Ignore some local files +/TODOLIST.md diff --git a/TODOLIST.md b/TODOLIST.md deleted file mode 100644 index 454db8f..0000000 --- a/TODOLIST.md +++ /dev/null @@ -1,37 +0,0 @@ -# TODOLIST - -## Tests - -- [x] Raise if empty enum -- [x] Raise if duplicate keys -- [x] Raise if duplicate values -- [x] Raise if invalid fields -- [x] Raise if no default value for string-based enum -- [x] Raise if invalid value -- [x] Enums can be used in guards - -## Features - -- [x] @type enum_keys -- [x] @type enum_values -- [x] @type enum -- [x] Enums should support module attributes as fast access w/Macro.expand/2 - -## Prepare release - -- [x] Add code coverage - -## Documentation - -- [x] Basic usage (Struct.cast) -- [x] Can be used in guard -- [x] Slow vs Fast access -- [x] Ecto enum Example -- [x] formatter.exs - -## Proposals - -- [ ] Custom Exception (EnumValueError) instead of ArgumentError for better pattern matching -- [ ] defenump -- [ ] @allow_duplicate_values true or @unique false to allow duplicates values -- [ ] is_enum/1, is_enum_key/1 & is_enum_value/1: eg. is_color(:red), is_color_key(:red) & is_color_value(:red)