-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for .soliumignore #76
Comments
What is exactly the use case? As solium ignore will be very specific to solium. |
Your plugin supports solium and solhint, right? For ignoring files Solium uses A use case would be ignoring an autogenerated solidity file generated by truffle-flattener. This file causes lots of lint errors (indentation is 2 spaces in truffle libraries vs 4 spaces in my code, which is default for linters) and I want this file to be ignored when running the linter as a build step. |
Ok, so your use case is only for linting nothing else, correct? That was my question, and I guess you have answered it :) |
My use case is for both linting in the console (manually running a linter on the project) and error display in VS Code (I don't want to see lint errors in the excluded sol file when I open it). |
Another use case would be to ignore the solidity tests of truffle. Currently the imports:
Shows the error "Source not found", from what I understand these files are created on runtime, so the compiler shows the error. Even thought, for this error in particular with truffle, support for Solium Comment Directives to ignore specific pieces of code would be a better approach. An example from the Solium documentation:
|
@crisgarner - have you actually tried using solium comment directives? I've been using them to hide warnings for things like online assembly and that works well. Haven't tried them for unresolved dependencies though. |
@aleybovich Yeah. Tried also copy pasting the example code in contract with no success. |
I want to ignore one of the sol files in my project (autogenerated flat file generated by truffle-flattener) and currently, there is no way to do that as adding
.soliumignore
seems to have no effect. Is there any way you could add support for it?The text was updated successfully, but these errors were encountered: