зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-06 11:45:51 +03:00
Add linter workflow
Этот коммит содержится в:
6
.fasterer.yml
Обычный файл
6
.fasterer.yml
Обычный файл
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
exclude_paths:
|
||||||
|
- bin/*
|
||||||
|
- db/schema.rb
|
||||||
|
- spec/dummy/**/*
|
||||||
|
- vendor/**/*
|
||||||
35
.github/workflows/linters.yml
поставляемый
Обычный файл
35
.github/workflows/linters.yml
поставляемый
Обычный файл
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
name: Linters
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
reviewdog:
|
||||||
|
name: reviewdog
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '2.7'
|
||||||
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
||||||
|
|
||||||
|
- uses: reviewdog/action-setup@v1
|
||||||
|
with:
|
||||||
|
reviewdog_version: latest
|
||||||
|
|
||||||
|
- name: Run reviewdog
|
||||||
|
env:
|
||||||
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
reviewdog -fail-on-error -reporter=github-pr-review -runners=brakeman,fasterer,reek,rubocop
|
||||||
|
|
||||||
|
# NOTE: check with: reviewdog -fail-on-error -reporter=github-pr-review -runners=fasterer -diff="git diff" -tee
|
||||||
1
.github/workflows/specs.yml
поставляемый
1
.github/workflows/specs.yml
поставляемый
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: Specs
|
name: Specs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
---
|
---
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- spec/dummy
|
- bin/*
|
||||||
- vendor
|
- db/schema.rb
|
||||||
|
- spec/dummy/**/*
|
||||||
|
- vendor/**/*
|
||||||
|
|
||||||
detectors:
|
detectors:
|
||||||
IrresponsibleModule:
|
IrresponsibleModule:
|
||||||
|
|||||||
14
.reviewdog.yml
Обычный файл
14
.reviewdog.yml
Обычный файл
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
runner:
|
||||||
|
brakeman:
|
||||||
|
cmd: bin/brakeman
|
||||||
|
level: info
|
||||||
|
fasterer:
|
||||||
|
cmd: bin/fasterer
|
||||||
|
level: info
|
||||||
|
reek:
|
||||||
|
cmd: bin/reek
|
||||||
|
level: info
|
||||||
|
rubocop:
|
||||||
|
cmd: bin/rubocop
|
||||||
|
level: info
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
inherit_from:
|
inherit_from:
|
||||||
- https://relaxed.ruby.style/rubocop.yml
|
- https://relaxed.ruby.style/rubocop.yml
|
||||||
|
|
||||||
@@ -10,7 +11,9 @@ require:
|
|||||||
AllCops:
|
AllCops:
|
||||||
Exclude:
|
Exclude:
|
||||||
- bin/*
|
- bin/*
|
||||||
|
- db/schema.rb
|
||||||
- spec/dummy/**/*
|
- spec/dummy/**/*
|
||||||
|
- vendor/**/*
|
||||||
NewCops: enable
|
NewCops: enable
|
||||||
|
|
||||||
Gemspec/RequiredRubyVersion:
|
Gemspec/RequiredRubyVersion:
|
||||||
|
|||||||
21
Gemfile
21
Gemfile
@@ -4,16 +4,6 @@ source 'https://rubygems.org'
|
|||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
# Linters
|
|
||||||
gem 'brakeman'
|
|
||||||
gem 'fasterer'
|
|
||||||
gem 'reek'
|
|
||||||
gem 'rubocop'
|
|
||||||
gem 'rubocop-packaging'
|
|
||||||
gem 'rubocop-performance'
|
|
||||||
gem 'rubocop-rails'
|
|
||||||
gem 'rubocop-rspec'
|
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'activestorage', '~> 6.0'
|
gem 'activestorage', '~> 6.0'
|
||||||
gem 'capybara', '~> 3.33'
|
gem 'capybara', '~> 3.33'
|
||||||
@@ -24,5 +14,16 @@ group :development, :test do
|
|||||||
gem 'sprockets-rails', '~> 3.2'
|
gem 'sprockets-rails', '~> 3.2'
|
||||||
gem 'sqlite3', '~> 1.4'
|
gem 'sqlite3', '~> 1.4'
|
||||||
|
|
||||||
|
# Linters
|
||||||
|
gem 'brakeman'
|
||||||
|
gem 'fasterer'
|
||||||
|
gem 'reek'
|
||||||
|
gem 'rubocop'
|
||||||
|
gem 'rubocop-packaging'
|
||||||
|
gem 'rubocop-performance'
|
||||||
|
gem 'rubocop-rails'
|
||||||
|
gem 'rubocop-rspec'
|
||||||
|
|
||||||
|
# Tools
|
||||||
gem 'pry-rails'
|
gem 'pry-rails'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# ActiveAdmin Quill Editor [](https://badge.fury.io/rb/activeadmin_quill_editor) [](https://rubygems.org/gems/activeadmin_quill_editor) [](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml)
|
# ActiveAdmin Quill Editor
|
||||||
|
[](https://badge.fury.io/rb/activeadmin_quill_editor) [](https://rubygems.org/gems/activeadmin_quill_editor) [](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml) [](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml)
|
||||||
|
|
||||||
An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quilljs/quill) in form fields.
|
An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quilljs/quill) in form fields.
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user