Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slither/tests/detectors/naming-convention/0.6.11/naming_convention.sol

78 lines
1.0 KiB

//pragma solidity ^0.4.24;
contract naming {
enum Numbers {ONE, TWO}
enum numbers {ONE, TWO}
uint constant MY_CONSTANT = 1;
uint constant MY_other_CONSTANT = 2;
uint Var_One = 1;
uint varTwo = 2;
struct test {
uint a;
}
struct Test {
uint a;
}
event Event_(uint);
event event_(uint);
function getOne() view public returns(uint)
{
return 1;
}
function GetOne() view public returns (uint)
{
return 1;
}
function setInt(uint number1, uint Number2) public
{
}
modifier CantDo() {
_;
}
modifier canDo() {
_;
}
}
contract Test {
}
contract T {
uint private _myPrivateVar;
uint _myPublicVar;
function test(uint _unused, uint _used) public returns(uint){
return _used;}
uint k = 1;
uint constant M = 1;
uint l = 1;
uint O = 1;
uint I = 1;
}
contract ParameterNameEmptyString {
6 years ago
function foo (uint) public {
}
}