easy_style 0.1.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df40ba74e9b908226b47675d1a77fb3f21c3666ca730aab5e47465e297223e0d
4
- data.tar.gz: c5a9852310c826e2a6b3bf2a47b9d413100d37b08b290809d4910e748f18e50e
3
+ metadata.gz: '0184dbc2d45275b621e5488e896cd0a9ac66e79afa598601dbf550aad12a179a'
4
+ data.tar.gz: 0744b421637b3c29bc6662c8e34b9dc3e72b031d03fc0841bb159a66d37315c8
5
5
  SHA512:
6
- metadata.gz: 44da92da829f0b24b77cc402e193a6564b1ab6d2f24f832d212e509ddf212c9094becf1bb735b5d7f076356c54051e8e898eaebf51db848a1eddaa29ec5f876a
7
- data.tar.gz: 82be2e5eaa79629bc44f9083c8387018c276c93223866641b2c44bf2deb874ae9078e608167c9c68969df0c0da9f9d811531fc9b968e1f0d94772b5a4582bc48
6
+ metadata.gz: 722ea744cea74c1b93166e8b66f64b976bd109a7305b4595239761787849a6e7579b32511d901bbb49125b4fb2612bb0d00e19a46176cc8c049769e12a9c3c24
7
+ data.tar.gz: 04c7a066efbd127a66e6a7995e163af603fb20836c40fda39fdc7d869f4129a3e545718eddf9bcba318ca79158218b7e21f1c3489569e0f3f76c77c11cca0848
@@ -0,0 +1,15 @@
1
+ name: Lint
2
+ on: [push]
3
+
4
+ jobs:
5
+ build:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v1
9
+ - name: Set up Ruby
10
+ uses: ruby/setup-ruby@v1
11
+ with:
12
+ ruby-version: 3.1.2
13
+ bundler-cache: true
14
+ - name: Rubocop
15
+ run: bundle exec rubocop
data/.gitignore CHANGED
@@ -7,4 +7,3 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /.idea/
10
- /Gemfile.lock
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ easy_style (0.3.0)
5
+ rubocop (~> 1.39.0)
6
+ rubocop-rails (~> 2.17.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (7.0.4)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ ast (2.4.2)
17
+ concurrent-ruby (1.1.10)
18
+ i18n (1.12.0)
19
+ concurrent-ruby (~> 1.0)
20
+ json (2.6.2)
21
+ minitest (5.16.3)
22
+ parallel (1.22.1)
23
+ parser (3.1.2.1)
24
+ ast (~> 2.4.1)
25
+ rack (3.0.0)
26
+ rainbow (3.1.1)
27
+ rake (12.3.3)
28
+ regexp_parser (2.6.0)
29
+ rexml (3.2.5)
30
+ rubocop (1.39.0)
31
+ json (~> 2.3)
32
+ parallel (~> 1.10)
33
+ parser (>= 3.1.2.1)
34
+ rainbow (>= 2.2.2, < 4.0)
35
+ regexp_parser (>= 1.8, < 3.0)
36
+ rexml (>= 3.2.5, < 4.0)
37
+ rubocop-ast (>= 1.23.0, < 2.0)
38
+ ruby-progressbar (~> 1.7)
39
+ unicode-display_width (>= 1.4.0, < 3.0)
40
+ rubocop-ast (1.23.0)
41
+ parser (>= 3.1.1.0)
42
+ rubocop-rails (2.17.2)
43
+ activesupport (>= 4.2.0)
44
+ rack (>= 1.1)
45
+ rubocop (>= 1.33.0, < 2.0)
46
+ ruby-progressbar (1.11.0)
47
+ tzinfo (2.0.5)
48
+ concurrent-ruby (~> 1.0)
49
+ unicode-display_width (2.3.0)
50
+
51
+ PLATFORMS
52
+ x86_64-darwin-21
53
+ x86_64-linux
54
+
55
+ DEPENDENCIES
56
+ easy_style!
57
+ rake (~> 12.0)
58
+
59
+ BUNDLED WITH
60
+ 2.3.22
data/default.yml CHANGED
@@ -4,17 +4,26 @@ require:
4
4
  Rails:
5
5
  Enabled: true
6
6
  AllCops:
7
- TargetRubyVersion: 2.6
7
+ TargetRubyVersion: 3.1.2
8
8
  NewCops: enable
9
+ SuggestExtensions: false
10
+
11
+ Bundler/GemFilename:
12
+ Enabled: false
13
+
14
+ Gemspec/DeprecatedAttributeAssignment:
15
+ Enabled: false
16
+ Gemspec/RequireMFA:
17
+ Enabled: false
9
18
 
10
19
  Layout/EmptyLinesAroundClassBody:
11
20
  EnforcedStyle: empty_lines_special
12
21
  Layout/EmptyLinesAroundModuleBody:
13
22
  EnforcedStyle: empty_lines_except_namespace
14
- Layout/MultilineMethodCallIndentation:
15
- EnforcedStyle: indented_relative_to_receiver
16
23
  Layout/LineLength:
17
24
  Enabled: false
25
+ Layout/MultilineMethodCallIndentation:
26
+ EnforcedStyle: indented_relative_to_receiver
18
27
 
19
28
  Lint/SuppressedException:
20
29
  AllowComments: true
@@ -39,12 +48,17 @@ Rails/ContentTag:
39
48
 
40
49
  Style/Documentation:
41
50
  Enabled: false
51
+ Style/EmptyMethod:
52
+ EnforcedStyle: expanded
53
+ Style/FetchEnvVar:
54
+ Enabled: false
42
55
  Style/FrozenStringLiteralComment:
43
56
  Enabled: false
44
57
  Style/IfUnlessModifier:
45
58
  Enabled: false
46
59
  Style/HashSyntax:
47
60
  EnforcedStyle: ruby19_no_mixed_keys
61
+ EnforcedShorthandSyntax: either
48
62
  Style/MutableConstant:
49
63
  Enabled: false
50
64
  Style/NegatedIf:
@@ -53,13 +67,11 @@ Style/QuotedSymbols:
53
67
  Enabled: false
54
68
  Style/StringLiterals:
55
69
  Enabled: false
70
+ Style/SymbolArray:
71
+ Enabled: false
56
72
  Style/TrailingCommaInHashLiteral:
57
73
  Enabled: false
58
74
  EnforcedStyleForMultiline: consistent_comma
59
75
  Style/TrailingCommaInArrayLiteral:
60
76
  Enabled: true
61
77
  EnforcedStyleForMultiline: consistent_comma
62
- Style/SymbolArray:
63
- Enabled: false
64
- Style/EmptyMethod:
65
- EnforcedStyle: expanded
data/easy_style.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = 'Rubocop configs'
11
11
  spec.homepage = 'https://github.com/easysoftware/easy_style'
12
12
  spec.license = 'MIT'
13
- spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
13
+ spec.required_ruby_version = "~> 3.1.2"
14
14
 
15
15
  # spec.metadata['allowed_push_host'] = 'TODO: Set to \'http://mygemserver.com\''
16
16
 
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'rubocop', '~> 1.17.0'
31
- spec.add_dependency 'rubocop-rails', '~> 2.9.1'
30
+ spec.add_dependency 'rubocop', '~> 1.39.0'
31
+ spec.add_dependency 'rubocop-rails', '~> 2.17.2'
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module EasyStyle
2
2
 
3
- VERSION = '0.1.7'
3
+ VERSION = '0.3.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Easy Software Ltd
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2022-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.17.0
19
+ version: 1.39.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.17.0
26
+ version: 1.39.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.9.1
33
+ version: 2.17.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.9.1
40
+ version: 2.17.2
41
41
  description: Rubocop configs
42
42
  email:
43
43
  - info@easyredmine.com
@@ -45,15 +45,16 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".github/workflows/lint.yml"
48
49
  - ".gitignore"
49
50
  - ".rubocop.yml"
50
51
  - Gemfile
52
+ - Gemfile.lock
51
53
  - LICENSE.txt
52
54
  - README.md
53
55
  - Rakefile
54
56
  - default.yml
55
57
  - easy_style.gemspec
56
- - forgiving.yml
57
58
  - lib/easy_style.rb
58
59
  - lib/easy_style/version.rb
59
60
  homepage: https://github.com/easysoftware/easy_style
@@ -69,9 +70,9 @@ require_paths:
69
70
  - lib
70
71
  required_ruby_version: !ruby/object:Gem::Requirement
71
72
  requirements:
72
- - - ">="
73
+ - - "~>"
73
74
  - !ruby/object:Gem::Version
74
- version: 2.5.0
75
+ version: 3.1.2
75
76
  required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  requirements:
77
78
  - - ">="
data/forgiving.yml DELETED
@@ -1,79 +0,0 @@
1
- inherit_from: default.yml
2
-
3
- ### Bundler
4
-
5
- Bundler/OrderedGems:
6
- Enabled: false
7
-
8
- ### Gemspec
9
-
10
- Gemspec/OrderedDependencies:
11
- Enabled: false
12
-
13
- ### Layout
14
-
15
- Layout:
16
- Enabled: false
17
-
18
- ### Lint
19
-
20
- Lint/AmbiguousBlockAssociation:
21
- Enabled: false
22
- Lint/AmbiguousOperator:
23
- Enabled: false
24
- Lint/AmbiguousRegexpLiteral:
25
- Enabled: false
26
- Lint/AssignmentInCondition:
27
- Enabled: false
28
- Lint/EmptyWhen:
29
- Enabled: false
30
- Lint/Loop:
31
- Enabled: false
32
- Lint/RedundantCopDisableDirective:
33
- Enabled: false
34
- Lint/UnusedBlockArgument:
35
- Enabled: false
36
- Lint/UnusedMethodArgument:
37
- Enabled: false
38
-
39
- ### Metrics
40
-
41
- Metrics/AbcSize:
42
- Max: 50
43
- Metrics/BlockLength:
44
- Max: 50
45
- CountAsOne: ['array', 'hash', 'heredoc']
46
- Exclude:
47
- # Rake
48
- - '**/Rakefile'
49
- - '**/*.rake'
50
- # RSpec
51
- - 'spec/**/*.rb'
52
- # Rails
53
- - 'config/routes.rb'
54
- Metrics/BlockNesting:
55
- Max: 10
56
- Metrics/ClassLength:
57
- Enabled: false
58
- Metrics/CyclomaticComplexity:
59
- Max: 20
60
- Metrics/MethodLength:
61
- Max: 100
62
- CountAsOne: ['array', 'hash', 'heredoc']
63
- Metrics/ModuleLength:
64
- Max: 300
65
- CountAsOne: ['array', 'hash', 'heredoc']
66
- Metrics/ParameterLists:
67
- Max: 20
68
- Metrics/PerceivedComplexity:
69
- Max: 30
70
-
71
- ### Naming
72
-
73
- Naming:
74
- Enabled: false
75
-
76
- ### Style
77
-
78
- Style:
79
- Enabled: false