You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I have setup ethlint with ethlint --init and made sure .soliumignore has been created.
Currently it has
node_modules
src/contracts/Migrations.sol
However, when I run solium -d ., it detects ALL kinds of errors from files in node_modules.
It also does not ignore the default Migrations.sol file I have with 2 spaces as indents.
Example
solium -d src\contracts
src\contracts\Migrations.sol
5:2 error Only use indent of 4 spaces. indentation
6:2 error Only use indent of 4 spaces. indentation
8:2 error Only use indent of 4 spaces. indentation
10:6 error Only use indent of 8 spaces. indentation
11:6 error Only use indent of 8 spaces. indentation
14:0 error Only use indent of 4 spaces. indentation
16:2 error Only use indent of 4 spaces. indentation
18:0 error Only use indent of 4 spaces. indentation
Steps to reproduce
The command you used to lint
solium -d .
The solidity code over which you ran the linter
Files in node_modules
Migrations.sol generated by Truffle
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.8.0;
contract Migrations {
address public owner = msg.sender;
uint public last_completed_migration;
modifier restricted() {
require(
msg.sender == owner,
"This function is restricted to the contract's owner"
);
_;
}
function setCompleted(uint completed) public restricted {
last_completed_migration = completed;
}
}
Description
I have setup ethlint with
ethlint --init
and made sure.soliumignore
has been created.Currently it has
However, when I run
solium -d .
, it detects ALL kinds of errors from files in node_modules.It also does not ignore the default Migrations.sol file I have with 2 spaces as indents.
Example
Steps to reproduce
.soliumrc.json
file.soliumignore
Expected behavior
It should ignore all files and directories listed in
.soliumignore
Operating System
Windows 10
Linter version
Comments
I changed
.soliumignore
to havesrc\contracts\Migrations.sol
just in case (since Windows uses\
instead of/
), but it doesn't work either.Priority
High - I really want to be able to run this often, without specifying files I worked on.
The text was updated successfully, but these errors were encountered: