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

generic grep: support "modifier.name" matching - fixes #1 #2

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

tintinweb
Copy link
Owner

@tintinweb tintinweb commented Jan 27, 2022

# solgrep test.sol  --find="modifier.name"


🧠 SolGrep v0.0.6 ready!

  Enabled Modules:
    ✔️ GenericGrep          modifier.name

[████████████████████████████████████████] 100% | 🕙 ETA: 0s | 1/1 | 🌲 0 | 🔥 0 | 🗂️  test.sol

   ────────────────────────────
{
  'test.sol': [
    {
      rule: 'GenericGrep',
      tag: 'match-modifier: ReEntrancyGuard.noReentrant',
      info: 'noReentrant',
      loc: [Array]
    }
  ]
}

⚠️ when using multi-options (--find, --rule) make sure to use this format:

⇒  solgrep <folder|...> [options]

or

⇒  solgrep [options] -- <folder|...> 

or else additional options might be interpreted as additional --find options!

@tintinweb tintinweb merged commit d69b8a2 into master Jan 27, 2022
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

Successfully merging this pull request may close these issues.

1 participant