Open zedtux opened 1 year ago
Finally, I got it working!
The issue was the -it
which was expecting a TTY, which is not the case with a Bash script. After removing it, Docker runs,
But something which doesn't work still is running Rubocop when opening a file. I have to run "Check current file" manually in order to get it working.
Since my last comment, the PWD
env variable is no more the current project path. I have a working fix on my local machine, I will open a PR so that this issue could be closed with the PR.
Actually, the PR #70 fixes the mentioned issue!
Steps to reproduce:
docker run --rm -it -v ${PWD}:/code registry.gitlab.com/pipeline-components/rubocop:latest $@
Offenses:
my_ruby_file.rb:45:3: C: Metrics/MethodLength: Method has too many lines. [12/10] def move_screenshot_html_to_public_folder_as(filename) ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^