Skip to content

Instantly share code, notes, and snippets.

@bibstha
Created May 31, 2021 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bibstha/9f8cea705fd9785730e53aefca9b741f to your computer and use it in GitHub Desktop.
Save bibstha/9f8cea705fd9785730e53aefca9b741f to your computer and use it in GitHub Desktop.
negative lookahead with silversearcher ag on file pattern
# find sorbet strictly typed files that are not tests and also instantiate instance variables
ag '@.+=.+' $(ag -G '.*/?!.*(test)/somepath/.*.rb' 'typed: strict' -l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment