rubocop-nosolosoftware 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a61c152b479d508b2373acd221dab0683938ba1a1e872bd008c5dd956a838688
4
+ data.tar.gz: 5a9f041171d20215d43d53a49925a4ccaed5c69fc9af3af6f3817c9a32822d95
5
+ SHA512:
6
+ metadata.gz: 238b58095cc0ed0acb55597d01edf4197a264ca0a372fdc90bf65b3a6a11dbca5d0d32928ee5a26f8b164d7d6540836d168cc55498f6b69b08c586930109bb4d
7
+ data.tar.gz: 8a7333d4eaba7f2bdd972187fd858147fdc9186182b9564d96ead26b710ddb341105d7c96e8a550de5ce45888be2fa30d6545a30b03be9d2030e2b450104e527
data/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+
9
+ ## [Unreleased]
10
+
11
+
12
+ ## [0.1.0] - 2019-12-03
13
+
14
+ First version of this gem.
15
+
16
+
17
+ [Unreleased]: https://github.com/nosolosoftware/rubocop-nosolosoftware/compare/v0.1.0...HEAD
18
+ [0.1.0]: https://github.com/nosolosoftware/rubocop-nosolosoftware/releases/tag/v0.1.0
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2019 NoSoloSoftware Network S.L.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # rubocop-nosolosoftware ![Gem](https://img.shields.io/gem/v/rubocop-nosolosoftware.svg)
2
+
3
+ Common Rubocop config for all our projects.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's `Gemfile`:
9
+
10
+ ```ruby
11
+ gem 'rubocop-nosolosoftware', require: false
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ ```bash
17
+ $ bundle
18
+ ```
19
+
20
+ Or install it yourself as:
21
+
22
+ ```bash
23
+ $ gem install rubocop-nosolosoftware
24
+ ```
25
+
26
+
27
+ ## Usage
28
+
29
+ Include the following in your `.rubocop.yml`:
30
+
31
+ **For Ruby**
32
+
33
+ ```yaml
34
+ inherit_gem:
35
+ rubocop-nosolosoftware: rubocop-default.yml
36
+ ```
37
+
38
+ **For Rails**
39
+
40
+ ```yaml
41
+ inherit_gem:
42
+ rubocop-nosolosoftware:
43
+ - rubocop-default.yml
44
+ - rubocop-rails.yml
45
+ ```
46
+
47
+ **Optional Rake and Rspec rules**
48
+
49
+ ```yaml
50
+ inherit_gem:
51
+ rubocop-nosolosoftware:
52
+ - rubocop-default.yml
53
+ - rubocop-rails.yml
54
+ - rubocop-rake.yml
55
+ - rubocop-rspec.yml
56
+ ```
57
+
58
+
59
+ ## Contributing
60
+
61
+ Bug reports and merge requests are welcome on Github at
62
+ https://github.com/nosolosoftware/rubocop-nosolosoftware using
63
+ [GitHub Flow](https://guides.github.com/introduction/flow/index.html). This project is intended to
64
+ be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
65
+ [Contributor Covenant](http://contributor-covenant.org) code of conduct.
66
+
67
+
68
+ ## Versioning
69
+
70
+ **rubocop-nosolosoftware** uses [Semantic Versioning 2.0.0](http://semver.org)
71
+
72
+
73
+ ## License
74
+
75
+ Copyright (c) 2019 NoSoloSoftware Network S.L. - Released under [MIT](LICENSE) license
@@ -0,0 +1,22 @@
1
+ module RubocopNoSoloSoftware
2
+ module VERSION
3
+ MAJOR = 0
4
+ MINOR = 1
5
+ TINY = 0
6
+ PRE = nil
7
+
8
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
+ end
10
+
11
+ def self.version
12
+ VERSION::STRING
13
+ end
14
+
15
+ def self.gem_version
16
+ Gem::Version.new VERSION::STRING
17
+ end
18
+
19
+ def self.required_ruby_version
20
+ Gem::Requirement.new('>= 2.5.0')
21
+ end
22
+ end
data/rubocop-all.yml ADDED
@@ -0,0 +1,10 @@
1
+ AllCops:
2
+ # Cop names are not displayed in offense messages by default. Change behavior
3
+ # by overriding DisplayCopNames, or by giving the -D/--display-cop-names
4
+ # option.
5
+ DisplayCopNames: true
6
+
7
+ # Exclude files
8
+ Exclude:
9
+ - '**/node_modules/**/*'
10
+
@@ -0,0 +1,7 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_bundler/
3
+ #
4
+
5
+ # https://rubocop.readthedocs.io/en/latest/cops_bundler/#bundlerorderedgems
6
+ Bundler/OrderedGems:
7
+ Enabled: false
@@ -0,0 +1,15 @@
1
+ inherit_from:
2
+ - rubocop-all.yml
3
+ - rubocop-bundler.yml
4
+ - rubocop-gemspec.yml
5
+ - rubocop-layout.yml
6
+ - rubocop-lint.yml
7
+ - rubocop-metrics.yml
8
+ - rubocop-naming.yml
9
+ - rubocop-performance.yml
10
+ - rubocop-security.yml
11
+ - rubocop-style.yml
12
+
13
+ inherit_mode:
14
+ merge:
15
+ - Exclude
@@ -0,0 +1,3 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_gemspec/
3
+ #
@@ -0,0 +1,15 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_layout/
3
+ #
4
+
5
+ # https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutfirstarrayelementindentation
6
+ Layout/FirstArrayElementIndentation:
7
+ EnforcedStyle: consistent
8
+
9
+ # https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutspacearoundequalsinparameterdefault
10
+ Layout/SpaceAroundEqualsInParameterDefault:
11
+ EnforcedStyle: no_space
12
+
13
+ # https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutspaceinsidehashliteralbraces
14
+ Layout/SpaceInsideHashLiteralBraces:
15
+ EnforcedStyle: no_space
data/rubocop-lint.yml ADDED
@@ -0,0 +1,3 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_lint/
3
+ #
@@ -0,0 +1,19 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_metrics/
3
+ #
4
+
5
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsabcsize
6
+ Metrics/AbcSize:
7
+ Enabled: false
8
+
9
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsclasslength
10
+ Metrics/ClassLength:
11
+ Enabled: false
12
+
13
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricslinelength
14
+ Metrics/LineLength:
15
+ Max: 100
16
+
17
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmethodlength
18
+ Metrics/MethodLength:
19
+ Enabled: false
@@ -0,0 +1,3 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_naming/
3
+ #
@@ -0,0 +1,5 @@
1
+ #
2
+ ## https://docs.rubocop.org/projects/performance/en/stable/
3
+ #
4
+
5
+ require: rubocop-performance
data/rubocop-rails.yml ADDED
@@ -0,0 +1,43 @@
1
+ #
2
+ ## https://docs.rubocop.org/projects/rails/en/latest/cops_rails/
3
+ #
4
+
5
+ require: rubocop-rails
6
+
7
+ Rails:
8
+ Enabled: true
9
+
10
+ # https://docs.rubocop.org/projects/rails/en/latest/cops_rails/#railshttpstatus
11
+ Rails/HttpStatus:
12
+ Enabled: false
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
21
+
22
+ AllCops:
23
+ Exclude:
24
+ - "**/db/schema.rb"
25
+ - "**/bin/**/*"
26
+
27
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsblocklength
28
+ Metrics/BlockLength:
29
+ Exclude:
30
+ - "**/spec/**/*.rb"
31
+ - "**/config/routes.rb"
32
+ - "**/config/environments/*.rb"
33
+
34
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmodulelength
35
+ Metrics/ModuleLength:
36
+ Exclude:
37
+ - "**/spec/**/*.rb"
38
+ - "**/config/routes.rb"
39
+
40
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#stylesymbolproc
41
+ Style/SymbolProc:
42
+ Exclude:
43
+ - "**/config/**/*.rb"
data/rubocop-rake.yml ADDED
@@ -0,0 +1 @@
1
+ require: rubocop-rake
data/rubocop-rspec.yml ADDED
@@ -0,0 +1,15 @@
1
+ #
2
+ ## https://docs.rubocop.org/projects/rspec/en/latest/
3
+ #
4
+
5
+ require: rubocop-rspec
6
+
7
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockcomments
8
+ Style/BlockComments:
9
+ Exclude:
10
+ - "**/spec/**/*.rb"
11
+
12
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockdelimiters
13
+ Style/BlockDelimiters:
14
+ Exclude:
15
+ - "**/spec/**/*.rb"
@@ -0,0 +1,3 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_security/
3
+ #
data/rubocop-style.yml ADDED
@@ -0,0 +1,39 @@
1
+ #
2
+ ## https://rubocop.readthedocs.io/en/latest/cops_style/
3
+ #
4
+
5
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#styleasciicomments
6
+ Style/AsciiComments:
7
+ Enabled: false
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
16
+
17
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#styledocumentation
18
+ Style/Documentation:
19
+ Enabled: false
20
+
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
28
+
29
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#stylefrozenstringliteralcomment
30
+ Style/FrozenStringLiteralComment:
31
+ Enabled: false
32
+
33
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#stylemutableconstant
34
+ Style/MutableConstant:
35
+ Enabled: false
36
+
37
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#styleregexpliteral
38
+ Style/RegexpLiteral:
39
+ Enabled: false
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-nosolosoftware
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Javier Aranda
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-12-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.77.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.77.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.5.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.5.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.4.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.4.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.5.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.5.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.37.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.37.0
83
+ description: ''
84
+ email: jaranda@nosolosoftware.es
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files:
88
+ - LICENSE
89
+ - README.md
90
+ files:
91
+ - CHANGELOG.md
92
+ - LICENSE
93
+ - README.md
94
+ - lib/rubocop-nosolosoftware/version.rb
95
+ - rubocop-all.yml
96
+ - rubocop-bundler.yml
97
+ - rubocop-default.yml
98
+ - rubocop-gemspec.yml
99
+ - rubocop-layout.yml
100
+ - rubocop-lint.yml
101
+ - rubocop-metrics.yml
102
+ - rubocop-naming.yml
103
+ - rubocop-performance.yml
104
+ - rubocop-rails.yml
105
+ - rubocop-rake.yml
106
+ - rubocop-rspec.yml
107
+ - rubocop-security.yml
108
+ - rubocop-style.yml
109
+ homepage: https://github.com/nosolosoftware/rubocop-nosolosoftware
110
+ licenses:
111
+ - MIT
112
+ metadata:
113
+ source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v0.1.0
114
+ changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v0.1.0/CHANGELOG.md
115
+ homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
116
+ post_install_message:
117
+ rdoc_options:
118
+ - "--charset=UTF-8"
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 2.5.0
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubygems_version: 3.0.3
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: Default Rubocop configuration used in NoSoloSoftware developments
136
+ test_files: []