Skip to content
Closed
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
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

pull_request:

permissions:
contents: read
id-token: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -26,9 +30,10 @@ jobs:
bundler-cache: true
- name: Lint with rubocop
run: bundle exec rubocop
- name: Test & Publish code coverage
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
- name: Test
run: bundle exec rspec
- name: Publish code coverage
uses: qltysh/qlty-action/coverage@v2
with:
coverageCommand: bundle exec rspec
oidc: true
files: coverage/.resultset.json
7 changes: 7 additions & 0 deletions .qlty/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*
!configs
!configs/**
!hooks
!hooks/**
!qlty.toml
!.gitignore
86 changes: 86 additions & 0 deletions .qlty/qlty.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# This file was automatically generated by `qlty init`.
# You can modify it to suit your needs.
# We recommend you to commit this file to your repository.
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The header comment has a grammatical issue: "We recommend you to commit this file" reads awkwardly. Consider rephrasing to "We recommend committing this file to your repository" (or similar) for clarity.

Suggested change
# We recommend you to commit this file to your repository.
# We recommend committing this file to your repository.

Copilot uses AI. Check for mistakes.
#
# This configuration is used by both Qlty CLI and Qlty Cloud.
#
# Qlty CLI -- Code quality toolkit for developers
# Qlty Cloud -- Fully automated Code Health Platform
#
# Try Qlty Cloud: https://qlty.sh
#
# For a guide to configuration, visit https://qlty.sh/d/config
# Or for a full reference, visit https://qlty.sh/d/qlty-toml
config_version = "0"

exclude_patterns = [
"*_min.*",
"*-min.*",
"*.min.*",
"**/.yarn/**",
"**/*.d.ts",
"**/assets/**",
"**/bower_components/**",
"**/build/**",
"**/cache/**",
"**/config/**",
"**/db/**",
"**/deps/**",
"**/dist/**",
"**/extern/**",
"**/external/**",
"**/generated/**",
"**/Godeps/**",
"**/gradlew/**",
"**/mvnw/**",
"**/node_modules/**",
"**/protos/**",
"**/seed/**",
"**/target/**",
"**/templates/**",
"**/testdata/**",
"**/vendor/**",
]

test_patterns = [
"**/test/**",
"**/spec/**",
"**/*.test.*",
"**/*.spec.*",
"**/*_test.*",
"**/*_spec.*",
"**/test_*.*",
"**/spec_*.*",
]

[smells]
mode = "comment"

[[source]]
name = "default"
default = true


[[plugin]]
name = "actionlint"

[[plugin]]
name = "osv-scanner"

Comment on lines +65 to +69
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugins like actionlint/osv-scanner are configured without explicit versions. If Qlty resolves these to the latest release, results can drift over time; consider pinning versions for reproducible linting/security scanning.

Copilot uses AI. Check for mistakes.
[[plugin]]
name = "ripgrep"
mode = "comment"

[[plugin]]
name = "rubocop"
version = "1.31.2"

[[plugin]]
name = "trivy"
drivers = [
"config",
"fs-vuln",
]
Comment on lines +79 to +83
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trivy plugin is not pinned to a specific version. To avoid behavior changes over time (scanner rules/db handling), consider specifying an explicit version here as well.

Copilot uses AI. Check for mistakes.

[[plugin]]
name = "trufflehog"
Comment on lines +85 to +86
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trufflehog plugin is configured without a version. Consider pinning a version to keep secret-scanning results stable across runs and avoid unexpected changes when new releases land.

Copilot uses AI. Check for mistakes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[![Gem Version](https://badge.fury.io/rb/prest.svg)](https://badge.fury.io/rb/prest)
[![Ruby](https://github.com/gogrow-dev/prest/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/gogrow-dev/prest/actions/workflows/main.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/f81b2e00be4d8eaa5e81/maintainability)](https://codeclimate.com/github/gogrow-dev/prest/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/f81b2e00be4d8eaa5e81/test_coverage)](https://codeclimate.com/github/gogrow-dev/prest/test_coverage)
[![Maintainability](https://qlty.sh/gh/gogrow-dev/projects/prest/maintainability.svg)](https://qlty.sh/gh/gogrow-dev/projects/prest)
[![Code Coverage](https://qlty.sh/gh/gogrow-dev/projects/prest/coverage.svg)](https://qlty.sh/gh/gogrow-dev/projects/prest)

Programmatically communicate with any REST API.

Expand Down