Skip to content

Commit 169108b

Browse files
Graham Jensonkigster
authored andcommitted
Adding relaxed-rubocop and fixing styling issues (#15)
* [Fix] styling hecks * fixed * Restoring comment Alignment for easy comprehension * run buildifier
1 parent 3a33240 commit 169108b

File tree

15 files changed

+89
-115
lines changed

15 files changed

+89
-115
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
AllCops:
2+
Exclude:
3+
- bazel-*/**/*
4+
- examples/**/*
15

26
inherit_gem:
37
relaxed-rubocop: .rubocop.yml

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
source 'https://rubygems.org'
44

5+
gem 'relaxed-rubocop'
56
gem 'rubocop', '~> 0.76.0', require: false

Gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ GEM
77
parser (2.6.0.0)
88
ast (~> 2.4.0)
99
rainbow (3.0.0)
10+
relaxed-rubocop (2.4)
1011
rubocop (0.76.0)
1112
jaro_winkler (~> 1.5.1)
1213
parallel (~> 1.10)
@@ -21,7 +22,8 @@ PLATFORMS
2122
ruby
2223

2324
DEPENDENCIES
25+
relaxed-rubocop
2426
rubocop (~> 0.76.0)
2527

2628
BUNDLED WITH
27-
1.9
29+
1.17.3

examples/bin/show_version.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/lib/foo.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/lib/foo/bar.rb

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/lib/foo/version.rb

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/simple_script/BUILD

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ ruby_binary(
1616
],
1717
)
1818

19-
2019
ruby_test(
2120
name = "default_test",
2221
srcs = ["script_spec.rb"],
2322
main = "script_spec.rb",
24-
rubyopt = ["-rrspec/autorun"], # require autorun because it is needed
23+
rubyopt = ["-rrspec/autorun"], # require autorun because it is needed
2524
deps = [
2625
"//lib:foo",
2726
"@bundle//:libs",
2827
],
2928
)
30-

examples/simple_script/lib/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ load(
88
ruby_library(
99
name = "foo",
1010
srcs = ["foo.rb"],
11-
)
11+
)

examples/simple_script/lib/foo.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# frozen_string_literal: true
2+
13
module Foo
2-
def self.aha
3-
return "aha"
4-
end
4+
def self.aha
5+
"aha"
6+
end
57
end

0 commit comments

Comments
 (0)