You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/module_directives.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,20 @@ You can specify additional modules to exclude from lifting via the `:alias_lifti
183
183
]
184
184
```
185
185
186
+
### Per-File Opt-Out
187
+
188
+
Drop a `# styler:disable_alias_lifting` comment anywhere in a file to skip alias lifting for that file. Existing aliases are still applied — only the auto-creation of new aliases is suppressed.
189
+
190
+
```elixir
191
+
# styler:disable_alias_lifting
192
+
defmoduleMyApp.Some.Ignoredo
193
+
@moduledoc false
194
+
195
+
Foo.Bar.Baz.bop()
196
+
Foo.Bar.Baz.bop()
197
+
end
198
+
```
199
+
186
200
## Alias Application
187
201
188
202
Styler applies aliases in those cases where a developer wrote out a full module name without realizing that the module is already aliased.
0 commit comments