Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 41 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | define( |
||
2 | [ |
||
3 | 'flagbit/JsonGenerator/Observer', |
||
4 | 'oro/translator', |
||
5 | ], |
||
6 | function(JsonGeneratorObserver, __) { |
||
7 | |||
8 | /** |
||
9 | * @class |
||
10 | */ |
||
11 | var JsonGeneratorRendererDefault = function($editable, $container) { |
||
12 | |||
13 | /** |
||
14 | * @public |
||
15 | * @type {JsonGeneratorObserver} |
||
16 | */ |
||
17 | this.observer = new JsonGeneratorObserver(); |
||
18 | |||
19 | /** |
||
20 | * @public |
||
21 | * @param {Object} $data |
||
22 | */ |
||
23 | this.render = function($data) { |
||
|
|||
24 | var $text = document.createElement('span'); |
||
25 | $text.innerText = __('flagbit_attribute_table_no_configuration_text'); |
||
26 | $container.appendChild($text); |
||
27 | }; |
||
28 | |||
29 | /** |
||
30 | * @public |
||
31 | * @returns {Object} |
||
32 | */ |
||
33 | this.read = function() { |
||
34 | return {}; |
||
35 | }; |
||
36 | |||
37 | }; |
||
38 | |||
39 | return JsonGeneratorRendererDefault; |
||
40 | } |
||
41 | ); |
||
42 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.