Skip to content

Commit

Permalink
Add :nocov: comments to ignore code coverage for specific sections
Browse files Browse the repository at this point in the history
  • Loading branch information
ngetahun committed Nov 7, 2024
1 parent ee468b3 commit ddbb38f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/lint-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,4 @@ jobs:
run: |
echo "::group::Version verification checks"
ruby ci/check-version-matches.rb
echo "::endgroup::"
- name: Export artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: ${{ github.workspace }}/coverage
echo "::endgroup::"
2 changes: 2 additions & 0 deletions config/initializers/yabeda.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# :nocov:
# frozen_string_literal: true

return unless Settings.dig(:scc, :metrics, :enabled)
Expand Down Expand Up @@ -34,3 +35,4 @@
metric.increment(labels, by: 1)
end
end
# :nocov:
2 changes: 2 additions & 0 deletions lib/rmt/config.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# :nocov:
require 'config'
require_relative '../rmt'

Expand Down Expand Up @@ -77,3 +78,4 @@ def validate_int(value)
end
end
end
# :nocov:

0 comments on commit ddbb38f

Please sign in to comment.