parent
5e723a4c0d
commit
dbf2679d71
@ -1,58 +1,116 @@ |
|||||||
export default { |
export default { |
||||||
"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.": [{ |
'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.': |
||||||
"id": 1.1, |
[ |
||||||
"nodeType": "SourceUnit", |
{ |
||||||
"title": "Add open-source license", |
id: 1.1, |
||||||
"message": "// SPDX-License-Identifier: GPL-3.0" |
nodeType: 'SourceUnit', |
||||||
},{ |
title: 'Add open-source license', |
||||||
"id": 1.2, |
message: '// SPDX-License-Identifier: GPL-3.0-only' |
||||||
"nodeType": "SourceUnit", |
}, |
||||||
"title": "Add non-open-source license", |
{ |
||||||
"message": "// SPDX-License-Identifier: UNLICENSED" |
id: 1.2, |
||||||
}], |
nodeType: 'SourceUnit', |
||||||
"Warning: Source file does not specify required compiler version! Consider adding" : [{ |
title: 'Add non-open-source license', |
||||||
"id": 2, |
message: '// SPDX-License-Identifier: UNLICENSED' |
||||||
"title": "Add Solidity pragma", |
}, |
||||||
"message": "pragma solidity ^0.*.*;", |
{ |
||||||
"nodeType": "PragmaDirective", |
id: 1.3, |
||||||
"range": { |
nodeType: 'SourceUnit', |
||||||
|
title: 'Apache-1.1', |
||||||
|
message: '// SPDX-License-Identifier: Apache-1.1' |
||||||
|
}, |
||||||
|
{ |
||||||
|
id: 1.4, |
||||||
|
nodeType: 'SourceUnit', |
||||||
|
title: 'Apache-2.0', |
||||||
|
message: '// SPDX-License-Identifier: Apache-2.0' |
||||||
|
}, |
||||||
|
{ |
||||||
|
id: 1.5, |
||||||
|
nodeType: 'SourceUnit', |
||||||
|
title: 'MIT', |
||||||
|
message: '// SPDX-License-Identifier: MIT' |
||||||
|
}, |
||||||
|
{ |
||||||
|
id: 1.6, |
||||||
|
nodeType: 'SourceUnit', |
||||||
|
title: 'EPL-1.0 (Eclipse)', |
||||||
|
message: '// SPDX-License-Identifier: EPL-1.0' |
||||||
|
}, |
||||||
|
{ |
||||||
|
id: 1.7, |
||||||
|
nodeType: 'SourceUnit', |
||||||
|
title: 'EPL-2.0 (Eclipse)', |
||||||
|
message: '// SPDX-License-Identifier: EPL-2.0' |
||||||
|
}, |
||||||
|
{ |
||||||
|
id: 1.8, |
||||||
|
nodeType: 'SourceUnit', |
||||||
|
title: 'GPL-3.0-only', |
||||||
|
message: '// SPDX-License-Identifier: GPL-3.0-only' |
||||||
|
}, |
||||||
|
{ |
||||||
|
id: 1.9, |
||||||
|
nodeType: 'SourceUnit', |
||||||
|
title: 'GPL-3.0-or-later', |
||||||
|
message: '// SPDX-License-Identifier: GPL-3.0-or-later' |
||||||
|
} |
||||||
|
], |
||||||
|
'Warning: Source file does not specify required compiler version! Consider adding': |
||||||
|
[ |
||||||
|
{ |
||||||
|
id: 2, |
||||||
|
title: 'Add Solidity pragma', |
||||||
|
message: 'pragma solidity ^0.*.*;', |
||||||
|
nodeType: 'PragmaDirective', |
||||||
|
range: { |
||||||
startLineNumber: 2, |
startLineNumber: 2, |
||||||
endLineNumber: 2, |
endLineNumber: 2, |
||||||
startColumn: 1, |
startColumn: 1, |
||||||
endColumn: 1 |
endColumn: 1 |
||||||
} |
} |
||||||
}], |
} |
||||||
"SyntaxError: No visibility specified. Did you intend to add \"public\"": [{ |
], |
||||||
"id": 3.1, |
'SyntaxError: No visibility specified. Did you intend to add "public"': [ |
||||||
"title": "Add visibility 'public'", |
{ |
||||||
"message": "public ", |
id: 3.1, |
||||||
"nodeType": "FunctionDefinition" |
title: "Add visibility 'public'", |
||||||
},{ |
message: 'public ', |
||||||
"id": 3.2, |
nodeType: 'FunctionDefinition' |
||||||
"title": "Add visibility 'private'", |
}, |
||||||
"message": "private ", |
{ |
||||||
"nodeType": "FunctionDefinition" |
id: 3.2, |
||||||
},{ |
title: "Add visibility 'private'", |
||||||
"id": 3.3, |
message: 'private ', |
||||||
"title": "Add visibility 'internal'", |
nodeType: 'FunctionDefinition' |
||||||
"message": "internal ", |
}, |
||||||
"nodeType": "FunctionDefinition" |
{ |
||||||
},{ |
id: 3.3, |
||||||
"id": 3.4, |
title: "Add visibility 'internal'", |
||||||
"title": "Add visibility 'external'", |
message: 'internal ', |
||||||
"message": "external ", |
nodeType: 'FunctionDefinition' |
||||||
"nodeType": "FunctionDefinition" |
}, |
||||||
}], |
{ |
||||||
"Warning: Function state mutability can be restricted to view": [{ |
id: 3.4, |
||||||
"id": 4, |
title: "Add visibility 'external'", |
||||||
"title": "Add mutability 'view'", |
message: 'external ', |
||||||
"message": "view ", |
nodeType: 'FunctionDefinition' |
||||||
"nodeType": "FunctionDefinition" |
} |
||||||
}], |
], |
||||||
"Warning: Function state mutability can be restricted to pure": [{ |
'Warning: Function state mutability can be restricted to view': [ |
||||||
"id": 5, |
{ |
||||||
"title": "Add mutability 'pure'", |
id: 4, |
||||||
"message": "pure ", |
title: "Add mutability 'view'", |
||||||
"nodeType": "FunctionDefinition" |
message: 'view ', |
||||||
}] |
nodeType: 'FunctionDefinition' |
||||||
|
} |
||||||
|
], |
||||||
|
'Warning: Function state mutability can be restricted to pure': [ |
||||||
|
{ |
||||||
|
id: 5, |
||||||
|
title: "Add mutability 'pure'", |
||||||
|
message: 'pure ', |
||||||
|
nodeType: 'FunctionDefinition' |
||||||
|
} |
||||||
|
] |
||||||
} |
} |
Loading…
Reference in new issue