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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f5fc442d091dac3a0febcd6c6c82c0cf61833fbcd77909fb2bd6e4ae0729aed
4
- data.tar.gz: 18e1cc8e35c9e7ede67ad15a93a0ab013385a98402059ed48017fd4bc4e68eb2
3
+ metadata.gz: 3b09f0be5f7f97fe4e126f35bb479809239ea2c0a9e884af08b2cafc9c44efb4
4
+ data.tar.gz: 61cc89104bcabccca7ee1c7aef46cced0aa4cb869b5b61f7c5e11b2feee411df
5
5
  SHA512:
6
- metadata.gz: f48709f47c47eae4bdf7b9194a097c8a4ecf5cce4d1788f07674e45385e8f511bb1412ea99fcf16ecc10396de8727eae84c16d46b66c9d32610bcb7434980af7
7
- data.tar.gz: 646b393f03a816e392a5426d4b7567926b2518dceaf3b01366dca83a2d96a9021173105a713a5fe13177f5d925e09de39dd21ec54627fb5583928cd180799bf2
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 rubocop) or via
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]
@@ -308,9 +308,6 @@ RSpec/SpecFilePathFormat:
308
308
  RSpec/SpecFilePathSuffix:
309
309
  Enabled: true
310
310
 
311
- RSpec/StringAsInstanceDoubleConstant:
312
- Enabled: true
313
-
314
311
  RSpec/StubbedMock:
315
312
  Enabled: true
316
313
 
data/config/rubocop.yml CHANGED
@@ -785,7 +785,6 @@ Lint/UnreachableLoop:
785
785
 
786
786
  Lint/UnusedBlockArgument:
787
787
  Enabled: true
788
- IgnoreEmptyBlocks: false
789
788
 
790
789
  Lint/UnusedMethodArgument:
791
790
  Enabled: true
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.2.0'
4
+ VERSION = '0.4.0'
5
5
  end
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.2.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: 2024-12-21 00:00:00.000000000 Z
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.69'
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.69'
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.5.22
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
data/config/base.yml DELETED
@@ -1,6 +0,0 @@
1
- inherit_from:
2
- - rubocop.yml
3
- - rubocop-performance.yml
4
- - rubocop-rails.yml
5
- - rubocop-rspec.yml
6
- - rubocop-rspec_rails.yml