Skip to content

Commit e04578f

Browse files
yann300Aniket-Engg
authored andcommitted
add more license type
1 parent 3157f87 commit e04578f

File tree

2 files changed

+115
-57
lines changed

2 files changed

+115
-57
lines changed
Lines changed: 114 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,116 @@
11
export default {
2-
"Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.": [{
3-
"id": 1.1,
4-
"nodeType": "SourceUnit",
5-
"title": "Add open-source license",
6-
"message": "// SPDX-License-Identifier: GPL-3.0"
7-
},{
8-
"id": 1.2,
9-
"nodeType": "SourceUnit",
10-
"title": "Add non-open-source license",
11-
"message": "// SPDX-License-Identifier: UNLICENSED"
12-
}],
13-
"Warning: Source file does not specify required compiler version! Consider adding" : [{
14-
"id": 2,
15-
"title": "Add Solidity pragma",
16-
"message": "pragma solidity ^0.*.*;",
17-
"nodeType": "PragmaDirective",
18-
"range": {
19-
startLineNumber: 2,
20-
endLineNumber: 2,
21-
startColumn: 1,
22-
endColumn: 1
2+
'Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.':
3+
[
4+
{
5+
id: 1.1,
6+
nodeType: 'SourceUnit',
7+
title: 'Add open-source license',
8+
message: '// SPDX-License-Identifier: GPL-3.0-only'
9+
},
10+
{
11+
id: 1.2,
12+
nodeType: 'SourceUnit',
13+
title: 'Add non-open-source license',
14+
message: '// SPDX-License-Identifier: UNLICENSED'
15+
},
16+
{
17+
id: 1.3,
18+
nodeType: 'SourceUnit',
19+
title: 'Apache-1.1',
20+
message: '// SPDX-License-Identifier: Apache-1.1'
21+
},
22+
{
23+
id: 1.4,
24+
nodeType: 'SourceUnit',
25+
title: 'Apache-2.0',
26+
message: '// SPDX-License-Identifier: Apache-2.0'
27+
},
28+
{
29+
id: 1.5,
30+
nodeType: 'SourceUnit',
31+
title: 'MIT',
32+
message: '// SPDX-License-Identifier: MIT'
33+
},
34+
{
35+
id: 1.6,
36+
nodeType: 'SourceUnit',
37+
title: 'EPL-1.0 (Eclipse)',
38+
message: '// SPDX-License-Identifier: EPL-1.0'
39+
},
40+
{
41+
id: 1.7,
42+
nodeType: 'SourceUnit',
43+
title: 'EPL-2.0 (Eclipse)',
44+
message: '// SPDX-License-Identifier: EPL-2.0'
45+
},
46+
{
47+
id: 1.8,
48+
nodeType: 'SourceUnit',
49+
title: 'GPL-3.0-only',
50+
message: '// SPDX-License-Identifier: GPL-3.0-only'
51+
},
52+
{
53+
id: 1.9,
54+
nodeType: 'SourceUnit',
55+
title: 'GPL-3.0-or-later',
56+
message: '// SPDX-License-Identifier: GPL-3.0-or-later'
57+
}
58+
],
59+
'Warning: Source file does not specify required compiler version! Consider adding':
60+
[
61+
{
62+
id: 2,
63+
title: 'Add Solidity pragma',
64+
message: 'pragma solidity ^0.*.*;',
65+
nodeType: 'PragmaDirective',
66+
range: {
67+
startLineNumber: 2,
68+
endLineNumber: 2,
69+
startColumn: 1,
70+
endColumn: 1
71+
}
72+
}
73+
],
74+
'SyntaxError: No visibility specified. Did you intend to add "public"': [
75+
{
76+
id: 3.1,
77+
title: "Add visibility 'public'",
78+
message: 'public ',
79+
nodeType: 'FunctionDefinition'
80+
},
81+
{
82+
id: 3.2,
83+
title: "Add visibility 'private'",
84+
message: 'private ',
85+
nodeType: 'FunctionDefinition'
86+
},
87+
{
88+
id: 3.3,
89+
title: "Add visibility 'internal'",
90+
message: 'internal ',
91+
nodeType: 'FunctionDefinition'
92+
},
93+
{
94+
id: 3.4,
95+
title: "Add visibility 'external'",
96+
message: 'external ',
97+
nodeType: 'FunctionDefinition'
2398
}
24-
}],
25-
"SyntaxError: No visibility specified. Did you intend to add \"public\"": [{
26-
"id": 3.1,
27-
"title": "Add visibility 'public'",
28-
"message": "public ",
29-
"nodeType": "FunctionDefinition"
30-
},{
31-
"id": 3.2,
32-
"title": "Add visibility 'private'",
33-
"message": "private ",
34-
"nodeType": "FunctionDefinition"
35-
},{
36-
"id": 3.3,
37-
"title": "Add visibility 'internal'",
38-
"message": "internal ",
39-
"nodeType": "FunctionDefinition"
40-
},{
41-
"id": 3.4,
42-
"title": "Add visibility 'external'",
43-
"message": "external ",
44-
"nodeType": "FunctionDefinition"
45-
}],
46-
"Warning: Function state mutability can be restricted to view": [{
47-
"id": 4,
48-
"title": "Add mutability 'view'",
49-
"message": "view ",
50-
"nodeType": "FunctionDefinition"
51-
}],
52-
"Warning: Function state mutability can be restricted to pure": [{
53-
"id": 5,
54-
"title": "Add mutability 'pure'",
55-
"message": "pure ",
56-
"nodeType": "FunctionDefinition"
57-
}]
58-
}
99+
],
100+
'Warning: Function state mutability can be restricted to view': [
101+
{
102+
id: 4,
103+
title: "Add mutability 'view'",
104+
message: 'view ',
105+
nodeType: 'FunctionDefinition'
106+
}
107+
],
108+
'Warning: Function state mutability can be restricted to pure': [
109+
{
110+
id: 5,
111+
title: "Add mutability 'pure'",
112+
message: 'pure ',
113+
nodeType: 'FunctionDefinition'
114+
}
115+
]
116+
}

libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const TreeViewItem = (props: TreeViewItemProps) => {
4848
) : icon ? (
4949
<div className={`pr-3 pl-1 ${icon} caret caret_tv`}></div>
5050
) : null}
51-
<span className="w-100 pb-1 pl-1">{label}</span>
51+
<span className="w-100 pl-1">{label}</span>
5252
</div>
5353
{isExpanded ? children : null}
5454
</li>

0 commit comments

Comments
 (0)