standardrb / vscode-standard-ruby

The official VS Code extension for the Standard Ruby linter and code formatter
Other
101 stars 7 forks source link

Allow ignoring system gem files [feature] #20

Open henrahmagix opened 6 months ago

henrahmagix commented 6 months ago

Hi =) this is a great extension btw, thanks!

Is it possible please to tell standardrb to ignore files outside of the workspace, e.g. gem files, so I can open them in VS Code to read them, but not have loads of squiggly lines all over the file because it wasn't authored with standardrb?

I tried adding regex patterns to the ignore list that I've set in .standard.yml but that hasn't worked unfortunately :'(

ignore:
  - some_local_file.rb  # works
  - /Users/me/.rbenv/.* # does not work, sadly
  - /Users/me/.rbenv/*  # also doesn't work :<
image
searls commented 6 months ago

This is a good idea and something I'd also like, but you're right in that the plugin doesn't currently give users a way to do this