lintf 0.2.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/README.md +2 -2
- data/config/lintf.yml +23 -0
- data/config/rubocop-rspec.yml +0 -3
- data/config/rubocop.yml +0 -1
- data/lib/lintf/cli.rb +3 -3
- data/lib/lintf/version.rb +1 -1
- metadata +5 -11
- data/CHANGELOG.md +0 -27
- data/config/base.yml +0 -6
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/README.md
CHANGED
@@ -80,8 +80,8 @@ my_custom_linter:
|
|
80
80
|
```
|
81
81
|
|
82
82
|
This changes the RuboCop autocorrection from the default `-A` to the safe `-a`
|
83
|
-
and defines a new tool that will be run by default (after
|
84
|
-
`bundle exec lintf my_custom_linter` or `bundle exec lintf mcl
|
83
|
+
and defines a new tool that will be run by default (after RuboCop), or via
|
84
|
+
`bundle exec lintf my_custom_linter` or `bundle exec lintf mcl`.
|
85
85
|
|
86
86
|
## License
|
87
87
|
|
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/config/rubocop-rspec.yml
CHANGED
data/config/rubocop.yml
CHANGED
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,14 +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
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-01 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rubocop
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
18
|
+
version: '1.70'
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
25
|
+
version: '1.70'
|
27
26
|
description: Linter and formatter runner for Ruby, including configuration for RuboCop
|
28
27
|
(Performance, Rails, RSpec, RSpecRails) and ERB Lint.
|
29
28
|
email: cdfzo@pm.me
|
@@ -32,11 +31,9 @@ executables:
|
|
32
31
|
extensions: []
|
33
32
|
extra_rdoc_files: []
|
34
33
|
files:
|
35
|
-
- CHANGELOG.md
|
36
34
|
- LICENSE
|
37
35
|
- README.md
|
38
36
|
- bin/lintf
|
39
|
-
- config/base.yml
|
40
37
|
- config/erb_lint.yml
|
41
38
|
- config/lintf.yml
|
42
39
|
- config/rubocop-performance.yml
|
@@ -51,13 +48,11 @@ homepage: https://codeberg.org/cdfzo/lintf-rb
|
|
51
48
|
licenses:
|
52
49
|
- MIT
|
53
50
|
metadata:
|
54
|
-
homepage_uri: https://codeberg.org/cdfzo/lintf-rb
|
55
51
|
source_code_uri: https://codeberg.org/cdfzo/lintf-rb
|
56
52
|
bug_tracker_uri: https://codeberg.org/cdfzo/lintf-rb/issues
|
57
53
|
changelog_uri: https://codeberg.org/cdfzo/lintf-rb/src/branch/main/CHANGELOG.md
|
58
54
|
documentation_uri: https://codeberg.org/cdfzo/lintf-rb/src/branch/main/README.md
|
59
55
|
rubygems_mfa_required: 'true'
|
60
|
-
post_install_message:
|
61
56
|
rdoc_options: []
|
62
57
|
require_paths:
|
63
58
|
- lib
|
@@ -72,8 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
67
|
- !ruby/object:Gem::Version
|
73
68
|
version: '0'
|
74
69
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
76
|
-
signing_key:
|
70
|
+
rubygems_version: 3.6.3
|
77
71
|
specification_version: 4
|
78
72
|
summary: Linter and formatter runner for Ruby.
|
79
73
|
test_files: []
|
data/CHANGELOG.md
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
## [0.2.0](https://rubygems.org/gems/lintf/versions/0.2.0) - 2024-12-21
|
4
|
-
|
5
|
-
- [`91816f9`](https://codeberg.org/cdfzo/lintf-rb/commit/91816f9901288c30943e038fd8bb3b9ff601ac89)
|
6
|
-
Make CLI customizable via .lintf.yml
|
7
|
-
- [`6df7d33`](https://codeberg.org/cdfzo/lintf-rb/commit/6df7d331e2f1426f6994341f8550b7d529795efe)
|
8
|
-
Use only RuboCop as runtime dependency
|
9
|
-
- [`a131a6e`](https://codeberg.org/cdfzo/lintf-rb/commit/a131a6eaf9559d2c2090a8470a687f956ee730cf)
|
10
|
-
Disable Style/ClassAndModuleChildren
|
11
|
-
|
12
|
-
## [0.1.0](https://rubygems.org/gems/lintf/versions/0.1.0) - 2024-12-21
|
13
|
-
|
14
|
-
- [`4f26633`](https://codeberg.org/cdfzo/lintf-rb/commit/4f26633df30ce35657a33538db5ab3372544ffea)
|
15
|
-
Add Lintf CLI
|
16
|
-
- [`6276ef0`](https://codeberg.org/cdfzo/lintf-rb/commit/6276ef0bda63a2cf9dbbc9d0b3ace53a6b77bb79)
|
17
|
-
Add RuboCop config
|
18
|
-
- [`e945310`](https://codeberg.org/cdfzo/lintf-rb/commit/e94531058649d604418e529f526d1958e771b19d)
|
19
|
-
Add RuboCop Performance config
|
20
|
-
- [`ecc2872`](https://codeberg.org/cdfzo/lintf-rb/commit/ecc2872e91abcc3607753083707f944c9b46c277)
|
21
|
-
Add RuboCop Rails config
|
22
|
-
- [`50f49c8`](https://codeberg.org/cdfzo/lintf-rb/commit/50f49c878dd5313ed4bb279ab6d862e51cc7910f)
|
23
|
-
Add RuboCop RSpec config
|
24
|
-
- [`b2c16c3`](https://codeberg.org/cdfzo/lintf-rb/commit/b2c16c3368d4312b9e280968678b6dcc54af479c)
|
25
|
-
Add RuboCop RSpecRails config
|
26
|
-
- [`8353c5e`](https://codeberg.org/cdfzo/lintf-rb/commit/8353c5ef0f0db9d2a3742fcd2f071016ad55d0fe)
|
27
|
-
Add ERB Lint config
|