« Back to Index

Test Rubocop against inline code

View original Gist on GitHub

Test Rubocop against inline code.md

Example valid script to test Rubocop against:

cat > test.rb <<EOF
 require "json"
 p JSON.generate(:foo => :bar)
EOF

Then temporarily update the docker run command’s volume setting:

--volume $(pwd)/test.rb:/app/test.rb