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 217871 - Formatting of comments
Summary: Formatting of comments
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 216530 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-05 09:16 UTC by Martin Fousek
Modified: 2012-09-15 02:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2012-09-05 09:16:25 UTC
Product Version: NetBeans IDE Dev (Build 20120905-f70331372981)
Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09
System: Linux version 3.2.0-27-generic running on amd64; UTF-8; en_US (nb)

It looks like there is no formatting of JavaScript comments. Would be possible to at least indent all comments properly? So the formatter would fix souces like this one:

/**
         * Comment #1.
 */
function Shape(ahoj) {

        /**
         * 
         * @returns {String}
         */
    this.getClassName = function() {
        return "Shape";
    }

/**
 * 
 * @returns {undefined}
 */
    function addReference() {
        // Do nothing...
    }
}
Comment 1 Petr Hejl 2012-09-13 10:39:52 UTC
*** Bug 216530 has been marked as a duplicate of this bug. ***
Comment 2 Petr Hejl 2012-09-14 10:27:50 UTC
Fixed in web-main d779732226fe.
Comment 3 Quality Engineering 2012-09-15 02:12:10 UTC
Integrated into 'main-golden', will be available in build *201209150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d779732226fe
User: Petr Hejl <phejl@netbeans.org>
Log: #217871 - Formatting of comments