Skip to content
Merged
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
16 changes: 16 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"permissions": {
"allow": [
"Bash(find:*)",
"Bash(bundle exec rspec:*)",
"Bash(mkdir:*)",
"Bash(rspec:*)",
"Bash(bundle install:*)",
"Bash(ruby:*)",
"Bash(gem which:*)",
"Bash(bundle:*)"
],
"deny": [],
"ask": []
}
}
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
rubocop:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['3.2']

steps:
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Install dependencies
run: bundle install

- name: Run RuboCop
run: bundle exec rubocop

rspec:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['3.2']

steps:
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Install dependencies
run: bundle install

- name: Run RSpec tests
run: bundle exec rspec
28 changes: 0 additions & 28 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1 @@
inherit_from: .rubocop_todo.yml

# Offense count: 1
Security/Eval:
Exclude:
- 'bin/*'

# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 120

Metrics/BlockLength:
ExcludedMethods: ['describe', 'context']

Style/AsciiComments:
Enabled: false

Style/Copyright:
Notice: 'Copyright (\(c\) )?2[0-9]{3} .+'
AutocorrectNotice: "# Copyright (c) 2018 FINFEX https://github.com/finfex\n"
Description: 'Include a copyright notice in each file before any code.'
Enabled: true
VersionAdded: '0.1'

AllCops:
Exclude:
- utils/*
- vendor/bundle/**/*
Loading