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 +4 -4
- data/config/lintf.yml +23 -0
- data/lib/lintf/cli.rb +3 -3
- data/lib/lintf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b09f0be5f7f97fe4e126f35bb479809239ea2c0a9e884af08b2cafc9c44efb4
|
4
|
+
data.tar.gz: 61cc89104bcabccca7ee1c7aef46cced0aa4cb869b5b61f7c5e11b2feee411df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
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.
|
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
|
10
|
+
date: 2025-02-01 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rubocop
|