Reporter |
|
---|---|
Created | Dec 6, 2013 8:33:21 AM |
Updated | Apr 9, 2018 3:26:40 PM |
Subsystem | JavaScript |
Assignee | Nikita Popov (poksh) |
Priority | Normal |
State | Fixed In Branch |
Type | Bug |
Fix version | 2018.1 |
Affected versions | No Affected versions |
Fixed In Version ReSharper | 2018.1 EAP 7 |
VsVersion | All Versions |
Resharper flags the ctor as being an InconsistentNaming on the Prototype pattern
var Foo = (function() {
'use strict';
// ctor
// ReSharper disable InconsistentNaming
function Foo(param) { // <— Resharper InconsistentNaming
// ReSharper restore InconsistentNaming
}
Foo.prototype.something1 = function() {};
Foo.prototype.something2 = function() {};
return Foo;
})();
var Foo = (function() {
'use strict';
// ctor
// ReSharper disable InconsistentNaming
function Foo(param) { // <— Resharper InconsistentNaming
// ReSharper restore InconsistentNaming
}
Foo.prototype.something1 = function() {};
Foo.prototype.something2 = function() {};
return Foo;
})();