govuk-lint 0.5.0 → 0.5.1

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
  SHA1:
3
- metadata.gz: 29ae063fd0a4c66e3920abe351af2c2519820ffa
4
- data.tar.gz: 82613a747328ca9e5acd4dbb01330e981c6e7acb
3
+ metadata.gz: 39d72fc22256266a2c7c6764df7836ba2f34cf20
4
+ data.tar.gz: bae2cc4bf2cf6170607c8ab049b85228e62e6c29
5
5
  SHA512:
6
- metadata.gz: 59a094d021df7d08ea74fb2663c459ead842ae67b0a974164f3622daabaf3f8ed5efc84ecc0cd6d671fe15d6a97a147c03f86b078ee7ca8cb41c0cca578b29dc
7
- data.tar.gz: 1bff1b039e47086deee314fe6429ba4a6002c15ee7cfa68c689c324aa48bd83bc9017420355a88aa013ce99c0cf461c2815784babbb942cf129a5840209ae7a0
6
+ metadata.gz: 3c66b48e8646fb66ddc0f8cd9207aba0e3953a9f0f6942418ab589cea2c34e64560a6c24df96a205a1b30d021668bd7f7f0dc0b264b26f92b16f7c638c09f988
7
+ data.tar.gz: 5589f55c749c1c955ae360efbe0c66fbc80118805448c4c10f9af894bd6fa23efe9d7407c497a1fc2fd4842a695a2025cfa71f34f69fbaa56a8f145472f26e03
@@ -1,6 +1,7 @@
1
1
  AccessModifierIndentation:
2
2
  Description: Check indentation of private/protected visibility modifiers.
3
- Enabled: false
3
+ Enabled: true
4
+ EnforcedStyle: outdent
4
5
 
5
6
  AccessorMethodName:
6
7
  Description: Check the naming of accessor methods for get_/set_.
@@ -121,7 +122,7 @@ EachWithObject:
121
122
 
122
123
  EmptyLinesAroundAccessModifier:
123
124
  Description: "Keep blank lines around access modifiers."
124
- Enabled: false
125
+ Enabled: true
125
126
 
126
127
  EmptyLines:
127
128
  Description: "Keeps track of empty lines around expression bodies."
@@ -9,7 +9,11 @@ module Govuk
9
9
  class CLI < RuboCop::CLI
10
10
  def run(args = ARGV)
11
11
  args += ["--config",
12
- ConfigFile.new.config_file_path]
12
+ ConfigFile.new.config_file_path,
13
+ "--display-cop-names",
14
+ "--extra-details",
15
+ "--display-style-guide",
16
+ ]
13
17
 
14
18
  Diff.enable!(args) if args.include? "--diff"
15
19
 
@@ -39,6 +39,7 @@ module Govuk
39
39
  end
40
40
 
41
41
  private
42
+
42
43
  def self.changed_files
43
44
  `git diff #{commit_options} --name-only`.
44
45
  split.
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Lint
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.32'
75
+ version: 0.35.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.32'
82
+ version: 0.35.0
83
83
  description: Include this in your project to easily validate it against the GDS style
84
84
  guides
85
85
  email: