This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 224640

Summary: Improve Groovy formatter
Product: groovy Reporter: Martin Janicek <mjanicek>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: STARTED ---    
Severity: normal CC: mjanicek, pjiricka, wadechandler
Priority: P2    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 156616, 209844    
Bug Blocks:    

Description Martin Janicek 2013-01-09 11:26:37 UTC
Umbrella task: Current groovy formatter contains quite a lot or minority issue. It's based almost exclusively on bracket indentation which is not enough for such a big and complex language as groovy obviously is. We Should made it as reliable as possible.
Comment 1 dusty 2013-03-01 16:26:49 UTC
One example of bad formatting:

if (!n)
n = 0;

the second line is not indented as it should