forked from apartmentlist/sidekiq-bouncer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a8ac1e
commit 78e823e
Showing
23 changed files
with
377 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test | ||
|
||
on: [pull_request] | ||
|
||
# permissions: | ||
# contents: read | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
# env: | ||
# BUNDLE_ONLY: rubocop | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby 3.2.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2.2 | ||
bundler-cache: true | ||
|
||
- name: Run Tests | ||
run: bundle exec rake | ||
# run: bundle exec rubocop --parallel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,4 @@ | |
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
|
||
# rspec failure tracking | ||
.rspec_status | ||
.byebug_history | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
########################################################### | ||
#################### Rubocop Rspec ######################## | ||
########################################################### | ||
|
||
# You can find all configuration options for rubocop-rspec here: https://docs.rubocop.org/rubocop-rspec/cops.html | ||
|
||
# RSpec/PendingWithoutReason: | ||
# Enabled: false | ||
|
||
# RSpec/FilePath: | ||
# Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# see example at https://gist.github.com/jhass/a5ae80d87f18e53e7b56 | ||
|
||
# <% unless ENV['BYPASS_RUBOCOP_TODO'] %> | ||
# inherit_from: | ||
# <% else %> | ||
# inherit_from: | ||
# - '.rubocop-todo.yml' | ||
# <% end %> | ||
|
||
inherit_from: | ||
- .rubocop_todo.yml | ||
- .rubocop-rspec.yml | ||
|
||
require: | ||
- rubocop-rspec | ||
- rubocop-rake | ||
- rubocop-performance | ||
|
||
AllCops: | ||
NewCops: enable | ||
# TargetRubyVersion: 2.7.8 | ||
# TargetRailsVersion: 6.1.4 | ||
# Exclude: | ||
# - 'Gemfile.lock' | ||
|
||
Naming/VariableNumber: | ||
Enabled: false | ||
|
||
Layout/SpaceInsideHashLiteralBraces: | ||
Enabled: false | ||
|
||
Layout/EmptyLinesAroundModuleBody: | ||
EnforcedStyle: empty_lines_special | ||
Enabled: false | ||
|
||
Layout/TrailingEmptyLines: | ||
Enabled: false | ||
EnforcedStyle: final_blank_line | ||
|
||
Layout/EmptyLinesAroundClassBody: | ||
Enabled: false | ||
|
||
Style/RaiseArgs: | ||
EnforcedStyle: compact | ||
|
||
Naming/MethodParameterName: | ||
Enabled: false | ||
|
||
Naming/VariableName: | ||
Enabled: false | ||
|
||
Layout/FirstHashElementIndentation: | ||
Enabled: false | ||
|
||
Layout/CaseIndentation: | ||
EnforcedStyle: end | ||
|
||
Metrics/ParameterLists: | ||
Enabled: false | ||
|
||
Style/Lambda: | ||
EnforcedStyle: literal | ||
|
||
Layout/IndentationWidth: | ||
Enabled: false | ||
|
||
Layout/EndAlignment: | ||
Enabled: false | ||
|
||
Layout/ElseAlignment: | ||
Enabled: false | ||
|
||
Style/TrivialAccessors: | ||
Enabled: false | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2024-03-19 18:55:09 UTC using RuboCop version 1.62.1. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. | ||
Metrics/MethodLength: | ||
Max: 14 | ||
|
||
# Offense count: 1 | ||
RSpec/BeforeAfterAll: | ||
Exclude: | ||
- '**/spec/spec_helper.rb' | ||
- '**/spec/rails_helper.rb' | ||
- '**/spec/support/**/*.rb' | ||
- 'spec/sidekiq_bouncer/bouncer_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: CountAsOne. | ||
RSpec/ExampleLength: | ||
Max: 7 | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: AllowedGroups. | ||
RSpec/NestedGroups: | ||
Max: 4 | ||
|
||
# Offense count: 1 | ||
RSpec/SubjectStub: | ||
Exclude: | ||
- 'spec/sidekiq_bouncer/bouncer_spec.rb' | ||
|
||
# Offense count: 6 | ||
# Configuration parameters: AllowedConstants. | ||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'test/**/*' | ||
- 'lib/sidekiq_bouncer.rb' | ||
- 'lib/sidekiq_bouncer/bounceable.rb' | ||
- 'lib/sidekiq_bouncer/bouncer.rb' | ||
- 'lib/sidekiq_bouncer/config.rb' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
source "https://rubygems.org" | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in sidekiq-bouncer.gemspec | ||
gemspec | ||
|
||
# gem 'bundler', '2.4.22' | ||
gem 'debug', '>= 1.0.0' | ||
gem 'rake', '~> 13.1' | ||
gem 'rspec', '~> 3.9' | ||
|
||
# rubocop | ||
gem 'rubocop', '~> 1.62' | ||
gem 'rubocop-performance', '~> 1.20' | ||
gem 'rubocop-rake', '~> 0.6' | ||
gem 'rubocop-rspec', '~> 2.27.1' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new | ||
|
||
task default: %i[spec rubocop] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module SidekiqBouncer | ||
module Bounceable | ||
|
||
|
Oops, something went wrong.