-
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
ba2e205
commit 225632f
Showing
84 changed files
with
1,484 additions
and
1,085 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/ | ||
Gemfile.lock | ||
|
||
# Ignore Byebug command history file. | ||
.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,12 @@ | ||
########################################################### | ||
#################### Rubocop Minitest ##################### | ||
########################################################### | ||
|
||
Minitest/AssertTruthy: | ||
Enabled: false | ||
|
||
Minitest/RefuteFalse: | ||
Enabled: false | ||
|
||
Minitest/MultipleAssertions: | ||
Max: 4 |
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,62 @@ | ||
# 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-minitest.yml | ||
|
||
require: | ||
- rubocop-minitest | ||
- rubocop-rake | ||
- rubocop-performance | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 3.2.2 | ||
# 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 | ||
|
||
Layout/CaseIndentation: | ||
EnforcedStyle: end | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
|
||
Layout/IndentationWidth: | ||
Enabled: false | ||
|
||
Layout/EndAlignment: | ||
Enabled: false | ||
|
||
Layout/ElseAlignment: | ||
Enabled: false | ||
|
||
Style/Lambda: | ||
EnforcedStyle: literal |
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,24 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2024-03-20 20:20:07 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. | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
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 |
---|---|---|
@@ -1,8 +1,22 @@ | ||
source "https://rubygems.org" | ||
# frozen_string_literal: true | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
source 'https://rubygems.org' | ||
|
||
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | ||
|
||
gem 'super_hash', '>= 0.2.0', git: 'https://github.com/prysmex/super_hash.git' | ||
|
||
# Specify your gem's dependencies in json_schema_form.gemspec | ||
gemspec | ||
gemspec | ||
|
||
# gem 'bundler', '2.4.22' | ||
gem 'debug', '>= 1.0.0' | ||
gem 'minitest', '~> 5.14' | ||
gem 'minitest-reporters', '~> 1.6' | ||
gem 'rake', '~> 13.1' | ||
|
||
# rubocop | ||
gem 'rubocop', '~> 1.62' | ||
gem 'rubocop-minitest', '~> 0.35' | ||
gem 'rubocop-performance', '~> 1.20' | ||
gem 'rubocop-rake', '~> 0.6' |
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,11 +1,17 @@ | ||
require "bundler/gem_tasks" | ||
require "rake/testtask" | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
|
||
Rake::TestTask.new do |t| | ||
t.libs << "test" | ||
t.test_files = FileList["test/**/*_spec.rb"] | ||
t.verbose = true | ||
t.warning = true | ||
t.libs << 'test' | ||
# t.libs << 'lib' | ||
t.test_files = FileList['test/**/*_test.rb'] | ||
end | ||
|
||
task :default => :test | ||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new | ||
|
||
task default: %i[test 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
Oops, something went wrong.