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 #950 from stripe-internal/pt-rubocop
introduce a bare-bones rubocop.yml (Squashed by Merge Bot)
- Loading branch information
Showing
8 changed files
with
78 additions
and
11 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,13 @@ | ||
inherit_gem: | ||
stripe-rubocop: .rubocop.yml | ||
|
||
AllCops: | ||
Exclude: | ||
# Someday we should enable some formatting cops for these | ||
- test/testdata/**/* | ||
- test/cli/**/* | ||
|
||
# Things we didn't write | ||
- bazel-*/**/* | ||
- third_party/**/* | ||
- parser/tools/generate_diagnostics.rb |
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 @@ | ||
2.4 |
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,17 @@ | ||
# rubocop:disable PrisonGuard/NoRequireSideEffects | ||
|
||
found = ['~/.', '/etc/'].any? do |file| | ||
begin | ||
path = File.expand_path(file + 'bundle-gemfile-hook') | ||
File.lstat(path) | ||
rescue | ||
next | ||
end | ||
instance_eval(File.read(path), path) | ||
break true | ||
end | ||
source('https://rubygems.org/') if !found | ||
|
||
gem 'stripe-rubocop', '0.7.4' | ||
|
||
# rubocop:enable PrisonGuard/NoRequireSideEffects |
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,29 @@ | ||
GEM | ||
remote: https://intgems.local.corp.stripe.com:446/ | ||
specs: | ||
ast (2.4.0) | ||
parallel (1.12.1) | ||
parser (2.4.0.2) | ||
ast (~> 2.3) | ||
powerpack (0.1.1) | ||
rainbow (3.0.0) | ||
rubocop (0.52.1) | ||
parallel (~> 1.10) | ||
parser (>= 2.4.0.2, < 3.0) | ||
powerpack (~> 0.1) | ||
rainbow (>= 2.2.2, < 4.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (~> 1.0, >= 1.0.1) | ||
ruby-progressbar (1.9.0) | ||
stripe-rubocop (0.7.4) | ||
rubocop (= 0.52.1) | ||
unicode-display_width (1.3.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
stripe-rubocop (= 0.7.4) | ||
|
||
BUNDLED WITH | ||
1.16.1 |
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 |
---|---|---|
|
@@ -24,4 +24,7 @@ def main | |
cur_file = nil | ||
end | ||
end | ||
main | ||
|
||
if $0 == __FILE__ | ||
main | ||
end |
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,21 +1,21 @@ | ||
# rubocop:disable PrisonGuard/NoTopLevelDeclarations | ||
class T | ||
def self.type(fixed: nil) | ||
end | ||
def self.assert_type!(*args) | ||
end | ||
def self.untyped | ||
end | ||
def self.type(fixed: nil); end | ||
def self.assert_type!(*args); end | ||
def self.untyped; end | ||
end | ||
|
||
class T::Sig | ||
def returns(*args) | ||
end | ||
def returns(*args); end | ||
end | ||
def sig(*args) | ||
|
||
def sig(*_args) | ||
T::Sig.new | ||
end | ||
|
||
class Module | ||
def [](*args) | ||
def [](*_args) | ||
self | ||
end | ||
end | ||
# rubocop:enable PrisonGuard/NoTopLevelDeclarations |