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.
Summary: | angularjs project. jshint complains about the indentation provided by the editor, (for instance) Expected '}' to have an indentation at 3 instead of 9. | ||
---|---|---|---|
Product: | javascript | Reporter: | douglasv <douglasv> |
Component: | Formatting & Indentation | Assignee: | Petr Pisl <ppisl> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | vriha |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
douglasv
2014-06-05 14:25:58 UTC
Created attachment 147585 [details]
IDE log
Could you please provide some sample code? What "}" do you mean? Thank you According to reporter general problem with JS formatting. I tried JSlint with some code formatted by NetBeans and it shows errors. For instance: var angular = {}; angular.module('myApp.controllers', []) .controller('MyCtrl1', ['$scope', function($scope) { 'use strict'; return 'neco'; }]) .controller('MyCtrl2', ['$scope', function($scope) { 'use strict'; return 'neco'; }]); NetBeans formats to var angular = {}; angular.module('myApp.controllers', []) .controller('MyCtrl1', ['$scope', function($scope) { 'use strict'; return 'neco'; }]) .controller('MyCtrl2', ['$scope', function($scope) { 'use strict'; return 'neco'; }]); What should be the suggested result? the question about the } seems to be in need of an English speaker the statement stands |