lintf 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26b79fcf340bc25f76e1604f62993f933d46c7b54ba27479b0ca7fa20e8fa258
4
- data.tar.gz: c27ef1799a2a37df14ec4814f862710005219e69517d2083531e66b1573ecd38
3
+ metadata.gz: 3b09f0be5f7f97fe4e126f35bb479809239ea2c0a9e884af08b2cafc9c44efb4
4
+ data.tar.gz: 61cc89104bcabccca7ee1c7aef46cced0aa4cb869b5b61f7c5e11b2feee411df
5
5
  SHA512:
6
- metadata.gz: 9afccfad4f51f5883d8212f9215485fd5bef94f2f35e282fbf9ab5918943058bf9fb10eb264fb6eb3a6c924e73f29810aae2fdd1787e13dbfee3df81c4b7869a
7
- data.tar.gz: 950624925fb1d421869dd54de06445b7991d26b70792e09c93af5b25a1fdc6c8aa89b0a51eb57e83caad729da86a92f34d648385299d8d74eb1dc729ad80c3aa
6
+ metadata.gz: 65f570c15b84e1be114a759427eded44c05114ec85146f48821a468381ebd08f60cd3475d3835442415de9ced42e54a08363a6439f2d23cd2bf6ecdac34053c4
7
+ data.tar.gz: d46647d9a924404a4969b84913fdf6954be3ed7bdb2fab3178d385272e88a8652725351b5f20352a40c6d80fa3304fcd92d9521a4f6d94841ee087de7c10c9c4
data/config/lintf.yml CHANGED
@@ -27,3 +27,26 @@ erblint:
27
27
  run: bundle exec erb_lint
28
28
  fix: -a
29
29
  files: [erb]
30
+
31
+ brakeman:
32
+ alias: b
33
+ run: bundle exec brakeman -Aq --no-pager --no-summary
34
+
35
+ zeitwerk:
36
+ alias: z
37
+ run: bundle exec rake zeitwerk:check
38
+
39
+ eslint:
40
+ alias: e
41
+ config: eslint.config.js
42
+ run: bun -b x eslint -c eslint.config.js
43
+ fix: --fix
44
+ files: [ts, js]
45
+
46
+ prettier:
47
+ alias: p
48
+ config: .prettierrc.json
49
+ run: bun -b x prettier --config .prettierrc.json --ignore-path --log-level warn
50
+ check: -c
51
+ fix: -w
52
+ files: [ts, js, md, json, jsonc, yml, yaml]
data/lib/lintf/cli.rb CHANGED
@@ -78,10 +78,10 @@ module Lintf
78
78
 
79
79
  def files
80
80
  @files ||= if config[:all] || `git branch --show-current`.strip == 'main'
81
- `git ls-files`
81
+ `git ls-files`.split("\n") - `git ls-files -d`.split("\n")
82
82
  else
83
- `git diff origin/main --diff-filter=dxb --name-only`
84
- end.split "\n"
83
+ `git diff origin/main --diff-filter=dxb --name-only`.split "\n"
84
+ end
85
85
  end
86
86
 
87
87
  def files_for(tool)
data/lib/lintf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lintf
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lintf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - cdfzo
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-24 00:00:00.000000000 Z
10
+ date: 2025-02-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rubocop