You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "czukowski (via GitHub)" <gi...@apache.org> on 2023/07/20 14:35:26 UTC
[GitHub] [netbeans] czukowski opened a new issue, #6238: Put in PSR-12 order formatting option should not add blank lines
czukowski opened a new issue, #6238:
URL: https://github.com/apache/netbeans/issues/6238
### Apache NetBeans version
Apache NetBeans latest daily build
### What happened
PHP formatting options 'Put in PSR-12 order' and 'Between Use Types' settings seem to conflict with each other in **NB19-r1**.
'Put in PSR-12 order' should only maintain the correct order and leave it up to 'Between Use Types' to fix blank lines.
If PSR compliance is desired, users may enable 'Put in PSR-12 order' and set 'Between Use Types' to 1.
### How to reproduce
Enable 'Put in PSR-12 order' and set 'Between Use Types' to zero. Then use "Fix imports", it will add empty lines between use types. Then use Source > Format, it will remove them right away.
```php
<?php
use Generator;
use function sort;
use const SORT_NUMERIC;
```
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 10
### JDK
18.0.2.1; OpenJDK 64-Bit Server VM 18.0.2.1+1-1
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
Also, 'Put in PSR-12 order', being a new option, _probably_ should not be enabled automatically in project custom formatting settings, if they are enabled, because it then leads to unexpected behavior.
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] neilcsmith-net closed issue #6238: Put in PSR-12 order formatting option should not add blank lines
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed issue #6238: Put in PSR-12 order formatting option should not add blank lines
URL: https://github.com/apache/netbeans/issues/6238
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists