Skip to content

Commit 6c390f6

Browse files
committed
fix: solium errors - whitespace related
1 parent 7953699 commit 6c390f6

File tree

8 files changed

+13
-9
lines changed

8 files changed

+13
-9
lines changed

.soliumrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"quotes": ["error", "double"],
66
"indentation": ["error", 2],
77
"arg-overflow": ["warning", 3],
8-
"security/enforce-explicit-visibility": ["error"]
8+
"security/enforce-explicit-visibility": ["error"],
9+
"security/no-block-members": ["warning"],
10+
"security/no-inline-assembly": ["warning"]
911
}
1012
}

contracts/MerkleProof.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ library MerkleProof {
1616
*/
1717
function verifyProof(bytes _proof, bytes32 _root, bytes32 _leaf) public pure returns (bool) {
1818
// Check if proof length is a multiple of 32
19-
if (_proof.length % 32 != 0) return false;
19+
if (_proof.length % 32 != 0) {
20+
return false;
21+
}
2022

2123
bytes32 proofElement;
2224
bytes32 computedHash = _leaf;

contracts/lifecycle/TokenDestructible.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ contract TokenDestructible is Ownable {
2424
function destroy(address[] tokens) onlyOwner public {
2525

2626
// Transfer tokens to owner
27-
for(uint256 i = 0; i < tokens.length; i++) {
27+
for (uint256 i = 0; i < tokens.length; i++) {
2828
ERC20Basic token = ERC20Basic(tokens[i]);
2929
uint256 balance = token.balanceOf(this);
3030
token.transfer(owner, balance);

contracts/mocks/ERC23TokenMock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ contract ERC23TokenMock is BasicToken {
2525
assembly {
2626
is_contract := not(iszero(extcodesize(_to)))
2727
}
28-
if(is_contract) {
28+
if (is_contract) {
2929
ERC23ContractInterface receiver = ERC23ContractInterface(_to);
3030
receiver.tokenFallback(msg.sender, _value, _data);
3131
}

contracts/mocks/ForceEther.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pragma solidity ^0.4.18;
66
// if the contract is not payable.
77
// @notice To use, construct the contract with the target as argument.
88
// @author Remco Bloemen <[email protected]>
9-
contract ForceEther {
9+
contract ForceEther {
1010

1111
function ForceEther() public payable { }
1212

contracts/mocks/InsecureTargetBounty.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {Bounty, Target} from "../../contracts/Bounty.sol";
44

55

66
contract InsecureTargetMock is Target {
7-
function checkInvariant() public returns(bool){
7+
function checkInvariant() public returns(bool) {
88
return false;
99
}
1010
}

contracts/mocks/ReentrancyMock.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ contract ReentrancyMock is ReentrancyGuard {
1717
}
1818

1919
function countLocalRecursive(uint256 n) public nonReentrant {
20-
if(n > 0) {
20+
if (n > 0) {
2121
count();
2222
countLocalRecursive(n - 1);
2323
}
2424
}
2525

2626
function countThisRecursive(uint256 n) public nonReentrant {
2727
bytes4 func = bytes4(keccak256("countThisRecursive(uint256)"));
28-
if(n > 0) {
28+
if (n > 0) {
2929
count();
3030
bool result = this.call(func, n - 1);
3131
require(result == true);

contracts/ownership/Contactable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import "./Ownable.sol";
88
* @dev Basic version of a contactable contract, allowing the owner to provide a string with their
99
* contact information.
1010
*/
11-
contract Contactable is Ownable{
11+
contract Contactable is Ownable {
1212

1313
string public contactInformation;
1414

0 commit comments

Comments
 (0)