-
Notifications
You must be signed in to change notification settings - Fork 411
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 #448 from bobbrodie/rubocop
Initial Rubocop implementation
- Loading branch information
Showing
99 changed files
with
1,030 additions
and
656 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,18 @@ | ||
name: Rubocop | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
rubocop: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.1' | ||
bundler-cache: true | ||
- name: Run rubocop | ||
run: | | ||
bundle exec rubocop --format github |
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
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,191 @@ | ||
require: | ||
- rubocop-rspec | ||
|
||
AllCops: | ||
Exclude: | ||
- 'example.rb' | ||
- 'http-basic-example.rb' | ||
- 'vendor/**/*' | ||
NewCops: enable | ||
TargetRubyVersion: 3.1 | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- 'lib/jira-ruby.rb' | ||
|
||
Naming/MethodName: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
## | ||
# Temporarily Disable | ||
# | ||
# We are going to disable these and fix in pull requests | ||
## | ||
Layout/ClosingHeredocIndentation: | ||
Enabled: false | ||
|
||
Layout/EmptyLineAfterGuardClause: | ||
Enabled: false | ||
|
||
Layout/EmptyLinesAroundMethodBody: | ||
Enabled: false | ||
|
||
Layout/HashAlignment: | ||
Enabled: false | ||
|
||
Layout/LineLength: | ||
Enabled: false | ||
|
||
Lint/ConstantDefinitionInBlock: | ||
Enabled: false | ||
|
||
Lint/EmptyClass: | ||
Enabled: false | ||
|
||
Lint/IneffectiveAccessModifier: | ||
Enabled: false | ||
|
||
Lint/MissingSuper: | ||
Enabled: false | ||
|
||
Lint/RedundantCopDisableDirective: | ||
Enabled: false | ||
|
||
Lint/UselessAssignment: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Naming/AccessorMethodName: | ||
Enabled: false | ||
|
||
Naming/BlockForwarding: | ||
Enabled: false | ||
|
||
Naming/HeredocDelimiterNaming: | ||
Enabled: false | ||
|
||
Naming/PredicateName: | ||
Enabled: false | ||
|
||
Naming/VariableNumber: | ||
Enabled: false | ||
|
||
RSpec/AnyInstance: | ||
Enabled: false | ||
|
||
RSpec/BeEq: | ||
Enabled: false | ||
|
||
RSpec/ContextWording: | ||
Enabled: false | ||
|
||
RSpec/ExampleLength: | ||
Enabled: false | ||
|
||
RSpec/ExpectInHook: | ||
Enabled: false | ||
|
||
RSpec/FilePath: | ||
Enabled: false | ||
|
||
RSpec/IndexedLet: | ||
Enabled: false | ||
|
||
RSpec/InstanceVariable: | ||
Enabled: false | ||
|
||
RSpec/LeakyConstantDeclaration: | ||
Enabled: false | ||
|
||
RSpec/MessageChain: | ||
Enabled: false | ||
|
||
RSpec/MessageSpies: | ||
Enabled: false | ||
|
||
RSpec/MultipleExpectations: | ||
Enabled: false | ||
|
||
RSpec/MultipleMemoizedHelpers: | ||
Enabled: false | ||
|
||
RSpec/NamedSubject: | ||
Enabled: false | ||
|
||
RSpec/NestedGroups: | ||
Enabled: false | ||
|
||
RSpec/NoExpectationExample: | ||
Enabled: false | ||
|
||
RSpec/PredicateMatcher: | ||
Enabled: false | ||
|
||
RSpec/ReceiveMessages: | ||
Enabled: false | ||
|
||
RSpec/RepeatedSubjectCall: | ||
Enabled: false | ||
|
||
RSpec/SpecFilePathFormat: | ||
Enabled: false | ||
|
||
RSpec/SpecFilePathSuffix: | ||
Enabled: false | ||
|
||
RSpec/StubbedMock: | ||
Enabled: false | ||
|
||
RSpec/SubjectStub: | ||
Enabled: false | ||
|
||
RSpec/VerifiedDoubleReference: | ||
Enabled: false | ||
|
||
RSpec/VerifiedDoubles: | ||
Enabled: false | ||
|
||
Security/Open: | ||
Enabled: false | ||
|
||
Style/ArgumentsForwarding: | ||
Enabled: false | ||
|
||
Style/CaseEquality: | ||
Enabled: false | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Style/MissingRespondToMissing: | ||
Enabled: false | ||
|
||
Style/OpenStructUse: | ||
Enabled: false | ||
|
||
Style/OptionalBooleanParameter: | ||
Enabled: false | ||
|
||
Style/SymbolProc: | ||
Enabled: false |
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
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
gem 'wdm', '>= 0.1.0' if Gem.win_platform? | ||
gem 'rspec', '~> 3.0.0' | ||
|
||
|
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
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rubygems' | ||
require 'pp' | ||
require 'jira-ruby' | ||
|
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
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.