diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index f370c43..439fe96 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -30,6 +30,6 @@ jobs: env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - reviewdog -fail-on-error -reporter=github-pr-review -runners=brakeman,fasterer,reek,rubocop + reviewdog -fail-on-error -reporter=github-pr-review -runners=fasterer,rubocop # NOTE: check with: reviewdog -fail-on-error -reporter=github-pr-review -runners=fasterer -diff="git diff" -tee diff --git a/.reek.yml b/.reek.yml deleted file mode 100644 index 0435507..0000000 --- a/.reek.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -exclude_paths: - - bin/* - - db/schema.rb - - spec/dummy/**/* - - vendor/**/* - -detectors: - IrresponsibleModule: - enabled: false - TooManyStatements: - # default 5 - max_statements: 10 diff --git a/.reviewdog.yml b/.reviewdog.yml index 04ad1a0..99770b5 100644 --- a/.reviewdog.yml +++ b/.reviewdog.yml @@ -1,14 +1,8 @@ --- 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 diff --git a/bin/brakeman b/bin/brakeman deleted file mode 100755 index 4b79003..0000000 --- a/bin/brakeman +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'brakeman' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "pathname" -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -bundle_binstub = File.expand_path("../bundle", __FILE__) - -if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ - load(bundle_binstub) - else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") - end -end - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("brakeman", "brakeman") diff --git a/bin/code_climate_reek b/bin/code_climate_reek deleted file mode 100755 index 9bb9536..0000000 --- a/bin/code_climate_reek +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'code_climate_reek' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "pathname" -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -bundle_binstub = File.expand_path("../bundle", __FILE__) - -if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ - load(bundle_binstub) - else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") - end -end - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("reek", "code_climate_reek") diff --git a/bin/reek b/bin/reek deleted file mode 100755 index cafe88d..0000000 --- a/bin/reek +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'reek' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require "pathname" -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", - Pathname.new(__FILE__).realpath) - -bundle_binstub = File.expand_path("../bundle", __FILE__) - -if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ - load(bundle_binstub) - else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") - end -end - -require "rubygems" -require "bundler/setup" - -load Gem.bin_path("reek", "reek")