We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d3582 commit c85a4faCopy full SHA for c85a4fa
README.md
@@ -215,10 +215,28 @@
215
config = IEx.Config.new
216
```
217
218
- The same applies to __local__ one-arity function calls in pipelines.
+ The same should be done for __remote__ zero-arity function calls:
219
220
```elixir
221
- String.strip(input) |> decode()
+ # Bad
222
+ Mix.env
223
+
224
+ # Good
225
+ Mix.env()
226
+ ```
227
228
+ This rule also applies to one-arity function calls (both local and remote) in pipelines:
229
230
+ ```elixir
231
232
+ input
233
+ |> String.strip
234
+ |> decode
235
236
237
238
+ |> String.strip()
239
+ |> decode()
240
241
242
* <a name="anonymous-fun-parens"></a>
0 commit comments