Skip to content

Commit a638f53

Browse files
committed
docs: remove Code Climate integration
refactor: Make UncoveredLine struct definition private
1 parent 1024da0 commit a638f53

File tree

3 files changed

+19
-45
lines changed

3 files changed

+19
-45
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,3 @@ jobs:
4848

4949
- name: Run rake
5050
run: bundle exec rake
51-
52-
coverage:
53-
name: Report test coverage to CodeClimate
54-
55-
needs: [build]
56-
runs-on: ubuntu-latest
57-
58-
steps:
59-
- name: Checkout
60-
uses: actions/checkout@v4
61-
62-
- name: Initialize Ruby
63-
uses: ruby/setup-ruby@v1
64-
with:
65-
ruby-version: 3.1
66-
bundler-cache: true
67-
68-
- name: Report test coverage
69-
uses: paambaati/codeclimate-action@v9
70-
env:
71-
CC_TEST_REPORTER_ID: ddf1b66251c781daaf3d2b44371e7040ce4a60126bc0c270855f8bee2c58d6d1
72-
with:
73-
coverageCommand: bundle exec rake spec
74-
coverageLocations: ${{github.workspace}}/coverage/lcov/*.lcov:lcov

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
[![Documentation](https://img.shields.io/badge/Documentation-Latest-green)](https://rubydoc.info/gems/simplecov-rspec/)
55
[![Change Log](https://img.shields.io/badge/CHANGELOG-Latest-green)](https://rubydoc.info/gems/simplecov-rspec/file/CHANGELOG.md)
66
[![Build Status](https://github.com/main-branch/simplecov-rspec/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/main-branch/simplecov-rspec/actions/workflows/continuous_integration.yml)
7-
[![Maintainability](https://api.codeclimate.com/v1/badges/9a58b51d18910db724c7/maintainability)](https://codeclimate.com/github/main-branch/simplecov-rspec/maintainability)
8-
[![Test Coverage](https://api.codeclimate.com/v1/badges/9a58b51d18910db724c7/test_coverage)](https://codeclimate.com/github/main-branch/simplecov-rspec/test_coverage)
97
[![Conventional
108
Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
119
[![Slack](https://img.shields.io/badge/slack-main--branch/simplecov--rspec-yellow.svg?logo=slack)](https://main-branch.slack.com/archives/C07MCM9J72B)
@@ -34,12 +32,12 @@ If configured to list the lines that were not covered by tests, RSpec will addit
3432

3533
* [Installation](#installation)
3634
* [Getting started](#getting-started)
37-
* [Basic setup](#basic-setup)
38-
* [Configuration from environment variables](#configuration-from-environment-variables)
35+
* [Basic setup](#basic-setup)
36+
* [Configuration from environment variables](#configuration-from-environment-variables)
3937
* [Development](#development)
4038
* [Contributing](#contributing)
41-
* [Commit message guidelines](#commit-message-guidelines)
42-
* [Pull request guidelines](#pull-request-guidelines)
39+
* [Commit message guidelines](#commit-message-guidelines)
40+
* [Pull request guidelines](#pull-request-guidelines)
4341
* [License](#license)
4442
* [Code of conduct](#code-of-conduct)
4543

lib/simplecov-rspec.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,21 @@ def list_uncovered_lines?
231231
#
232232
def rspec_dry_run? = @rspec_dry_run
233233

234+
# An uncovered line
235+
#
236+
# @!attribute project_filename [rw]
237+
# The path to the file with uncovered lines relative to the project root
238+
# @return [String]
239+
# @api private
240+
#
241+
# @!attribute line_number [rw]
242+
# The line number of the uncovered line
243+
# @return [Integer]
244+
# @api private
245+
#
246+
# @api private
247+
UncoveredLine = Struct.new(:project_filename, :line_number)
248+
234249
private
235250

236251
# rubocop:disable Metrics/ParameterLists
@@ -323,21 +338,6 @@ def uncovered_lines_found? = simplecov_module.result.files.any? { |source_file|
323338
# @private
324339
def show_uncovered_lines_report? = list_uncovered_lines? && uncovered_lines_found?
325340

326-
# An uncovered line
327-
#
328-
# @!attribute project_filename [rw]
329-
# The path to the file with uncovered lines relative to the project root
330-
# @return [String]
331-
# @api private
332-
#
333-
# @!attribute line_number [rw]
334-
# The line number of the uncovered line
335-
# @return [Integer]
336-
# @api private
337-
#
338-
# @api private
339-
UncoveredLine = Struct.new(:project_filename, :line_number)
340-
341341
# Return the uncovered lines from the SimpleCov result
342342
# @return [Array<UncoveredLine>]
343343
# @api private

0 commit comments

Comments
 (0)