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
When having this snippet, there is an issue that between $ and _pragma..., there should be a newline.
_package user
def_slotted_exemplar(:a, {})
$
_pragma(classify_level=restricted, topic={magik_lint})
_method a.b
## Do something that returns :b
##
>> :b
_endmethod
$
When running the magik-lint with --apply-fixes, it becomes:
_package user
def_slotted_exemplar(:a, {})
$_pragma(classify_level=restricted, topic={magik_lint})
_method a.b
## Do something that returns :b
##
>> :b
_endmethod
$
If I remove the _pragma and have _method on the next line, it won't format anyway.
Even if I run it with --apply-fixes on the next snippet, it will result in the weird code:
_package user
def_slotted_exemplar(:a, {})
$
_pragma(classify_level=restricted, topic={magik_lint})
_method a.b
## Do something that returns :b
##
>> :b
_endmethod
$
The text was updated successfully, but these errors were encountered:
sebastiaanspeck
changed the title
Using --apply-fixes with _pragma results in broken code
Using --apply-fixes with _pragma results in weird code
Nov 16, 2024
When having this snippet, there is an issue that between
$
and_pragma...
, there should be a newline.When running the
magik-lint
with--apply-fixes
, it becomes:If I remove the
_pragma
and have_method
on the next line, it won't format anyway.Even if I run it with
--apply-fixes
on the next snippet, it will result in the weird code:The text was updated successfully, but these errors were encountered: