Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-398760: JavaScript InconsistentNaming warning on Prototype pattern

$
0
0
Reporter Erik Berg (Erik_Berg) Erik Berg (Erik_Berg)
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;
})();

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>