easy_style 0.2.0 → 0.4.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: e96c679079c639200829ecde194677a8ad4e31861149c829ee634d728bfe19cf
4
- data.tar.gz: 13dc1a307c583e319b9fe1364dcd0c65400c4b65288b46f8946ce6549549b842
3
+ metadata.gz: 38cfa78de53c4fba91661264d36ceebae0e4d22b4171c8c5ee8d5cf545dcefa0
4
+ data.tar.gz: 82f8ed78036720e254eb0c37e237e28f58f3b44f82b42c76d941a92fce74fbbd
5
5
  SHA512:
6
- metadata.gz: 8935700150dc3cd2d28650da992e96a16b42256d48efe6735d6fecb5a2286880abc40d70ca286621253e46147aed0276ab514de6e542ac6504cceefab9a6ed11
7
- data.tar.gz: e4afcc5a342bfbda25aa3e0ee6cbb6cf9d1a6ca68924b068a495e3c8616254511c5cf52660169c96978bda0f80c390f2301545d08d431a6a58d38412eae06c59
6
+ metadata.gz: f06bdf8c72aaa14463af28e5c3fa78eea8e1fcbf664d579cc2430cce8b9cac33559abb0c5ffcec42669c237f032f6c0e46cef547b1b38b42f2a4ca0ed4375f32
7
+ data.tar.gz: 70ea84a5b76535ea0155a1ed8bdd9f9ba450f64fc8f459b92577a413a84bfcba0327ca7ee3603e56a092a5b50d4bab063dbedc698119e7e03db76b0b3b23f6e7
@@ -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,65 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ easy_style (0.4.0)
5
+ rubocop (~> 1.53.0)
6
+ rubocop-rails (~> 2.20.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (7.0.5.1)
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.2.2)
18
+ i18n (1.14.1)
19
+ concurrent-ruby (~> 1.0)
20
+ json (2.6.3)
21
+ language_server-protocol (3.17.0.3)
22
+ minitest (5.18.1)
23
+ parallel (1.23.0)
24
+ parser (3.2.2.3)
25
+ ast (~> 2.4.1)
26
+ racc
27
+ racc (1.7.1)
28
+ rack (3.0.8)
29
+ rainbow (3.1.1)
30
+ rake (12.3.3)
31
+ regexp_parser (2.8.1)
32
+ rexml (3.2.5)
33
+ rubocop (1.53.1)
34
+ json (~> 2.3)
35
+ language_server-protocol (>= 3.17.0)
36
+ parallel (~> 1.10)
37
+ parser (>= 3.2.2.3)
38
+ rainbow (>= 2.2.2, < 4.0)
39
+ regexp_parser (>= 1.8, < 3.0)
40
+ rexml (>= 3.2.5, < 4.0)
41
+ rubocop-ast (>= 1.28.0, < 2.0)
42
+ ruby-progressbar (~> 1.7)
43
+ unicode-display_width (>= 2.4.0, < 3.0)
44
+ rubocop-ast (1.29.0)
45
+ parser (>= 3.2.1.0)
46
+ rubocop-rails (2.20.2)
47
+ activesupport (>= 4.2.0)
48
+ rack (>= 1.1)
49
+ rubocop (>= 1.33.0, < 2.0)
50
+ ruby-progressbar (1.13.0)
51
+ tzinfo (2.0.6)
52
+ concurrent-ruby (~> 1.0)
53
+ unicode-display_width (2.4.2)
54
+
55
+ PLATFORMS
56
+ arm64-darwin-22
57
+ x86_64-darwin-21
58
+ x86_64-linux
59
+
60
+ DEPENDENCIES
61
+ easy_style!
62
+ rake (~> 12.0)
63
+
64
+ BUNDLED WITH
65
+ 2.4.14
data/default.yml CHANGED
@@ -4,22 +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
9
10
 
10
- Gemspec/RequireMFA:
11
+ Bundler/GemFilename:
11
12
  Enabled: false
13
+
12
14
  Gemspec/DeprecatedAttributeAssignment:
13
15
  Enabled: false
16
+ Gemspec/RequireMFA:
17
+ Enabled: false
14
18
 
15
19
  Layout/EmptyLinesAroundClassBody:
16
20
  EnforcedStyle: empty_lines_special
17
21
  Layout/EmptyLinesAroundModuleBody:
18
22
  EnforcedStyle: empty_lines_except_namespace
19
- Layout/MultilineMethodCallIndentation:
20
- EnforcedStyle: indented_relative_to_receiver
21
23
  Layout/LineLength:
22
24
  Enabled: false
25
+ Layout/MultilineMethodCallIndentation:
26
+ EnforcedStyle: indented_relative_to_receiver
23
27
 
24
28
  Lint/SuppressedException:
25
29
  AllowComments: true
@@ -44,12 +48,17 @@ Rails/ContentTag:
44
48
 
45
49
  Style/Documentation:
46
50
  Enabled: false
51
+ Style/EmptyMethod:
52
+ EnforcedStyle: expanded
53
+ Style/FetchEnvVar:
54
+ Enabled: false
47
55
  Style/FrozenStringLiteralComment:
48
56
  Enabled: false
49
57
  Style/IfUnlessModifier:
50
58
  Enabled: false
51
59
  Style/HashSyntax:
52
60
  EnforcedStyle: ruby19_no_mixed_keys
61
+ EnforcedShorthandSyntax: either
53
62
  Style/MutableConstant:
54
63
  Enabled: false
55
64
  Style/NegatedIf:
@@ -58,13 +67,11 @@ Style/QuotedSymbols:
58
67
  Enabled: false
59
68
  Style/StringLiterals:
60
69
  Enabled: false
70
+ Style/SymbolArray:
71
+ Enabled: false
61
72
  Style/TrailingCommaInHashLiteral:
62
73
  Enabled: false
63
74
  EnforcedStyleForMultiline: consistent_comma
64
75
  Style/TrailingCommaInArrayLiteral:
65
76
  Enabled: true
66
77
  EnforcedStyleForMultiline: consistent_comma
67
- Style/SymbolArray:
68
- Enabled: false
69
- Style/EmptyMethod:
70
- 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.38.0'
31
- spec.add_dependency 'rubocop-rails', '~> 2.17.2'
30
+ spec.add_dependency 'rubocop', '~> 1.53.0'
31
+ spec.add_dependency 'rubocop-rails', '~> 2.20.0'
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module EasyStyle
2
2
 
3
- VERSION = '0.2.0'
3
+ VERSION = '0.4.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.2.0
4
+ version: 0.4.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: 2023-06-28 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.38.0
19
+ version: 1.53.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.38.0
26
+ version: 1.53.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.17.2
33
+ version: 2.20.0
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.17.2
40
+ version: 2.20.0
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