José Valim
cd3af7d5d2
Improve examples and docs
2023-10-30 15:50:36 +01:00
José Valim
ad7c73244d
Clarify best practices and update anti-patterns list
2023-10-30 15:12:28 +01:00
José Valim
f16aed50d6
Describe pattern matching as simpler
2023-10-30 09:18:18 +01:00
José Valim
ee17ecf8c6
Clarify scope of anti-patterns
2023-10-30 08:11:18 +01:00
José Valim
de3d1b472f
Update CHANGELOG
2023-10-29 13:39:39 +01:00
José Valim
14f3a1e372
Deprecate single quotes as charlists
2023-10-29 13:30:03 +01:00
José Valim
fe8b31eef8
Introduce deprecations scheduled for v1.17
2023-10-29 13:07:04 +01:00
José Valim
5949460d63
Start v1.17-dev
2023-10-29 12:33:01 +01:00
José Valim
bb1f1af113
Trim trailing whitespace on heredocs with \r\n
2023-10-29 08:51:48 +01:00
José Valim
a32ce8b252
Provide more rationale on do-end
2023-10-29 08:41:15 +01:00
José Valim
331e565c64
Add a link to Erlang application specification, closes #13042
2023-10-29 08:31:37 +01:00
Artem Solomatin
0dc4d7d9f8
Add usage example for Keyword.from_keys ( #13041 )
2023-10-28 13:53:48 +02:00
José Valim
0e1a5d3cfe
More improvements to anti-pattern
2023-10-27 09:02:47 +02:00
José Valim
dc79914182
Add :limit option to Task.yield_many/2
2023-10-26 23:19:21 +02:00
José Valim
b86b8ba47e
Clarify primitive obsession
2023-10-26 18:33:16 +02:00
Philip Munksgaard
e88377f517
Add missing dialyzer attributes ( #13037 )
...
Taken from this list:
https://www.erlang.org/doc/man/dialyzer.html#type-warn_option
Fixes #13036
2023-10-26 14:45:01 +02:00
José Valim
35619fd892
Clarify "known keys" and struct usage
2023-10-26 09:25:22 +02:00
José Valim
62759e4bac
Reorder clauses
2023-10-26 00:30:42 +02:00
José Valim
08cc3015b5
Add a test to stab as not an operator
2023-10-26 00:29:50 +02:00
Łukasz Samson
3781a4dc3a
Fix crash in surround_context ( #13033 )
2023-10-26 00:19:29 +02:00
José Valim
08f315016f
Add @nifs attributes
2023-10-25 23:53:24 +02:00
Łukasz Samson
cbf4b8c85d
add missing :expr to surround_context typespec ( #13034 )
2023-10-25 23:49:21 +02:00
Gilbert Bishop-White
0a7a41cc2c
Add example of inserting into Map that already has key ( #13013 )
2023-10-24 20:34:51 +02:00
Aziz Köksal
af9c0aaeb6
Change the word "duplicated" to "duplicate" ( #13008 )
2023-10-24 20:11:48 +02:00
teiko
af1e2b89f4
Fix typos in DateTime.add/4 docs ( #13031 )
2023-10-24 16:12:29 +02:00
José Valim
9581ba791a
Annotate function definition and not when guard
2023-10-24 00:50:58 +02:00
José Valim
c35d002dc2
Fix column information in tests
2023-10-24 00:36:24 +02:00
José Valim
09946ee776
Include column information on definition metadata
...
Closes #13029 .
2023-10-23 20:12:20 +02:00
José Valim
e94ff76527
Avoid traversing the file system twice on parallel checker
...
Closes #13024 .
2023-10-23 11:00:31 +02:00
bo0tzz
92d46d0069
Fix typos in anti-patterns documentation ( #13027 )
2023-10-21 22:43:22 +02:00
Artem Solomatin
4b85aa2cec
Add AST link to quote-and-unquote guide ( #13026 )
2023-10-21 05:56:23 +02:00
Dino
d332f262e7
Fix IEx doc printing for headings with newline characters ( #13018 )
...
Update `IEx.introspection.print_doc/5` to trasverse the list of headings
and split each heading into multiple headings, in case the heading has
any newline characters (`\n`). This fixes an issue where using the `h`
macro with some functions ended up with a broken output for the function
signature, as the padding done by `IO.ANSI.Docs.print_headings/2` does
not take into consideration the fact the the headings can contain
newline characters, and thus end up in multiple lines.
2023-10-20 07:01:38 +02:00
samanera
2f9061e8e0
Fix typos in elixir/pages/ ( #13022 )
...
`is an a float` → `is a float`
`valuesare` → `values are`
`specificatio` → `specification`
2023-10-20 06:25:12 +02:00
Josh Bones
f2d2522721
Fix typo in code-smells/non-assertive truthiness documentation ( #13021 )
2023-10-19 20:22:52 +02:00
Adam Millerchip
ddf00f779c
Speed up _ interspersing by using bitstrings ( #13019 )
2023-10-18 15:38:17 +02:00
José Valim
69255ecbc8
Do not leak alias from Elixir root and simplify defmodule implementation
2023-10-17 11:09:21 +02:00
Jean Klingler
ec4dafae0c
Fix overriding with Elixir. prefixed defmodule ( #13011 )
...
Closes #12456 .
2023-10-17 10:53:10 +02:00
José Valim
ddb2434357
Emit warning if True/False/Nil are used also outside of alias
2023-10-17 10:03:28 +02:00
José Valim
da3e093a1d
Improve titles to reduce ambiguity
2023-10-16 14:20:23 +02:00
Jean Klingler
8a0961c9dc
Fix known callbacks suggestions ( #13007 )
2023-10-15 21:11:23 +09:00
Jean Klingler
88ade1d312
Fix warnings on conflicting callbacks ( #13006 )
...
* Improve imprecise message
* Remove false positive warnings on conflicting behaviours
2023-10-15 20:10:46 +09:00
José Valim
87b5ee077d
Update CHANGELOG
2023-10-15 11:40:45 +02:00
José Valim
bd5f02ad8d
Address compilation on Erlang/OTP 24
2023-10-14 11:39:02 +02:00
José Valim
03605cc3ed
Address compilation on Erlang/OTP 24
2023-10-14 11:36:22 +02:00
José Valim
218d2e1a09
Use remote version of erl_eval callbacks
...
This allows us to execute erl eval instructions across nodes
with different Elixir versions.
2023-10-14 11:29:13 +02:00
José Valim
3e47910f39
Address compilation warnings on Erlang/OTP 24
2023-10-13 22:48:16 +02:00
Juha
b09758bcfe
Document need of Tasks to trap exits for Task.Supervisor :shutdown to have effect ( #13004 )
2023-10-13 12:11:50 +02:00
José Valim
c7d2c37565
Update sigil_r example
2023-10-13 11:23:34 +02:00
José Valim
388ce16d86
Link to #security-wg EEF work
2023-10-13 11:14:54 +02:00
José Valim
44d3faad45
No longer track module as context inside after_compile
2023-10-11 15:53:41 +02:00