haml_lint 0.34.1 → 0.34.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: 2e13afbca153d2eb77c44ea3c266bf1a970ef71aa5d8efaa3c956870f69d76e0
4
- data.tar.gz: 7b48e11ccc6bec1d6750c5905df9b05b48980163a87c2b00dad45a6364ef35df
3
+ metadata.gz: bb14c47d0a3ed83deb2fec7f1e91b5caaba391a4bf2f1f6a72269b1e1d56e759
4
+ data.tar.gz: 493220080a38c3c6866123cc0c82a31a3904003213b210b453d14dc629a69ec2
5
5
  SHA512:
6
- metadata.gz: 17cb994e2f2498745c02b2c584f23b03a81a67fa4f6fb4d1f1b2d9421e4d2426fbe04c39d1d49288d10bf14c7b0dde2d2f2c2dbc991a5e7839f6085438d4984b
7
- data.tar.gz: 553834970edaffca09efba96a422ee73d45251a5c48d1e15a01a3cf0184d2d8e90392cd663d4f836e061a7486b061998859032b090c6916a968b66019ac9b581
6
+ metadata.gz: f97c133d7de22e5f7a4ff64408e1ad3f3c3d43c818876649d623aed27da0ed06c3e8b390924f401c30b9d46208295271c719c46722095233f671435fc1ef9a3d
7
+ data.tar.gz: 8bca0d77ec6699d7f94f28fc1c539ddfb1298c98c4c06f588c4e81a9946c162b0ec0cfb2b983bdeb68f2b4daf6ec0ee3cf5ecd3aef32529a55b3daa9ac2ad303
@@ -98,6 +98,7 @@ linters:
98
98
  - Layout/EndOfLine
99
99
  - Layout/HashAlignment
100
100
  - Layout/IndentationWidth
101
+ - Layout/LineLength # renamed from Metrics/LineLength in rubocop 0.79.0
101
102
  - Layout/ParameterAlignment
102
103
  - Layout/TrailingBlankLines # renamed to Layout/TrailingEmptyLines in rubocop 0.77
103
104
  - Layout/TrailingEmptyLines
@@ -26,16 +26,16 @@ require 'haml_lint/severity'
26
26
  # Load all parse tree node classes
27
27
  require 'haml_lint/tree/node'
28
28
  require 'haml_lint/node_transformer'
29
- Dir[File.expand_path('haml_lint/tree/*.rb', File.dirname(__FILE__))].each do |file|
29
+ Dir[File.expand_path('haml_lint/tree/*.rb', File.dirname(__FILE__))].sort.each do |file|
30
30
  require file
31
31
  end
32
32
 
33
33
  # Load all linters
34
- Dir[File.expand_path('haml_lint/linter/*.rb', File.dirname(__FILE__))].each do |file|
34
+ Dir[File.expand_path('haml_lint/linter/*.rb', File.dirname(__FILE__))].sort.each do |file|
35
35
  require file
36
36
  end
37
37
 
38
38
  # Load all reporters
39
- Dir[File.expand_path('haml_lint/reporter/*.rb', File.dirname(__FILE__))].each do |file|
39
+ Dir[File.expand_path('haml_lint/reporter/*.rb', File.dirname(__FILE__))].sort.each do |file|
40
40
  require file
41
41
  end
@@ -94,7 +94,7 @@ module HamlLint
94
94
  # @return [HamlLint::Reporter]
95
95
  def reporter_from_options(options)
96
96
  if options[:auto_gen_config]
97
- HamlLint::Reporter::DisabledConfigReporter.new(log, limit: options[:auto_gen_exclude_limit] || 15) # rubocop:disable Metrics/LineLength
97
+ HamlLint::Reporter::DisabledConfigReporter.new(log, limit: options[:auto_gen_exclude_limit] || 15) # rubocop:disable Layout/LineLength
98
98
  else
99
99
  options.fetch(:reporter, HamlLint::Reporter::DefaultReporter).new(log)
100
100
  end
@@ -38,7 +38,7 @@ module HamlLint
38
38
  end
39
39
 
40
40
  parser.on('--auto-gen-exclude-limit limit', Integer,
41
- 'Number of failures to allow in the TODO list before the entire rule is excluded') do |limit| # rubocop:disable Metrics/LineLength
41
+ 'Number of failures to allow in the TODO list before the entire rule is excluded') do |limit| # rubocop:disable Layout/LineLength
42
42
  @options[:auto_gen_exclude_limit] = limit
43
43
  end
44
44
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module HamlLint::Tree
4
4
  # Represents a tag node in a HAML document.
5
- class TagNode < Node # rubocop:disable ClassLength
5
+ class TagNode < Node # rubocop:disable Metrics/ClassLength
6
6
  # Computed set of attribute hashes code.
7
7
  #
8
8
  # This is a combination of all dynamically calculated attributes from the
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module HamlLint
5
- VERSION = '0.34.1'
5
+ VERSION = '0.34.2'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.1
4
+ version: 0.34.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2020-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  requirements: []
189
- rubygems_version: 3.0.3
189
+ rubygems_version: 3.1.1
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: HAML lint tool