-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #513 from protofire/i505-e2e-tests-autofix-and-more
e2e tests added
- Loading branch information
Showing
28 changed files
with
825 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"explicit-types": ["error", "explicit"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint256 public hola; | ||
uint256 public hola2; | ||
int256 public constant hola3 = 2; | ||
ufixed128x18 hola4; | ||
fixed128x18 internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"explicit-types": ["error", "explicit"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint256 public hola; | ||
uint256 public hola2; | ||
int256 public constant hola3 = 2; | ||
ufixed128x18 hola4; | ||
fixed128x18 internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"no-console": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pragma solidity 0.8.0; | ||
|
||
import 'hardhat/console.sol'; | ||
import 'forge-std/console.sol'; | ||
import 'forge-std/console2.sol'; | ||
import 'forge-std/xxxxx.sol'; | ||
|
||
contract Foo1 { | ||
Console[] public consoleTest; | ||
Console[] public console; | ||
|
||
struct Console { | ||
uint256 one; | ||
uint256 two; | ||
} | ||
|
||
function a() public { | ||
console.log('test'); | ||
// comment | ||
console.logString('test logString'); | ||
uint256 declaration; | ||
console.logBytes12('test logBytes12'); | ||
} | ||
|
||
function b() public { | ||
console2.log('test console 2'); | ||
// comment | ||
console.logString('test logString'); | ||
uint256 declaration; | ||
console.logBytes12('test'); | ||
} | ||
|
||
function c() external { | ||
consoleTest.push(0, 0); | ||
console.push = (1, 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pragma solidity 0.8.0; | ||
|
||
|
||
|
||
|
||
import 'forge-std/xxxxx.sol'; | ||
|
||
contract Foo1 { | ||
Console[] public consoleTest; | ||
Console[] public console; | ||
|
||
struct Console { | ||
uint256 one; | ||
uint256 two; | ||
} | ||
|
||
function a() public { | ||
|
||
// comment | ||
|
||
uint256 declaration; | ||
|
||
} | ||
|
||
function b() public { | ||
|
||
// comment | ||
|
||
uint256 declaration; | ||
|
||
} | ||
|
||
function c() external { | ||
consoleTest.push(0, 0); | ||
console.push = (1, 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
pragma solidity 0.8.0; | ||
|
||
import 'hardhat/console.sol'; | ||
import 'forge-std/console.sol'; | ||
import 'forge-std/console2.sol'; | ||
import 'forge-std/xxxxx.sol'; | ||
|
||
contract Foo1 { | ||
Console[] public consoleTest; | ||
Console[] public console; | ||
|
||
struct Console { | ||
uint256 one; | ||
uint256 two; | ||
} | ||
|
||
function a() public { | ||
console.log('test'); | ||
// comment | ||
console.logString('test logString'); | ||
uint256 declaration; | ||
console.logBytes12('test logBytes12'); | ||
} | ||
|
||
function b() public { | ||
console2.log('test console 2'); | ||
// comment | ||
console.logString('test logString'); | ||
uint256 declaration; | ||
console.logBytes12('test'); | ||
} | ||
|
||
function c() external { | ||
consoleTest.push(0, 0); | ||
console.push = (1, 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"private-vars-leading-underscore": ["error",{"strict":false}] | ||
} | ||
} |
Oops, something went wrong.