easy_style 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e96c679079c639200829ecde194677a8ad4e31861149c829ee634d728bfe19cf
4
- data.tar.gz: 13dc1a307c583e319b9fe1364dcd0c65400c4b65288b46f8946ce6549549b842
3
+ metadata.gz: '0184dbc2d45275b621e5488e896cd0a9ac66e79afa598601dbf550aad12a179a'
4
+ data.tar.gz: 0744b421637b3c29bc6662c8e34b9dc3e72b031d03fc0841bb159a66d37315c8
5
5
  SHA512:
6
- metadata.gz: 8935700150dc3cd2d28650da992e96a16b42256d48efe6735d6fecb5a2286880abc40d70ca286621253e46147aed0276ab514de6e542ac6504cceefab9a6ed11
7
- data.tar.gz: e4afcc5a342bfbda25aa3e0ee6cbb6cf9d1a6ca68924b068a495e3c8616254511c5cf52660169c96978bda0f80c390f2301545d08d431a6a58d38412eae06c59
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,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'
30
+ spec.add_dependency 'rubocop', '~> 1.39.0'
31
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.2.0'
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.2.0
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,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.38.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.38.0
26
+ version: 1.39.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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