cookstyle 7.32.0 → 7.32.2

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: e2f55c6b537df4ecc7cbab6b05962b36bfdd2be1de9c9aa2a4a75169ca6c1e03
4
- data.tar.gz: e2266d2ad7aca19c04cabe83df4f471b0226f85ec472d63bde5cf0232b327ed7
3
+ metadata.gz: a9d5df9c039b53b189a6d2cecc2c23aab900c6c038f38fe305218b79bbab6a62
4
+ data.tar.gz: 7bff42e06a317fb7fe24b51c506e7a626c86657b59dc02954c7342ccb7c1d202
5
5
  SHA512:
6
- metadata.gz: 44ca2ad6f132101f59e22c8c3b92e417a63836b37f916176cec3bdebd2bdd3547ec2ea7377b1f6f59a82a33f6e722964755583812a378ed8c4ca178a2475a96c
7
- data.tar.gz: 93286dc94bd04076ab103582a3b18bce4d0ff814876aa39283d96e279ad08febdc17da6d6267f7d93c8f01f92c4e7102ff90124b6162474020545c7b8cc6a7c4
6
+ metadata.gz: 6e65d0b60a6c8fe4c2e45ff3242873aae42b536b0c337bfe68b0d46b76e828de68ca293f1e110e4f9ee80d9752fb900fb1d363186e00b620bda62e7351de39b5
7
+ data.tar.gz: '06836c7ea73f98476bd41844ba6521442f8c10f6bb7e328b0bdef95133543a4045e4a972de715d087b3223a4468d7ed9c9e4f6863e215514095e31db3ee29435'
data/config/cookstyle.yml CHANGED
@@ -14,6 +14,21 @@ AllCops:
14
14
  - '**/vendor/**/*'
15
15
  - Guardfile
16
16
 
17
+ Layout:
18
+ Exclude:
19
+ - '**/.delivery/project.toml'
20
+ - '**/.delivery/config.json'
21
+
22
+ Lint:
23
+ Exclude:
24
+ - '**/.delivery/project.toml'
25
+ - '**/.delivery/config.json'
26
+
27
+ Style:
28
+ Exclude:
29
+ - '**/.delivery/project.toml'
30
+ - '**/.delivery/config.json'
31
+
17
32
  ###############################
18
33
  # Chef/Style: Making cookbooks look better
19
34
  ###############################
@@ -21,6 +36,9 @@ AllCops:
21
36
  Chef/Style:
22
37
  Enabled: true
23
38
  StyleGuideBaseURL: https://docs.chef.io/workstation/cookstyle/
39
+ Exclude:
40
+ - '**/.delivery/project.toml'
41
+ - '**/.delivery/config.json'
24
42
 
25
43
  Chef/Style/AttributeKeys:
26
44
  Description: Check which style of keys are used to access node attributes.
data/cookstyle.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = 'Cookstyle is a code linting tool that helps you to write better Chef Infra cookbooks by detecting and automatically correcting style, syntax, and logic mistakes in your code.'
12
12
  spec.license = 'Apache-2.0'
13
13
  spec.homepage = 'https://docs.chef.io/workstation/cookstyle/'
14
- spec.required_ruby_version = '>= 2.5'
14
+ spec.required_ruby_version = '>= 2.7'
15
15
 
16
16
  # the gemspec and Gemfile are necessary for appbundling of the gem
17
17
  spec.files = %w(LICENSE cookstyle.gemspec Gemfile) + Dir.glob('{lib,bin,config}/**/*')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Cookstyle
3
- VERSION = "7.32.0" # rubocop: disable Style/StringLiterals
3
+ VERSION = "7.32.2" # rubocop: disable Style/StringLiterals
4
4
  RUBOCOP_VERSION = '1.25.1'
5
5
  end
@@ -101,7 +101,7 @@ module RuboCop
101
101
 
102
102
  def on_block(node)
103
103
  file_or_template?(node) do |file_name|
104
- break unless file_name.start_with?('/etc/cron.d')
104
+ break unless file_name.start_with?(%r{/etc/cron\.d\b}i)
105
105
  add_offense(node, severity: :refactor)
106
106
  end
107
107
 
@@ -110,7 +110,7 @@ module RuboCop
110
110
  # and check if their value contains '/etc/cron.d'
111
111
  # covers the case where the argument to the path property is provided via a method like File.join
112
112
  code_property.each_descendant do |d|
113
- add_offense(node, severity: :refactor) if d.respond_to?(:value) && d.value.match?(%r{/etc/cron\.d}i)
113
+ add_offense(node, severity: :refactor) if d.respond_to?(:value) && d.value.match?(%r{/etc/cron\.d\b}i)
114
114
  end
115
115
  end
116
116
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.32.0
4
+ version: 7.32.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-24 00:00:00.000000000 Z
12
+ date: 2023-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -327,7 +327,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
327
327
  requirements:
328
328
  - - ">="
329
329
  - !ruby/object:Gem::Version
330
- version: '2.5'
330
+ version: '2.7'
331
331
  required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  requirements:
333
333
  - - ">="