-
|
(Question originated from Shopify/ruby-lsp#3011) I'm using VSCode with ruby-lsp extension, which leverages RoboCop as formatter. I also am running I'm currently facing a situation, where ruby-lsp invokes # #find_by_password_reset_token is defined by Rails' has_secure_password
user = User.find_by_password_reset_token(params[:token])
After disabling the line: user = User.find_by_password_reset_token(params[:token]) # rubocop:disable Rails/DynamicFindBy
Is there a way to pin the AllCops:
SafeCopsOnly: trueNeither the docs (Ctrl+F, "safe"), nor the My current config has set the following global options: AllCops:
NewCops: enable
StyleGuideCopsOnly: false
TargetRubyVersion: "3.3" |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
You can specify default command line arguments in a file called |
Beta Was this translation helpful? Give feedback.
-
|
You could try specifying Default command-line options are loaded from
For more details, please refer to the following documentation: |
Beta Was this translation helpful? Give feedback.
-
|
@koic I think it would be helpful if the use of |
Beta Was this translation helpful? Give feedback.
You can specify default command line arguments in a file called
.rubocop,ruby-lspshould make use of that. Does look like there's nothing for the normal config file.