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
Note that when you fix this, you need to consider license headers too. It maybe be hard to tell whether a comment belongs to the type or not in some cases, as there may not always be a package statement.
True enough. We do know the difference between a regular comment and a doc comment (.e.g /**). Doc comments placed immediately in front of another primary element (class, field, method) should be associated with the primary element, in all cases. Doc comments should not be used in imports, though users could do that. However, the current implementation checks that import sections don't contain any comments; if they do, we refuse to sort them.
Imports should come before leading comments for a class. (Especially doc comments.)
To reproduce: Auto-add the import for openfl.system.System by pressing Alt+Enter at line 19.
IDEA Version: 2018.1
Plugin Version: 1.0.2 for 2018.x
Develop branch: e19d288
The text was updated successfully, but these errors were encountered: