rubocop-nosolosoftware 0.3.0 → 0.8.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: 95493de8291d171c46706f3e3886f5bf8e0a2b69c5eee7ac4343ce49374f7aad
4
- data.tar.gz: 9726ee49118b1dbe8091d7b08aeb4317cc2c3db9cb5a4481e33cf1c681397168
3
+ metadata.gz: 36dd7dd406748669e08b9f2c1d1ac6af56b69fc7bdf5e935f9e89a51b1645fd9
4
+ data.tar.gz: b822e653ecfd14baecbe4166a40956dbe2b2ebcb94cb0e9c70feebb4c8766e6b
5
5
  SHA512:
6
- metadata.gz: 76780d778a59dbc7286198e0e023abb61910b77033a4a9d24d2e348fc9e44b786f05dec03993fc0ecebab5fff51fcfee3b5c1554d63c60bd9ede342b03e76a0b
7
- data.tar.gz: 663483989289eb79930e0f2f314e2150a3c92105887edebe004ba51d7aef2f096b72084af40a26cdbfb5bb18f59db68e251d9b0e1b885ef3763dc942b48c43f4
6
+ metadata.gz: ea6af87a67f7706395bba8f20f399291d01462c51aaeffa43d208318d59e04143858069bc2eaf18c3c5ff8b8ce5953b82de7c10271dcf44657ad4ef8e791c73d
7
+ data.tar.gz: a380a542038def25b26c2f628dabc454da5de51d1c8c117da25bc7b571e24ec204c66ddf82de120b5b5f6e869cec69ea5fb4ac1c01c90f5f76daae072cb5b52f
@@ -5,29 +5,78 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.8.0 - 2020-08-07
8
9
 
9
- ## [Unreleased]
10
+ ### Added
11
+ - Added new rules introduced in the last version.
12
+ - Lint/BinaryOperatorWithIdenticalOperands (0.89)
13
+ - Lint/DuplicateRescueException (0.89)
14
+ - Lint/EmptyConditionalBody (0.89)
15
+ - Lint/FloatComparison (0.89)
16
+ - Lint/MissingSuper (0.89)
17
+ - Lint/OutOfRangeRegexpRef (0.89)
18
+ - Lint/SelfAssignment (0.89)
19
+ - Lint/TopLevelReturnWithArgument (0.89)
20
+ - Lint/UnreachableLoop (0.89)
21
+ - Style/ExplicitBlockArgument (0.89)
22
+ - Style/GlobalStdStream (0.89)
23
+ - Style/OptionalBooleanParameter (0.89)
24
+ - Style/SingleArgumentDig (0.89)
25
+ - Style/StringConcatenation (0.89)
10
26
 
27
+ ## 0.7.0 - 2020-08-03
11
28
 
12
- ## [0.3.0] - 2020-02-07
29
+ ### Added
30
+ - Added rubocop-faker as new extension
31
+
32
+ ### Changed
33
+ - Updated all the extensions, and configured new rules
34
+
35
+ ## 0.6.0 - 2020-07-13
36
+
37
+ ### Added
38
+ - Added new rules introduced in the last version.
39
+ - Lint/DeprecatedOpenSSLConstant (0.84)
40
+ - Lint/MixedRegexpCaptureTypes (0.85)
41
+ - Style/AccessorGrouping (0.87)
42
+ - Style/BisectedAttrAccessor (0.87)
43
+ - Style/RedundantAssignment (0.87)
44
+ - Style/RedundantFetchBlock (0.86)
45
+ - Style/RedundantRegexpCharacterClass (0.85)
46
+ - Style/RedundantRegexpEscape (0.85)
47
+ - Performance/AncestorsInclude (1.7)
48
+ - Performance/BigDecimalWithNumericArgument (1.7)
49
+ - Performance/RedundantSortBlock (1.7)
50
+ - Performance/RedundantStringChars (1.7)
51
+ - Performance/ReverseFirst (1.7)
52
+ - Performance/SortReverse (1.7)
53
+ - Performance/Squeeze (1.7)
54
+ - Performance/StringInclude (1.7)
55
+
56
+ ## 0.5.0 - 2020-07-07
57
+
58
+ ### Changed
59
+ - Actualizadas reglas
60
+
61
+ ## 0.4.0 - 2020-02-26
62
+
63
+ ### Changed
64
+ - Remove Style/BracesAroundHashParameters cop
65
+
66
+ ## 0.3.0 - 2020-02-07
13
67
 
