defra_ruby_style 0.1.2 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -1
- data/Rakefile +2 -0
- data/default.yml +23 -10
- data/lib/defra/style/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '0340911c57c01601b738837b93a038d176196638d66295d2883b8349ea7729ea'
|
4
|
+
data.tar.gz: f4d16ece1f8de31ee80bf9c29385f87ad551d53c611cf902e712a4e11ec54a7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a63aceffa953f3802bc7b21927e46c908f90e3e99a8b113b083cf381ed3bccbce45a93ad7bfde0f01c850f65fdfeb7ffc93e58a86c2ff83f5e2a86ecbda17e1
|
7
|
+
data.tar.gz: 3cb55588984951f3038ba6273444ba2b20d5523e728ccd74ce893e200037fa45d3d022cb5edf4cd0c062568eb627daadc5271b70bf4870c55204c1b96249c75f
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
|
1
|
+
# Defra Ruby Style
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.com/DEFRA/defra-ruby-style.svg?branch=master)](https://travis-ci.com/DEFRA/defra-ruby-style)
|
4
|
+
[![security](https://hakiri.io/github/DEFRA/defra-ruby-style/master.svg)](https://hakiri.io/github/DEFRA/defra-ruby-style/master)
|
4
5
|
[![Gem Version](https://badge.fury.io/rb/defra_ruby_style.svg)](https://badge.fury.io/rb/defra_ruby_style)
|
5
6
|
[![Licence](https://img.shields.io/badge/Licence-OGLv3-blue.svg)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3)
|
6
7
|
|
data/Rakefile
CHANGED
data/default.yml
CHANGED
@@ -8,6 +8,16 @@ AllCops:
|
|
8
8
|
# find it useful to go straight to the documentation for a rule when
|
9
9
|
# investigating what the fix may be.
|
10
10
|
DisplayStyleGuide: true
|
11
|
+
# Starting in 0.80 new cops are no longer enabled by default. It was noted
|
12
|
+
# that when ever rubocop updated and new cops were added, project builds
|
13
|
+
# generally always broke. To resolve this the rubocop team have decided that
|
14
|
+
# projects now need to specify whether new cops are disabled or enabled and if
|
15
|
+
# not, they will omit a warning message.
|
16
|
+
# Though it generally does break our builds, we want to always be using the
|
17
|
+
# latest conventions and will deal with build issues as they arise. So we
|
18
|
+
# set this flag so rubocop will just mark any new cops as enabled and saving
|
19
|
+
# us having to dip in each time and enable them one-by-one
|
20
|
+
NewCops: enable
|
11
21
|
Include:
|
12
22
|
- "**/*.gemspec"
|
13
23
|
- "**/*.rake"
|
@@ -27,6 +37,9 @@ AllCops:
|
|
27
37
|
## schema.rb is generated automatically based on migrations, so leave as is
|
28
38
|
- "**/db/schema.rb"
|
29
39
|
- "db/migrate*/**/*.rb"
|
40
|
+
# node_modules is generated in projects using webpacker. The .rb files it
|
41
|
+
# contains are generated so we want to exclude.
|
42
|
+
- "node_modules/**/*"
|
30
43
|
# Skip dummy application files as they're only used for testing purposes
|
31
44
|
- "spec/dummy/**/*"
|
32
45
|
|
@@ -40,6 +53,16 @@ Layout/EmptyLinesAroundClassBody:
|
|
40
53
|
Layout/EmptyLinesAroundBlockBody:
|
41
54
|
Enabled: false
|
42
55
|
|
56
|
+
# We believe the default 80 characters is too restrictive and that lines can
|
57
|
+
# still be readable and maintainable when no more than 120 characters. This also
|
58
|
+
# allows us to maximise our screen space.
|
59
|
+
Layout/LineLength:
|
60
|
+
Max: 120
|
61
|
+
Exclude:
|
62
|
+
- "spec/**/*_spec.rb"
|
63
|
+
- "spec/factories/**/*.rb"
|
64
|
+
- "spec/support/shared_examples/**/*.rb"
|
65
|
+
|
43
66
|
# It's okay to use `catch { foo }` in specs
|
44
67
|
#
|
45
68
|
# https://github.com/rubocop-hq/rubocop/issues/4222
|
@@ -69,16 +92,6 @@ Metrics/BlockLength:
|
|
69
92
|
- "spec/factories/**/*.rb"
|
70
93
|
- "spec/support/shared_examples/**/*.rb"
|
71
94
|
|
72
|
-
# We believe the default 80 characters is too restrictive and that lines can
|
73
|
-
# still be readable and maintainable when no more than 120 characters. This also
|
74
|
-
# allows us to maximise our screen space.
|
75
|
-
Metrics/LineLength:
|
76
|
-
Max: 120
|
77
|
-
Exclude:
|
78
|
-
- "spec/**/*_spec.rb"
|
79
|
-
- "spec/factories/**/*.rb"
|
80
|
-
- "spec/support/shared_examples/**/*.rb"
|
81
|
-
|
82
95
|
# We wish we were good enough to remain within the rubocop limit of 10 lines
|
83
96
|
# however we often just seem to tip over by a few lines. Hence we have chosen
|
84
97
|
# to bump it to 20.
|
data/lib/defra/style/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defra_ruby_style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.82'
|
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'
|
26
|
+
version: '0.82'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: github_changelog_generator
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
|
90
|
-
rubygems_version: 2.6.13
|
89
|
+
rubygems_version: 3.0.0
|
91
90
|
signing_key:
|
92
91
|
specification_version: 4
|
93
92
|
summary: Defra ruby coding standards
|