Skip to content
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

make info about all declarations & definitions accessible to each rule #83

Open
duaraghav8 opened this issue Jun 18, 2017 · 2 comments
Open

Comments

@duaraghav8
Copy link
Owner

duaraghav8 commented Jun 18, 2017

The linter should scan all solidity code files for declarations & definitions of data, functions, contracts & libraries.
This "symbol table" should then be provided to all rules.

This structure will directly serve as the foundation for solving #11 & #79 (no-use-before-define rule) and allow a rule to access information outside the file on which the rule is being run.

As of this writing, Solium is file-aware. The goal is to make it codebase-aware.

@duaraghav8 duaraghav8 changed the title make a table of all declarations & definitions accessible to each rule info about all declarations & definitions accessible to each rule Jun 18, 2017
@cgewecke cgewecke mentioned this issue Jul 24, 2017
8 tasks
@duaraghav8 duaraghav8 changed the title info about all declarations & definitions accessible to each rule make info about all declarations & definitions accessible to each rule Sep 2, 2017
@duaraghav8
Copy link
Owner Author

WHETHER WE SHOULD IMPLEMENT THIS OR NOT IS STILL UNDECIDED

@duaraghav8
Copy link
Owner Author

duaraghav8 commented Nov 16, 2017

we could take a solc-like approach:

solium.lint({
  "filename1": "code",
  "filename2": "code"
});

@duaraghav8 duaraghav8 mentioned this issue Apr 7, 2018
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant