Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
26 changes: 26 additions & 0 deletions sinatra/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions sinatra/views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@

<div class="footer">
<span>DynaSearch 🧨 &copy; 2025</span>
<a href="/about">About</a>
<a href="/sla">SLA</a>
<a href="/about">About</a>
</div>
</div>
<%# Correct path for script located in public/js/search.js %>
Expand Down