Complete the code to run Rubocop on a Ruby file named example.rb.
rubocop [1]rubocop example.rb.Complete the command to automatically fix offenses in script.rb using Rubocop.
rubocop [1] script.rb--auto-correct option tells Rubocop to fix offenses automatically.Fix the error in the Rubocop command to check all Ruby files in the current directory.
rubocop [1]*.rb tells Rubocop to check all Ruby files in the current folder.Fill both blanks to create a Rubocop configuration file that disables the Style/StringLiterals cop.
Style/StringLiterals: Enabled: [1] EnforcedStyle: [2]
Enabled: false disables the cop. EnforcedStyle: single_quotes sets preferred quotes style.Fill all three blanks to write a Rubocop command that checks app.rb, shows only offenses with severity 'error', and uses color output.
rubocop [1] app.rb --severity [2] --[3]
--only option limits checks, error filters severity, and --color enables colored output.