rubocop-mdsol 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8460e737707e0774510b19a9972b0ffe8fe7698f82bc7a07ac0c35df5a05acd0
4
+ data.tar.gz: 25be958b7838b8a76fb61379fefd301cdf0993e734bac5a75f5a7cb898bad833
5
+ SHA512:
6
+ metadata.gz: 4175171350960c3c53de590ce613c5e97f6f26b34097ca6029208ecc77db16cdf48cdcab68440222f9c792c42b022a1dd8e08fda58ed2a7d37d64c5a46e2ae52
7
+ data.tar.gz: d687527049f0a16fd2b608980900d1770f69a2b6615406443411cba0b9fdc103ec6e682e55d7a84f100ec512119e1cab625a4b9064b7f8063001f62a19ff8a18
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ # 0.1.0
2
+ - Initial release.
data/MIT-LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2012-2020 Medidata Solutions Worldwide
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
19
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # RuboCop Mdsol
2
+
3
+ This gem provides base RuboCop configuration files for Ruby projects at Medidata.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add the following line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem "rubocop-mdsol", "~> 0.1"
12
+ ```
13
+
14
+
15
+ ## Usage
16
+
17
+ In your project's RuboCop configuration file, you need to import the files provided by this gem.
18
+
19
+ Additionally, if you installed this gem using Bundler you will need to run RuboCop using `bundle exec rubocop`.
20
+
21
+ ### Rails applications
22
+
23
+ From version 0.72.0, the Rails cops have been extracted to the [rubocop-rails](https://rubygems.org/gems/rubocop-rails) gem.
24
+ You will need to add this gem to your Gemfile and in your RuboCop configuration require it alongside the Rails-specific yaml file:
25
+
26
+ ```yaml
27
+ require: rubocop-rails
28
+
29
+ inherit_gem:
30
+ rubocop-mdsol:
31
+ - rubocop.yml
32
+ - rubocop-rails.yml
33
+
34
+ # your customizations here...
35
+ ```
36
+
37
+ ### Plain ruby projects (gems, lambdas...)
38
+
39
+ Plain ruby projects only need to inherit from the base configuration file:
40
+
41
+ ```yaml
42
+ inherit_from:
43
+ rubocop-mdsol: rubocop.yml
44
+
45
+ # your customizations here...
46
+ ```
47
+
48
+
49
+ ## Recommended customizations
50
+
51
+ ### String literals
52
+
53
+ The `Style/StringLiterals` is disabled by default.
54
+ For the sake of consistency within your project, you definitely want to enable it with your preferred style:
55
+
56
+ ```yaml
57
+ Style/StringLiterals:
58
+ Enabled: true
59
+ EnforcedStyle: double_quotes
60
+ # or
61
+ # EnforcedStyle: single_quotes
62
+ ```
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "rubocop-mdsol"
5
+ spec.version = "0.1.0"
6
+ spec.authors = ["Team Æ", "Team 10"]
7
+ spec.email = ["ae@mdsol.com", "team10@mdsol.com"]
8
+ spec.license = "MIT"
9
+ spec.summary = "Base RuboCop configuration files for Ruby projects at Medidata"
10
+
11
+ spec.metadata = {
12
+ "homepage_uri" => "https://github.com/mdsol/rubocop-mdsol",
13
+ "changelog_uri" => "https://github.com/mdsol/rubocop-mdsol/blob/develop/CHANGELOG.md"
14
+ }
15
+
16
+ spec.files = Dir[
17
+ "CHANGELOG.md",
18
+ "MIT-LICENSE",
19
+ "README.md",
20
+ "rubocop-mdsol.gemspec",
21
+ "rubocop-rails.yml",
22
+ "rubocop.yml"
23
+ ]
24
+
25
+ spec.required_ruby_version = ">= 2.4.0"
26
+
27
+ spec.add_dependency "rubocop", "~> 1.0"
28
+ end
data/rubocop-rails.yml ADDED
@@ -0,0 +1,5 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ Rails/HasAndBelongsToMany:
5
+ Enabled: false
data/rubocop.yml ADDED
@@ -0,0 +1,92 @@
1
+ inherit_mode:
2
+ merge:
3
+ - Exclude
4
+
5
+ AllCops:
6
+ NewCops: enable
7
+ Exclude:
8
+ - "cache/**/*"
9
+ - "db/**/*"
10
+ - "log/**/*"
11
+
12
+ Layout/ParameterAlignment:
13
+ EnforcedStyle: with_fixed_indentation
14
+
15
+ Lint/AmbiguousBlockAssociation:
16
+ Exclude:
17
+ - "spec/**/*"
18
+
19
+ Layout/FirstArrayElementIndentation:
20
+ EnforcedStyle: consistent
21
+
22
+ Layout/LineLength:
23
+ Max: 120
24
+
25
+ Layout/MultilineMethodCallIndentation:
26
+ EnforcedStyle: indented
27
+
28
+ Metrics/AbcSize:
29
+ Max: 30
30
+
31
+ Metrics/BlockLength:
32
+ Exclude:
33
+ - "spec/**/*"
34
+
35
+ Metrics/ClassLength:
36
+ Enabled: false
37
+
38
+ Metrics/CyclomaticComplexity:
39
+ Enabled: false
40
+
41
+ Metrics/MethodLength:
42
+ Max: 30
43
+
44
+ Metrics/PerceivedComplexity:
45
+ Enabled: false
46
+
47
+ Naming/FileName:
48
+ Exclude:
49
+ - Appraisals
50
+
51
+ # allow non ASCII characters in comments
52
+ Style/AsciiComments:
53
+ Enabled: false
54
+
55
+ Style/ClassAndModuleChildren:
56
+ Enabled: false
57
+
58
+ Style/Documentation:
59
+ Enabled: false
60
+
61
+ Style/ExponentialNotation:
62
+ Enabled: false
63
+
64
+ Style/FrozenStringLiteralComment:
65
+ Enabled: false
66
+
67
+ Style/IfUnlessModifier:
68
+ Enabled: false
69
+
70
+ Style/Lambda:
71
+ EnforcedStyle: literal
72
+
73
+ Style/LambdaCall:
74
+ Enabled: false
75
+
76
+ Style/PerlBackrefs:
77
+ Enabled: false
78
+
79
+ Style/RescueModifier:
80
+ Enabled: false
81
+
82
+ Style/RescueStandardError:
83
+ EnforcedStyle: implicit
84
+
85
+ Style/SignalException:
86
+ EnforcedStyle: only_raise
87
+
88
+ Style/StringLiterals:
89
+ Enabled: false
90
+
91
+ Style/StringLiteralsInInterpolation:
92
+ Enabled: false
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-mdsol
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Team Æ
8
+ - Team 10
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2021-02-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rubocop
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.0'
28
+ description:
29
+ email:
30
+ - ae@mdsol.com
31
+ - team10@mdsol.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - CHANGELOG.md
37
+ - MIT-LICENSE
38
+ - README.md
39
+ - rubocop-mdsol.gemspec
40
+ - rubocop-rails.yml
41
+ - rubocop.yml
42
+ homepage:
43
+ licenses:
44
+ - MIT
45
+ metadata:
46
+ homepage_uri: https://github.com/mdsol/rubocop-mdsol
47
+ changelog_uri: https://github.com/mdsol/rubocop-mdsol/blob/develop/CHANGELOG.md
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 2.4.0
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubygems_version: 3.1.2
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Base RuboCop configuration files for Ruby projects at Medidata
67
+ test_files: []