-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from CDLUC3/rubocop
Enable Rubocop Checks for docker images
- Loading branch information
Showing
10 changed files
with
341 additions
and
83 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,32 @@ | ||
name: Rubocop | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
rubocop: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
# Checkout the repo | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
working-directory: mrt-services/callback | ||
|
||
- name: 'Run Rubocop' | ||
run: bundle exec rubocop | ||
working-directory: mrt-services/callback | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
working-directory: mrt-inttest-services/mock-merritt-it | ||
|
||
- name: 'Run Rubocop' | ||
run: bundle exec rubocop | ||
working-directory: mrt-inttest-services/mock-merritt-it | ||
|
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,63 @@ | ||
Metrics/ClassLength: | ||
Enabled: false | ||
Metrics/MethodLength: | ||
Enabled: false | ||
Metrics/BlockLength: | ||
Enabled: false | ||
Metrics/AbcSize: | ||
Enabled: false | ||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
Metrics/BlockNesting: | ||
Enabled: false | ||
Metrics/ParameterLists: | ||
Enabled: false | ||
|
||
Naming/AccessorMethodName: | ||
Enabled: false | ||
Style/NestedTernaryOperator: | ||
Enabled: false | ||
Naming/PredicateName: | ||
Enabled: false | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
Layout/ParameterAlignment: | ||
EnforcedStyle: with_fixed_indentation | ||
Layout/ArgumentAlignment: | ||
EnforcedStyle: with_fixed_indentation | ||
Naming/MethodParameterName: | ||
Enabled: false | ||
Layout/MultilineOperationIndentation: | ||
Enabled: false | ||
Style/GlobalVars: | ||
Enabled: false | ||
Style/ConditionalAssignment: | ||
Enabled: false | ||
Style/ClassVars: | ||
Enabled: false | ||
|
||
# Rubocop errors out when the following are added: https://github.com/rubocop/rubocop/issues/12548 | ||
#Layout/FirstArrayElementIndentation: | ||
# Enabled: true | ||
#Layout/FirstArrayElementLineBreak: | ||
# Enabled: true | ||
#Layout/ArrayAlignment: | ||
# EnforcedStyle: with_fixed_indentation | ||
#Layout/MultilineArrayBraceLayout: | ||
# EnforcedStyle: new_line | ||
|
||
Layout/FirstHashElementIndentation: | ||
Enabled: true | ||
EnforcedStyle: consistent | ||
Layout/MultilineHashKeyLineBreaks: | ||
Enabled: true | ||
Layout/MultilineHashBraceLayout: | ||
EnforcedStyle: new_line | ||
|
||
|
||
AllCops: | ||
NewCops: enable | ||
|
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,5 +1,8 @@ | ||
source "https://rubygems.org" | ||
gem 'sinatra' | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
gem 'mustache' | ||
gem 'redcarpet' | ||
gem 'thin' | ||
gem 'rubocop' | ||
gem 'sinatra' | ||
gem 'thin' |
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.