Skip to content

Commit

Permalink
Formatting does not enforce prefix ordering for static imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakachan committed Dec 17, 2024
1 parent 099f620 commit 9a2c6ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions espresso/mx.espresso/import_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ def verify_order(path, prefix_order):

for prefix in prefix_order:
if prefix:
# If prefix is "abc", add "import static abc"
static_prefixes.append(STATIC_PREFIX + prefix + '.')
# If prefix is "abc", add "import abc"
regular_prefixes.append(REGULAR_PREFIX + prefix + '.')
# Eclipse formatting does not enforce prefix order for static imports.
else:
# Empty prefix means everything will match.
# Empty prefix is added manually below.
Expand Down

0 comments on commit 9a2c6ef

Please sign in to comment.