14
68
  ### Changed
15
69
  - Set enforced style to braces_for_chaining in Style/BlockDelimiters cop.
16
70
  - Relax required versions of rubocop gems.
17
71
 
18
-
19
- ## [0.2.0] - 2019-12-23
72
+ ## 0.2.0 - 2019-12-23
20
73
 
21
74
  ### Changed
22
75
  - Move LineLength cop from Metrics to Layout and require rubocop 0.78.0.
23
76
 
24
-
25
77
  ## [0.1.0] - 2019-12-03
26
78
 
27
79
  First version of this gem.
28
80
 
29
81
 
30
- [Unreleased]: https://github.com/nosolosoftware/rubocop-nosolosoftware/compare/v0.3.0...HEAD
31
- [0.3.0]: https://github.com/nosolosoftware/rubocop-nosolosoftware/compare/v0.2.0...v0.3.0
32
- [0.2.0]: https://github.com/nosolosoftware/rubocop-nosolosoftware/compare/v0.1.0...v0.2.0
33
- [0.1.0]: https://github.com/nosolosoftware/rubocop-nosolosoftware/releases/tag/v0.1.0
82
+ This changelog was generated using [ChangeFu](https://github.com/javierav/changefu).
data/README.md CHANGED
@@ -26,16 +26,16 @@ $ gem install rubocop-nosolosoftware
26
26
 
27
27
  ## Usage
28
28
 
29
- Include the following in your `.rubocop.yml`:
29
+ Include the following in your `.rubocop.yml`
30
30
 
31
- **For Ruby**
31
+ **For Ruby**:
32
32
 
33
33
  ```yaml
34
34
  inherit_gem:
35
35
  rubocop-nosolosoftware: rubocop-default.yml
36
36
  ```
37
37
 
38
- **For Rails**
38
+ **For Rails**:
39
39
 
40
40
  ```yaml
41
41
  inherit_gem:
@@ -44,7 +44,7 @@ inherit_gem:
44
44
  - rubocop-rails.yml
45
45
  ```
46
46
 
47
- **Optional Rake and Rspec rules**
47
+ **Optional Rake, Faker and Rspec rules**:
48
48
 
49
49
  ```yaml
50
50
  inherit_gem:
@@ -53,6 +53,32 @@ inherit_gem:
53
53
  - rubocop-rails.yml
54
54
  - rubocop-rake.yml
55
55
  - rubocop-rspec.yml
56
+ - rubocop-faker.yml
57
+ ```
58
+
59
+ **For Mongoid projects**:
60
+
61
+ ```yaml
62
+ inherit_gem:
63
+ rubocop-nosolosoftware:
64
+ - rubocop-default.yml
65
+ - rubocop-rails.yml
66
+ - rubocop-rake.yml
67
+ - rubocop-rspec.yml
68
+ - rubocop-faker.yml
69
+ - rubocop-mongoid.yml
70
+ ```
71
+
72
+
73
+ ### Inheritance of array attributes
74
+
75
+ Don't forget to include the following in your configuration file:
76
+
77
+ ```yaml
78
+ inherit_mode:
79
+ merge:
80
+ - Exclude
81
+ - Prefixes
56
82
  ```
57
83
 
58
84
 
@@ -72,4 +98,4 @@ be a safe, welcoming space for collaboration, and contributors are expected to a
72
98
 
73
99
  ## License
74
100
 
75
- Copyright (c) 2019-2020 NoSoloSoftware Network S.L. - Released under [MIT](LICENSE) license
101
+ Copyright (c) 2019-2020 NoSoloSoftware Network S.L. - Released under [MIT](LICENSE) license.
@@ -1,7 +1,3 @@
1
1
  #
2
2
  ## https://rubocop.readthedocs.io/en/latest/cops_bundler/
3
3
  #
4
-
5
- # https://rubocop.readthedocs.io/en/latest/cops_bundler/#bundlerorderedgems
6
- Bundler/OrderedGems:
7
- Enabled: false
@@ -0,0 +1,5 @@
1
+ #
2
+ ## https://www.rubydoc.info/gems/rubocop-faker/
3
+ #
4
+
5
+ require: rubocop-faker
@@ -2,6 +2,14 @@
2
2
  ## https://rubocop.readthedocs.io/en/latest/cops_layout/
3
3
  #
4
4
 
5
+ # https://docs.rubocop.org/en/stable/cops_layout/#layoutemptylinesaroundattributeaccessor
6
+ Layout/EmptyLinesAroundAttributeAccessor:
7
+ Enabled: true
8
+
9
+ # https://docs.rubocop.org/en/stable/cops_layout/#layoutspacearoundmethodcalloperator
10
+ Layout/SpaceAroundMethodCallOperator:
11
+ Enabled: true
12
+
5
13
  # https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutfirstarrayelementindentation
6
14
  Layout/FirstArrayElementIndentation:
7
15
  EnforcedStyle: consistent
@@ -10,6 +18,10 @@ Layout/FirstArrayElementIndentation:
10
18
  Layout/LineLength:
11
19
  Max: 100
12
20
 
21
+ # https://rubocop.readthedocs.io/en/stable/cops_layout/#layoutmultilinemethodcallindentation
22
+ Layout/MultilineMethodCallIndentation:
23
+ EnforcedStyle: indented_relative_to_receiver
24
+
13
25
  # https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutspacearoundequalsinparameterdefault
14
26
  Layout/SpaceAroundEqualsInParameterDefault:
15
27
  EnforcedStyle: no_space
@@ -1,3 +1,59 @@
1
1
  #
2
2
  ## https://rubocop.readthedocs.io/en/latest/cops_lint/
3
3
  #
4
+
5
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintraiseexception
6
+ Lint/RaiseException:
7
+ Enabled: true
8
+
9
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintstructnewoverride
10
+ Lint/StructNewOverride:
11
+ Enabled: true
12
+
13
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintdeprecatedopensslconstant
14
+ Lint/DeprecatedOpenSSLConstant:
15
+ Enabled: true
16
+
17
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedregexpcapturetypes
18
+ Lint/MixedRegexpCaptureTypes:
19
+ Enabled: true
20
+
21
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicateelsifcondition
22
+ Lint/DuplicateElsifCondition:
23
+ Enabled: true
24
+
25
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintbinaryoperatorwithidenticaloperands
26
+ Lint/BinaryOperatorWithIdenticalOperands:
27
+ Enabled: true
28
+
29
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicaterescueexception
30
+ Lint/DuplicateRescueException:
31
+ Enabled: true
32
+
33
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintemptyconditionalbody
34
+ Lint/EmptyConditionalBody:
35
+ Enabled: true
36
+
37
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintfloatcomparison
38
+ Lint/FloatComparison:
39
+ Enabled: true
40
+
41
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintoutofrangeregexpref
42
+ Lint/OutOfRangeRegexpRef:
43
+ Enabled: true
44
+
45
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintselfassignment
46
+ Lint/SelfAssignment:
47
+ Enabled: true
48
+
49
+ # https://docs.rubocop.org/rubocop/cops_lint.html#linttoplevelreturnwithargument
50
+ Lint/TopLevelReturnWithArgument:
51
+ Enabled: true
52
+
53
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintunreachableloop
54
+ Lint/UnreachableLoop:
55
+ Enabled: true
56
+
57
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintmissingsuper
58
+ Lint/MissingSuper:
59
+ Enabled: true
@@ -0,0 +1,7 @@
1
+ #
2
+ ## Rubocop cops for Mongoid projects
3
+ #
4
+
5
+ # https://docs.rubocop.org/projects/rails/en/latest/cops_rails/#railsfindeach
6
+ Rails/FindEach:
7
+ Enabled: false
@@ -3,3 +3,35 @@
3
3
  #
4
4
 
5
5
  require: rubocop-performance
6
+
7
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performanceancestorsinclude
8
+ Performance/AncestorsInclude:
9
+ Enabled: true
10
+
11
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancebigdecimalwithnumericargument
12
+ Performance/BigDecimalWithNumericArgument:
13
+ Enabled: false
14
+
15
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performanceredundantsortblock
16
+ Performance/RedundantSortBlock:
17
+ Enabled: true
18
+
19
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performanceredundantstringchars
20
+ Performance/RedundantStringChars:
21
+ Enabled: true
22
+
23
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancereversefirst
24
+ Performance/ReverseFirst:
25
+ Enabled: true
26
+
27
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancesortreverse
28
+ Performance/SortReverse:
29
+ Enabled: true
30
+
31
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancesqueeze
32
+ Performance/Squeeze:
33
+ Enabled: true
34
+
35
+ # https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancestringinclude
36
+ Performance/StringInclude:
37
+ Enabled: true
@@ -9,33 +9,36 @@ Rails:
9
9
 
10
10
  # https://docs.rubocop.org/projects/rails/en/latest/cops_rails/#railshttpstatus
11
11
  Rails/HttpStatus:
12
- Enabled: false
12
+ EnforcedStyle: numeric
13
13
 
14
- # https://docs.rubocop.org/projects/rails/en/latest/cops_rails/#railshasandbelongstomany
15
- Rails/HasAndBelongsToMany:
16
- Enabled: false
17
-
18
- # https://docs.rubocop.org/projects/rails/en/latest/cops_rails/#railsfindby
19
- Rails/FindBy:
20
- Enabled: false
14
+ # https://rubocop-rails.readthedocs.io/en/stable/cops_rails/#railsrakeenvironment
15
+ Rails/RakeEnvironment:
16
+ Exclude:
17
+ - "**/lib/tasks/auto_annotate_models.rake"
21
18
 
22
19
  AllCops:
23
20
  Exclude:
24
- - "**/db/schema.rb"
25
21
  - "**/bin/**/*"
22
+ - "**/db/schema.rb"
23
+
24
+ # https://rubocop.readthedocs.io/en/stable/cops_layout/#layouthashalignment
25
+ Layout/HashAlignment:
26
+ Exclude:
27
+ - "**/lib/tasks/auto_annotate_models.rake"
26
28
 
27
29
  # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsblocklength
28
30
  Metrics/BlockLength:
29
31
  Exclude:
30
- - "**/spec/**/*.rb"
31
- - "**/config/routes.rb"
32
32
  - "**/config/environments/*.rb"
33
+ - "**/config/routes.rb"
34
+ - "**/lib/tasks/auto_annotate_models.rake"
35
+ - "**/spec/**/*.rb"
33
36
 
34
37
  # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmodulelength
35
38
  Metrics/ModuleLength:
36
39
  Exclude:
37
- - "**/spec/**/*.rb"
38
40
  - "**/config/routes.rb"
41
+ - "**/spec/**/*.rb"
39
42
 
40
43
  # https://www.rubocop.org/en/stable/cops_naming/#namingfilename
41
44
  Naming/FileName:
@@ -46,3 +49,51 @@ Naming/FileName:
46
49
  Style/SymbolProc:
47
50
  Exclude:
48
51
  - "**/config/**/*.rb"
52
+
53
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsactiverecordcallbacksorder
54
+ Rails/ActiveRecordCallbacksOrder:
55
+ Enabled: true
56
+
57
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsfindbyid
58
+ Rails/FindById:
59
+ Enabled: true
60
+
61
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsinquiry
62
+ Rails/Inquiry:
63
+ Enabled: true
64
+
65
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsmailername
66
+ Rails/MailerName:
67
+ Enabled: true
68
+
69
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsmatchroute
70
+ Rails/MatchRoute:
71
+ Enabled: true
72
+
73
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsnegateinclude
74
+ Rails/NegateInclude:
75
+ Enabled: true
76
+
77
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railspick
78
+ Rails/Pluck:
79
+ Enabled: true
80
+
81
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railspluckinwhere
82
+ Rails/PluckInWhere:
83
+ Enabled: true
84
+
85
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrenderinline
86
+ Rails/RenderInline:
87
+ Enabled: true
88
+
89
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrenderplaintext
90
+ Rails/RenderPlainText:
91
+ Enabled: true
92
+
93
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsshorti18n
94
+ Rails/ShortI18n:
95
+ Enabled: true
96
+
97
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswhereexists
98
+ Rails/WhereExists:
99
+ Enabled: true
@@ -1 +1,6 @@
1
1
  require: rubocop-rake
2
+
3
+ # https://github.com/rubocop-hq/rubocop-rake/blob/master/lib/rubocop/cop/rake/desc.rb
4
+ Rake/Desc:
5
+ Exclude:
6
+ - "**/lib/tasks/auto_annotate_models.rake"
@@ -4,6 +4,40 @@
4
4
 
5
5
  require: rubocop-rspec
6
6
 
7
+ # https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspeccontextwording
8
+ RSpec/ContextWording:
9
+ Prefixes:
10
+ - and
11
+
12
+ # https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecdescribeclass
13
+ RSpec/DescribeClass:
14
+ Exclude:
15
+ - "**/spec/requests/**/*.rb"
16
+ - "**/spec/system/**/*.rb"
17
+ - "**/spec/features/**/*.rb"
18
+
19
+ # https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecexamplelength
20
+ RSpec/ExampleLength:
21
+ Exclude:
22
+ - "**/spec/requests/**/*.rb"
23
+ - "**/spec/system/**/*.rb"
24
+ - "**/spec/features/**/*.rb"
25
+
26
+ # https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecimplicitsubject
27
+ RSpec/ImplicitSubject:
28
+ EnforcedStyle: single_statement_only
29
+
30
+ # https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecmultipleexpectations
31
+ RSpec/MultipleExpectations:
32
+ Exclude:
33
+ - "**/spec/requests/**/*.rb"
34
+ - "**/spec/system/**/*.rb"
35
+ - "**/spec/features/**/*.rb"
36
+
37
+ # https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecnestedgroups
38
+ RSpec/NestedGroups:
39
+ Max: 5
40
+
7
41
  # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockcomments
8
42
  Style/BlockComments:
9
43
  Exclude:
@@ -6,38 +6,102 @@
6
6
  Style/AsciiComments:
7
7
  Enabled: false
8
8
 
9
- # https://rubocop.readthedocs.io/en/latest/cops_style/#stylebracesaroundhashparameters
10
- Style/BracesAroundHashParameters:
11
- EnforcedStyle: context_dependent
12
-
13
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styledatetime
14
- Style/DateTime:
15
- Enabled: false
9
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockdelimiters
10
+ Style/BlockDelimiters:
11
+ EnforcedStyle: braces_for_chaining
16
12
 
17
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styledocumentation
13
+ # https://docs.rubocop.org/rubocop/cops_style.html#styledocumentation
18
14
  Style/Documentation:
19
15
  Enabled: false
20
16
 
21
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styleemptymethod
22
- Style/EmptyMethod:
23
- Enabled: false
24
-
25
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styleformatstringtoken
26
- Style/FormatStringToken:
27
- Enabled: false
17
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
18
+ Style/ExponentialNotation:
19
+ Enabled: true
28
20
 
29
- # https://rubocop.readthedocs.io/en/latest/cops_style/#stylefrozenstringliteralcomment
21
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylefrozenstringliteralcommetn
30
22
  Style/FrozenStringLiteralComment:
31
23
  Enabled: false
32
24
 
33
- # https://rubocop.readthedocs.io/en/latest/cops_style/#stylemutableconstant
34
- Style/MutableConstant:
35
- Enabled: false
25
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehasheachmethods
26
+ Style/HashEachMethods:
27
+ Enabled: true
28
+
29
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformkeys
30
+ Style/HashTransformKeys:
31
+ Enabled: true
36
32
 
37
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styleregexpliteral
33
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformvalues
34
+ Style/HashTransformValues:
35
+ Enabled: true
36
+
37
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
38
38
  Style/RegexpLiteral:
39
+ AllowInnerSlashes: true
40
+
41
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleslicingwithrange
42
+ Style/SlicingWithRange:
43
+ Enabled: true
44
+
45
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleaccessorgrouping
46
+ Style/AccessorGrouping:
39
47
  Enabled: false
40
48
 
41
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockdelimiters
42
- Style/BlockDelimiters:
43
- EnforcedStyle: braces_for_chaining
49
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylebisectedattraccessor
50
+ Style/BisectedAttrAccessor:
51
+ Enabled: true
52
+
53
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantassignment
54
+ Style/RedundantAssignment:
55
+ Enabled: true
56
+
57
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantfetchblock
58
+ Style/RedundantFetchBlock:
59
+ Enabled: true
60
+
61
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantregexpcharacterclass
62
+ Style/RedundantRegexpCharacterClass:
63
+ Enabled: true
64
+
65
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantregexpescape
66
+ Style/RedundantRegexpEscape:
67
+ Enabled: true
68
+
69
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylearraycoercion
70
+ Style/ArrayCoercion:
71
+ Enabled: true
72
+
73
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylecaselikeif
74
+ Style/CaseLikeIf:
75
+ Enabled: true
76
+
77
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashaslastarrayitem
78
+ Style/HashAsLastArrayItem:
79
+ Enabled: true
80
+
81
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashlikecase
82
+ Style/HashLikeCase:
83
+ Enabled: true
84
+
85
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantfileextensioninrequire
86
+ Style/RedundantFileExtensionInRequire:
87
+ Enabled: true
88
+
89
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleexplicitblockargument
90
+ Style/ExplicitBlockArgument:
91
+ Enabled: true
92
+
93
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleglobalstdstream
94
+ Style/GlobalStdStream:
95
+ Enabled: true
96
+
97
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleoptionalbooleanparameter
98
+ Style/OptionalBooleanParameter:
99
+ Enabled: true
100
+
101
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylesingleargumentdig
102
+ Style/SingleArgumentDig:
103
+ Enabled: true
104
+
105
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylestringconcatenation
106
+ Style/StringConcatenation:
107
+ Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-nosolosoftware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Aranda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-07 00:00:00.000000000 Z
11
+ date: 2020-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,42 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.78'
19
+ version: '0.89'
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: '0.78'
26
+ version: '0.89'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-faker
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rubocop-performance
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '1.5'
47
+ version: '1.7'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '1.5'
54
+ version: '1.7'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rubocop-rails
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '2.4'
61
+ version: '2.7'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '2.4'
68
+ version: '2.7'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop-rake
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +86,14 @@ dependencies:
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '1.37'
89
+ version: '1.42'
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '1.37'
96
+ version: '1.42'
83
97
  description: ''
84
98
  email: jaranda@nosolosoftware.es
85
99
  executables: []
@@ -94,10 +108,12 @@ files:
94
108
  - rubocop-all.yml
95
109
  - rubocop-bundler.yml
96
110
  - rubocop-default.yml
111
+ - rubocop-faker.yml
97
112
  - rubocop-gemspec.yml
98
113
  - rubocop-layout.yml
99
114
  - rubocop-lint.yml
100
115
  - rubocop-metrics.yml
116
+ - rubocop-mongoid.yml
101
117
  - rubocop-naming.yml
102
118
  - rubocop-performance.yml
103
119
  - rubocop-rails.yml
@@ -109,8 +125,8 @@ homepage: https://github.com/nosolosoftware/rubocop-nosolosoftware
109
125
  licenses:
110
126
  - MIT
111
127
  metadata:
112
- source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v0.3.0
113
- changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v0.3.0/CHANGELOG.md
128
+ source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v0.8.0
129
+ changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v0.8.0/CHANGELOG.md
114
130
  homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
115
131
  post_install_message:
116
132
  rdoc_options: