diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c54182d..d88f15f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -64,11 +64,11 @@ jobs: - name: Auto-correct RuboCop issues working-directory: sinatra - run: bundle exec rubocop -A || true + run: bundle exec rubocop -A - name: Run RuboCop working-directory: sinatra - run: bundle exec rubocop || true + run: bundle exec rubocop # Job 3: Lint Dockerfiles lint-docker: diff --git a/sinatra/.rubocop.yml b/sinatra/.rubocop.yml new file mode 100644 index 0000000..016c058 --- /dev/null +++ b/sinatra/.rubocop.yml @@ -0,0 +1,26 @@ +# Disable specific cops for the entire project +AllCops: + Exclude: + - 'db/schema.rb' + - 'vendor/**/*' + - 'node_modules/**/*' + +# Ignore line length warnings +Layout/LineLength: + Enabled: false + +# Ignore warnings about blocks being too long +Metrics/BlockLength: + Enabled: false + +# Ignore warnings about methods being too long +Metrics/MethodLength: + Enabled: false + +# Ignore warnings about assignment, branch, and condition size +Metrics/AbcSize: + Enabled: false + +# Ignore warnings about classes being too long +Metrics/ClassLength: + Enabled: false \ No newline at end of file diff --git a/sinatra/views/layout.erb b/sinatra/views/layout.erb index 94ff314..d65eb0e 100644 --- a/sinatra/views/layout.erb +++ b/sinatra/views/layout.erb @@ -41,7 +41,7 @@ <%# Correct path for script located in public/js/search.js %>