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
7 changes: 4 additions & 3 deletions .github/workflows/frontlinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: true
defaults:
run:
working-directory: aima-front
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -25,5 +26,5 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run lint
- name: Run ESLint
run: npm run lint
2 changes: 1 addition & 1 deletion aima-front/app/history/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";

// テストコメント
import { useEffect, useState } from "react";
import { useRouter } from "next/navigation";
import { getActivityLogs } from "@/lib/api";
Expand Down
23 changes: 16 additions & 7 deletions back/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
require:
- rubocop-rails
- rubocop-performance

# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
AllCops:
NewCops: enable
Exclude:
- 'db/schema.rb'
- 'db/migrate/*'
- 'bin/*'
- 'config/environments/*'
- 'vendor/**/*'
- 'node_modules/**/*'
Metrics/BlockLength:
Max: 20
Style/Documentation:
Enabled: false
7 changes: 5 additions & 2 deletions back/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ group :development, :test do
gem "brakeman", require: false

# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
gem "rubocop-rails-omakase", require: false
end
# gem "rubocop-rails-omakase", require: false
gem "rubocop-rails", require: false
gem "rubocop", require: false
gem "rubocop-performance", require: false
end
8 changes: 3 additions & 5 deletions back/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,6 @@ GEM
rack (>= 1.1)
rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.44.0, < 2.0)
rubocop-rails-omakase (1.1.0)
rubocop (>= 1.72)
rubocop-performance (>= 1.24)
rubocop-rails (>= 2.30)
ruby-progressbar (1.13.0)
securerandom (0.4.1)
solid_cable (3.0.12)
Expand Down Expand Up @@ -344,7 +340,9 @@ DEPENDENCIES
pg
puma (>= 5.0)
rails (~> 8.0.4)
rubocop-rails-omakase
rubocop
rubocop-performance
rubocop-rails
solid_cable
solid_cache
solid_queue
Expand Down
Loading