solidity/test/scripts/fixtures/unknown_pragma_sol_json_output.json

45 lines
2.2 KiB
JSON
Raw Normal View History

{
"errors": [
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "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.\n--> syntaxTests/pragma/unknown_pragma.sol\n\n",
"message": "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.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "syntaxTests/pragma/unknown_pragma.sol",
"start": -1
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "4936",
"formattedMessage": "SyntaxError: Unknown pragma \"thisdoesntexist\"\n --> syntaxTests/pragma/unknown_pragma.sol:1:1:\n |\n1 | pragma thisdoesntexist;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n\n",
"message": "Unknown pragma \"thisdoesntexist\"",
"severity": "error",
"sourceLocation": {
"end": 23,
"file": "syntaxTests/pragma/unknown_pragma.sol",
"start": 0
},
"type": "SyntaxError"
},
{
"component": "general",
"errorCode": "3420",
"formattedMessage": "Warning: Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.0;\"\n--> syntaxTests/pragma/unknown_pragma.sol\n\n",
"message": "Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.0;\"",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "syntaxTests/pragma/unknown_pragma.sol",
"start": -1
},
"type": "Warning"
}
],
"sources": {}
}