GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

src-js/export.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 85
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
dl 0
loc 85
rs 10
cc 0
nc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 5

1 Function

Rating   Name   Duplication   Size   Complexity  
A goog.exportSymbol(ꞌgoog.requireꞌ) 0 1 1
1
/*
2
 * Copyright 2011 Johannes M. Schmitt <[email protected]>
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
17
/**
18
 * @fileoverview Exports symbols which should be usuable from uncompiled code.
19
 *
20
 * If you intend to compile the source libraries into your javascript on your
21
 * own, then you do not need this default export file.
22
 */
23
24
goog.require('twig');
0 ignored issues
show
Bug introduced by
The variable goog seems to be never declared. If this is a global, consider adding a /** global: goog */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
25
goog.require('twig.Environment');
26
goog.require('twig.Markup');
27
goog.require('twig.filter');
28
goog.require('twig.functions');
29
30
window['Twig'] = new twig.Environment();
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
31
32
goog.exportSymbol('goog.provide', goog.provide);
33
goog.exportSymbol('goog.require', function(namespace) { });
0 ignored issues
show
Unused Code introduced by
The parameter namespace is not used and could be removed.

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.

Loading history...
34
goog.exportSymbol('twig.attr', twig.attr);
0 ignored issues
show
Bug introduced by
The variable twig seems to be never declared. If this is a global, consider adding a /** global: twig */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Bug introduced by
The variable goog seems to be never declared. If this is a global, consider adding a /** global: goog */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
35
goog.exportSymbol('twig.bind', twig.bind);
36
goog.exportSymbol('twig.inherits', twig.inherits);
37
goog.exportSymbol('twig.extend', twig.extend);
38
goog.exportSymbol('twig.spaceless', twig.spaceless);
39
goog.exportSymbol('twig.range', twig.range);
40
goog.exportSymbol('twig.contains', twig.contains);
41
goog.exportSymbol('twig.countable', twig.countable);
42
goog.exportSymbol('twig.count', twig.count);
43
goog.exportSymbol('twig.forEach', twig.forEach);
44
goog.exportSymbol('twig.empty', twig.empty);
45
goog.exportSymbol('twig.createObj', twig.createObj);
46
goog.exportSymbol('twig.pregQuote', twig.pregQuote);
47
48
goog.exportSymbol('twig.filter.capitalize', twig.filter.capitalize);
49
goog.exportSymbol('twig.filter.escape', twig.filter.escape);
50
goog.exportSymbol('twig.filter.first', twig.filter.first);
51
goog.exportSymbol('twig.filter.length', twig.filter.length);
52
goog.exportSymbol('twig.filter.def', twig.filter.def);
53
goog.exportSymbol('twig.filter.replace', twig.filter.replace);
54
goog.exportSymbol('twig.filter.join', twig.filter.join);
55
goog.exportSymbol('twig.filter.keys', twig.filter.keys);
56
goog.exportSymbol('twig.filter.upper', twig.filter.upper);
57
goog.exportSymbol('twig.filter.lower', twig.filter.lower);
58
goog.exportSymbol('twig.filter.nl2br', twig.filter.nl2br);
59
goog.exportSymbol('twig.filter.abs', twig.filter.abs);
60
goog.exportSymbol('twig.filter.title', twig.filter.title);
61
goog.exportSymbol('twig.filter.trim', twig.filter.trim);
62
goog.exportSymbol('twig.filter.json_encode', twig.filter.json_encode);
63
goog.exportSymbol('twig.filter.last', twig.filter.last);
64
goog.exportSymbol('twig.filter.reverse', twig.filter.reverse);
65
goog.exportSymbol('twig.filter.batch', twig.filter.batch);
66
goog.exportSymbol('twig.filter.merge', twig.filter.merge);
67
68
goog.exportSymbol('twig.functions.max', twig.functions.max);
69
goog.exportSymbol('twig.functions.min', twig.functions.min);
70
goog.exportSymbol('twig.functions.random', twig.functions.random);
71
72
goog.exportSymbol('twig.StringBuffer', twig.StringBuffer);
73
goog.exportProperty(twig.StringBuffer.prototype, 'append', twig.StringBuffer.prototype.append);
74
goog.exportProperty(twig.StringBuffer.prototype, 'toString', twig.StringBuffer.prototype.toString);
75
76
goog.exportSymbol('twig.Environment', twig.Environment);
77
goog.exportProperty(twig.Environment.prototype, 'createTemplate', twig.Environment.prototype.createTemplate);
78
goog.exportProperty(twig.Environment.prototype, 'filter', twig.Environment.prototype.filter);
79
goog.exportProperty(twig.Environment.prototype, 'invoke', twig.Environment.prototype.invoke);
80
goog.exportProperty(twig.Environment.prototype, 'test', twig.Environment.prototype.test);
81
goog.exportProperty(twig.Environment.prototype, 'escape', twig.Environment.prototype.escape);
82
goog.exportProperty(twig.Environment.prototype, 'macro', twig.Environment.prototype.macro);
83
goog.exportProperty(twig.Environment.prototype, 'setFilter', twig.Environment.prototype.setFilter);
84
goog.exportProperty(twig.Environment.prototype, 'setFunction', twig.Environment.prototype.setFunction);
85
goog.exportProperty(twig.Environment.prototype, 'setTest', twig.Environment.prototype.setTest);
86
goog.exportProperty(twig.Environment.prototype, 'render', twig.Environment.prototype.render);
87
goog.exportProperty(twig.Environment.prototype, 'getGlobals', twig.Environment.prototype.getGlobals);
88
goog.exportProperty(twig.Environment.prototype, 'setGlobals', twig.Environment.prototype.setGlobals);
89
goog.exportProperty(twig.Environment.prototype, 'setGlobal', twig.Environment.prototype.setGlobal);
90
goog.exportProperty(twig.Environment.prototype, 'initRuntime', twig.Environment.prototype.initRuntime);
91
goog.exportProperty(twig.Environment.prototype, 'hasExtension', twig.Environment.prototype.hasExtension);
92
goog.exportProperty(twig.Environment.prototype, 'getExtension', twig.Environment.prototype.getExtension);
93
goog.exportProperty(twig.Environment.prototype, 'addExtension', twig.Environment.prototype.addExtension);
94
goog.exportProperty(twig.Environment.prototype, 'removeExtension', twig.Environment.prototype.removeExtension);
95
goog.exportProperty(twig.Environment.prototype, 'setExtensions', twig.Environment.prototype.setExtensions);
96
goog.exportProperty(twig.Environment.prototype, 'getExtensions', twig.Environment.prototype.getExtensions);
97
98
goog.exportSymbol('twig.Template', twig.Template);
99
goog.exportProperty(twig.Template.prototype, 'setTraits', twig.Template.prototype.setTraits);
100
goog.exportProperty(twig.Template.prototype, 'setBlocks', twig.Template.prototype.setBlocks);
101
goog.exportProperty(twig.Template.prototype, 'getBlocks', twig.Template.prototype.getBlocks);
102
// unnecessary since getParent is in some extern definition
103
//goog.exportProperty(twig.Template.prototype, 'getParent', twig.Template.prototype.getParent);
104
goog.exportProperty(twig.Template.prototype, 'renderParentBlock', twig.Template.prototype.renderParentBlock);
105
goog.exportProperty(twig.Template.prototype, 'renderBlock', twig.Template.prototype.renderBlock);
106
goog.exportProperty(twig.Template.prototype, 'callMacro', twig.Template.prototype.callMacro);
107
108
goog.exportSymbol('twig.Markup', twig.Markup);
109