slim_lint 0.22.0 → 0.22.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
  SHA256:
3
- metadata.gz: 7405eb29d09bb96a9c1f50007d6734f69a2abfea213bddbd9cadd15e7ac99651
4
- data.tar.gz: 1e55ce9b3466a9232a52a8a70ff7d4c8b31584f7bf06805d18c6965887935210
3
+ metadata.gz: 9bc1b16d2a34eeda71283419f8ff1bd26d83592c6f5b9492152627926a5e3d50
4
+ data.tar.gz: 247b1033c44c469b17216a9c43235f7f0a65b6db4f945356656a9365f1bf0c75
5
5
  SHA512:
6
- metadata.gz: a163d473bb03269ecd4a648c992219e2e26b2bd06948d8bf7b660b54d6eceb9d2c4b675c807676c1aa1122d40a4929d125bdc587b956660dcde0b8b1cc9f3f95
7
- data.tar.gz: 04405a47e956df8d2be5ea0520e411ddfc3da5f0c2bf498649d0d8268d1fe97cadf96384875975836e72454bc8c0157c5b1da52e631194d5c15fd69bacc89484
6
+ metadata.gz: 2bb2670dbf429ebac5ad95c9b3e9ddf03429c4bd7b87b215dbd44e19b2a7623533e6b03345b09f34f70936cf4ee5e2fd30cc21d049b4a44c9ca4f2a4b682fbf4
7
+ data.tar.gz: 01f52b81335b8b19bddf47071d372a8913268c0610b9d87157154c4db8d517ab8c75b57c1b8cad32a038b5f6a24c5b3aaa4a46d3f93143cb97ec6b478e5fddc9
data/config/default.yml CHANGED
@@ -49,10 +49,12 @@ linters:
49
49
  - Layout/ArgumentAlignment
50
50
  - Layout/ArrayAlignment
51
51
  - Layout/BlockAlignment
52
+ - Layout/ClosingParenthesisIndentation
52
53
  - Layout/EmptyLineAfterGuardClause
53
54
  - Layout/EndAlignment
54
55
  - Layout/FirstArgumentIndentation
55
56
  - Layout/FirstArrayElementIndentation
57
+ - Layout/FirstHashElementIndentation
56
58
  - Layout/FirstParameterIndentation
57
59
  - Layout/HashAlignment
58
60
  - Layout/IndentationConsistency
@@ -12,6 +12,7 @@ module SlimLint
12
12
  comment = code[/\A\s*#(.*\z)/, 1]
13
13
 
14
14
  next if comment =~ /^\s*rubocop:\w+/
15
+ next if comment =~ /^\s*Template Dependency:/
15
16
 
16
17
  report_lint(sexp,
17
18
  "Slim code comments (`/#{comment}`) are preferred over " \
@@ -29,6 +29,7 @@ module SlimLint
29
29
  def run(document)
30
30
  @document = document
31
31
  @lints = []
32
+ @disabled_lines = nil
32
33
  trigger_pattern_callbacks(document.sexp)
33
34
  @lints
34
35
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module SlimLint
5
- VERSION = '0.22.0'
5
+ VERSION = '0.22.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.1
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: 2021-07-22 00:00:00.000000000 Z
11
+ date: 2021-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop