track_open_instances 0.1.0 → 0.1.10
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/.release-please-manifest.json +3 -0
- data/.yardopts +0 -1
- data/CHANGELOG.md +92 -11
- data/README.md +1 -3
- data/Rakefile +7 -0
- data/lib/track_open_instances/version.rb +1 -1
- data/lib/track_open_instances.rb +24 -19
- data/package.json +3 -3
- data/release-please-config.json +22 -0
- metadata +7 -7
- data/.qlty/qlty.toml +0 -104
- data/RELEASING.md +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c549220e45116c5a6ac033c6b1aa740c2e31834f96bd1e3c0550d58ebfd86b8e
|
4
|
+
data.tar.gz: 534a96da8b84a9a0936498de5c53603389251776dc6de94996bea7ac5531be54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47fbd1a4870a53d0cc203a377e15bcc35683ebf885e7ab9065c885afb2a8a52da8398f2d60d99dbd17405dc316582bf708525c43a2a51e1a8163677c5afecec1
|
7
|
+
data.tar.gz: accf55976f9ac9c5ee7cf6e96bcfa8f5844db80e4624ef13f5f5d0458dfeb3e8640230f1874f11dc83c169aca66e1b30a22ec1a0ee1014f807bdcd0923ee6786
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,19 +1,100 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [0.1.10](https://github.com/main-branch/track_open_instances/compare/v0.1.9...v0.1.10) (2025-04-15)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Amend release task so it does not create a new tag ([4ba194c](https://github.com/main-branch/track_open_instances/commit/4ba194ce6c744db3ab57bed022e8d311166a4e64))
|
9
|
+
|
10
|
+
## [0.1.9](https://github.com/main-branch/track_open_instances/compare/v0.1.8...v0.1.9) (2025-04-15)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* Amend release task so it does not create a new tag ([7bedd17](https://github.com/main-branch/track_open_instances/commit/7bedd176c140f6b3979f39388f0ca803c32f9282))
|
16
|
+
|
17
|
+
## [0.1.8](https://github.com/main-branch/track_open_instances/compare/v0.1.7...v0.1.8) (2025-04-15)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* Remove component name from release version tag ([5991728](https://github.com/main-branch/track_open_instances/commit/59917284241eaa173fd4f83a38710cb50a23c750))
|
23
|
+
|
24
|
+
## [0.1.7](https://github.com/main-branch/track_open_instances/compare/track_open_instances-v0.1.6...track_open_instances/v0.1.7) (2025-04-15)
|
25
|
+
|
26
|
+
|
27
|
+
### Bug Fixes
|
28
|
+
|
29
|
+
* Add package-name to release-please configuration ([83d0198](https://github.com/main-branch/track_open_instances/commit/83d0198bfab34e26b641ca7e27af08b68e07c396))
|
30
|
+
* Automatically push the new gem release to rubygems.org ([d133153](https://github.com/main-branch/track_open_instances/commit/d13315396f590fefeb07cc4b71a13c9e9709842b))
|
31
|
+
* Checkout project before the release-please step in release workflow ([80d9a35](https://github.com/main-branch/track_open_instances/commit/80d9a35ed155f3ba7e14a585e54d9ec34d2722e2))
|
32
|
+
* Fix several documentation and report errors ([fd17199](https://github.com/main-branch/track_open_instances/commit/fd171997871796df746c8e1312a4fdb07cb363d5))
|
33
|
+
* Make release-please use a different tag than release-gem ([a7d42dc](https://github.com/main-branch/track_open_instances/commit/a7d42dcb132bd40ceb3830a6a02a09694022844a))
|
34
|
+
* Make small change to test release ([8304c90](https://github.com/main-branch/track_open_instances/commit/8304c905883c760e6419210be300b637f01e054d))
|
35
|
+
* Release workflow should checkout project ([869a7e0](https://github.com/main-branch/track_open_instances/commit/869a7e011438b57bcb810680ecdf0eb5beec193b))
|
36
|
+
* Remove the qlty.sh integration ([4c4492b](https://github.com/main-branch/track_open_instances/commit/4c4492bb19d1f39fa96ec30ad0af12d103067e92))
|
37
|
+
* Specify the version file ([be826cf](https://github.com/main-branch/track_open_instances/commit/be826cfe9a8aa526cdaa3f1ecb5912641f3db38c))
|
38
|
+
* Start autoreleases at 0.1.0 ([5a2fad7](https://github.com/main-branch/track_open_instances/commit/5a2fad7a9cb029a5dbfb9785f979fc07bf7f127b))
|
39
|
+
|
40
|
+
## [0.1.6](https://github.com/main-branch/track_open_instances/compare/v0.1.5...v0.1.6) (2025-04-15)
|
41
|
+
|
42
|
+
|
43
|
+
### Bug Fixes
|
44
|
+
|
45
|
+
* Make release-please use a different tag than release-gem ([a7d42dc](https://github.com/main-branch/track_open_instances/commit/a7d42dcb132bd40ceb3830a6a02a09694022844a))
|
46
|
+
|
47
|
+
## [0.1.5](https://github.com/main-branch/track_open_instances/compare/v0.1.4...v0.1.5) (2025-04-14)
|
48
|
+
|
49
|
+
|
50
|
+
### Bug Fixes
|
51
|
+
|
52
|
+
* Checkout project before the release-please step in release workflow ([80d9a35](https://github.com/main-branch/track_open_instances/commit/80d9a35ed155f3ba7e14a585e54d9ec34d2722e2))
|
53
|
+
* Specify the version file ([be826cf](https://github.com/main-branch/track_open_instances/commit/be826cfe9a8aa526cdaa3f1ecb5912641f3db38c))
|
54
|
+
|
55
|
+
## [0.1.4](https://github.com/main-branch/track_open_instances/compare/v0.1.3...v0.1.4) (2025-04-14)
|
56
|
+
|
57
|
+
|
58
|
+
### Bug Fixes
|
59
|
+
|
60
|
+
* Release workflow should checkout project ([869a7e0](https://github.com/main-branch/track_open_instances/commit/869a7e011438b57bcb810680ecdf0eb5beec193b))
|
61
|
+
|
62
|
+
## [0.1.3](https://github.com/main-branch/track_open_instances/compare/v0.1.2...v0.1.3) (2025-04-14)
|
63
|
+
|
64
|
+
|
65
|
+
### Bug Fixes
|
66
|
+
|
67
|
+
* Automatically push the new gem release to rubygems.org ([d133153](https://github.com/main-branch/track_open_instances/commit/d13315396f590fefeb07cc4b71a13c9e9709842b))
|
68
|
+
* Remove the qlty.sh integration ([4c4492b](https://github.com/main-branch/track_open_instances/commit/4c4492bb19d1f39fa96ec30ad0af12d103067e92))
|
69
|
+
|
70
|
+
## [0.1.2](https://github.com/main-branch/track_open_instances/compare/v0.1.1...v0.1.2) (2025-04-14)
|
71
|
+
|
72
|
+
|
73
|
+
### Bug Fixes
|
74
|
+
|
75
|
+
* Make small change to test release ([8304c90](https://github.com/main-branch/track_open_instances/commit/8304c905883c760e6419210be300b637f01e054d))
|
76
|
+
|
77
|
+
## [0.1.1](https://github.com/main-branch/track_open_instances/compare/v0.1.0...v0.1.1) (2025-04-14)
|
78
|
+
|
79
|
+
### Bug Fixes
|
80
|
+
|
81
|
+
* Fix several documentation and report errors ([fd17199](https://github.com/main-branch/track_open_instances/commit/fd171997871796df746c8e1312a4fdb07cb363d5))
|
82
|
+
* Start autoreleases at 0.1.0 ([5a2fad7](https://github.com/main-branch/track_open_instances/commit/5a2fad7a9cb029a5dbfb9785f979fc07bf7f127b))
|
83
|
+
|
3
84
|
## v0.1.0 (2025-04-08)
|
4
85
|
|
5
86
|
[Full Changelog](https://github.com/main-branch/track_open_instances/compare/f0fb459..v0.1.0)
|
6
87
|
|
7
88
|
Changes:
|
8
89
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
90
|
+
* f2d5318 chore: remove radarline-ruby from qlty checks
|
91
|
+
* 177eba8 chore: fix formatting errors reported by `qlty fmt`
|
92
|
+
* 943359f build: remove rubocop plugin from qlty
|
93
|
+
* 476f271 chore: integrate yamllint
|
94
|
+
* 56811ca fix: add qlty configuration in order to run qlty checks locally
|
95
|
+
* e83546a fix: fix continuous integration workflow issues reported by qlty.sh
|
96
|
+
* 6f67aed test: add predicate methods to determine the Ruby engine and platform
|
97
|
+
* 34e3829 build: generate JSON coverage report for qlty.sh coverage reporting
|
98
|
+
* 9db2052 docs: update README links
|
99
|
+
* 937a971 build: update code coverage reporting
|
100
|
+
* f0fb459 feat: initial implementation of TrackOpenInstances
|
data/README.md
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
[](https://github.com/main-branch/track_open_instances/actions/workflows/continuous_integration.yml)
|
5
5
|
[](https://rubydoc.info/gems/track_open_instances/)
|
6
6
|
[](https://rubydoc.info/gems/track_open_instances/file/CHANGELOG.md)
|
7
|
-
[](https://qlty.sh/gh/main-branch/projects/track_open_instances)
|
8
|
-
[](https://qlty.sh/gh/main-branch/projects/track_open_instances)
|
9
7
|
[](https://main-branch.slack.com/archives/C01CHR7TMM2)
|
10
8
|
|
11
9
|
`TrackOpenInstances` is a Ruby mixin designed to help manage resources that require
|
@@ -22,7 +20,7 @@ to aid debugging.
|
|
22
20
|
|
23
21
|
## Installation
|
24
22
|
|
25
|
-
Add this line to your application's Gemfile:
|
23
|
+
Add this line to your application's or gem's Gemfile:
|
26
24
|
|
27
25
|
```Ruby
|
28
26
|
gem 'track_open_instances'
|
data/Rakefile
CHANGED
@@ -17,6 +17,13 @@ Bundler::Audit::Task.new
|
|
17
17
|
require 'bundler'
|
18
18
|
require 'bundler/gem_tasks'
|
19
19
|
|
20
|
+
# Make it so that calling `rake release` just calls `rake release:rubygems_push` to
|
21
|
+
# avoid creating and pushing a new tag.
|
22
|
+
|
23
|
+
Rake::Task['release'].clear
|
24
|
+
desc 'Customized release task to avoid creating a new tag'
|
25
|
+
task release: 'release:rubygem_push'
|
26
|
+
|
20
27
|
# RSpec
|
21
28
|
|
22
29
|
require 'rspec/core/rake_task'
|
data/lib/track_open_instances.rb
CHANGED
@@ -20,7 +20,7 @@ require_relative 'track_open_instances/version'
|
|
20
20
|
# # Simulate opening the file
|
21
21
|
# puts "Opening file: #{path}"
|
22
22
|
# # Register the instance for tracking
|
23
|
-
# self.class.
|
23
|
+
# self.class.add_open_instance(self)
|
24
24
|
# end
|
25
25
|
#
|
26
26
|
# # Implement the close logic specific to the resource
|
@@ -28,20 +28,20 @@ require_relative 'track_open_instances/version'
|
|
28
28
|
# # Simulate closing the file
|
29
29
|
# puts "Closing file: #{path}"
|
30
30
|
# # Remove the instance from tracking
|
31
|
-
# self.class.
|
31
|
+
# self.class.remove_open_instance(self)
|
32
32
|
# end
|
33
33
|
# end
|
34
34
|
#
|
35
35
|
# file1 = ManagedFile.new('/tmp/file1.txt')
|
36
36
|
# file2 = ManagedFile.new('/tmp/file2.txt')
|
37
37
|
#
|
38
|
-
# puts ManagedFile.
|
39
|
-
# puts ManagedFile.
|
38
|
+
# puts ManagedFile.open_instances.count #=> 2
|
39
|
+
# puts ManagedFile.open_instances.keys.inspect #=> [#<ManagedFile:...>, #<ManagedFile:...>]
|
40
40
|
#
|
41
41
|
# file1.close
|
42
42
|
#
|
43
|
-
# puts ManagedFile.
|
44
|
-
# puts ManagedFile.
|
43
|
+
# puts ManagedFile.open_instances.count #=> 1
|
44
|
+
# puts ManagedFile.open_instances.keys.inspect #=> [#<ManagedFile:...>]
|
45
45
|
#
|
46
46
|
# # In a test suite's teardown, you might use:
|
47
47
|
# # ManagedFile.assert_no_open_instances # This would raise if file2 wasn't closed
|
@@ -65,7 +65,8 @@ module TrackOpenInstances
|
|
65
65
|
# Initializes a new OpenInstance
|
66
66
|
#
|
67
67
|
# @param instance [Object] The tracked instance
|
68
|
-
# @param creation_stack [Array<
|
68
|
+
# @param creation_stack [Array<Thread::Backtrace::Location>] The call stack at
|
69
|
+
# the time of instance creation
|
69
70
|
#
|
70
71
|
# @return [void]
|
71
72
|
#
|
@@ -91,11 +92,11 @@ module TrackOpenInstances
|
|
91
92
|
base.extend(ClassMethods)
|
92
93
|
# @!attribute [rw] open_instances
|
93
94
|
# Internal storage for all tracked instances
|
94
|
-
# @return [Hash{
|
95
|
+
# @return [Hash{Object => OpenInstance}] The list of currently tracked instances
|
95
96
|
base.instance_variable_set(:@open_instances, {}.compare_by_identity)
|
96
97
|
# @!visibility private
|
97
98
|
# @!attribute [r] open_instances_mutex
|
98
|
-
# Mutex to ensure thread-safe access to the open_instances
|
99
|
+
# Mutex to ensure thread-safe access to the open_instances hash
|
99
100
|
base.instance_variable_set(:@open_instances_mutex, Thread::Mutex.new)
|
100
101
|
end
|
101
102
|
|
@@ -106,16 +107,16 @@ module TrackOpenInstances
|
|
106
107
|
# Direct access to the internal list of tracked instances
|
107
108
|
#
|
108
109
|
# Note: This returns all instances ever tracked unless explicitly removed.
|
109
|
-
# Use `
|
110
|
+
# Use `open_instances` for checking leaks. Direct use is uncommon.
|
110
111
|
#
|
111
112
|
# @example
|
112
113
|
# # Assuming MyResource includes TrackOpenInstances
|
113
114
|
# res1 = MyResource.new
|
114
115
|
# res2 = MyResource.new
|
115
116
|
# res1.close
|
116
|
-
# MyResource.open_instances #=> [#<MyResource... object_id=res2>] (after res1 removed)
|
117
|
+
# MyResource.open_instances.keys #=> [#<MyResource... object_id=res2>] (after res1 removed)
|
117
118
|
#
|
118
|
-
# @return [
|
119
|
+
# @return [Hash{Object => OpenInstance}] The raw list of currently tracked instances
|
119
120
|
#
|
120
121
|
# @api private
|
121
122
|
def open_instances
|
@@ -135,7 +136,7 @@ module TrackOpenInstances
|
|
135
136
|
# @api private
|
136
137
|
def add_open_instance(instance)
|
137
138
|
@open_instances_mutex.synchronize do
|
138
|
-
@open_instances[instance] = OpenInstance.new(instance,
|
139
|
+
@open_instances[instance] = OpenInstance.new(instance, caller_locations(3))
|
139
140
|
end
|
140
141
|
end
|
141
142
|
|
@@ -159,7 +160,7 @@ module TrackOpenInstances
|
|
159
160
|
# @example
|
160
161
|
# res1 = MyResource.new
|
161
162
|
# res2 = MyResource.new
|
162
|
-
# MyResource.open_instance_count #=>
|
163
|
+
# MyResource.open_instance_count #=> 2
|
163
164
|
#
|
164
165
|
# @return [Integer]
|
165
166
|
#
|
@@ -206,9 +207,10 @@ module TrackOpenInstances
|
|
206
207
|
#
|
207
208
|
def open_instances_report_header
|
208
209
|
count = @open_instances.count
|
210
|
+
class_name = name || 'anonymous class'
|
209
211
|
|
210
212
|
"There #{count == 1 ? 'is' : 'are'} #{count} " \
|
211
|
-
"open #{
|
213
|
+
"open #{class_name} instance#{count == 1 ? '' : 's'}:\n"
|
212
214
|
end
|
213
215
|
|
214
216
|
# The body of the report detailing each open instance
|
@@ -222,21 +224,24 @@ module TrackOpenInstances
|
|
222
224
|
@open_instances.each do |instance, open_instance|
|
223
225
|
body << " - object_id=#{instance.object_id}\n"
|
224
226
|
body << " Call stack when created:\n"
|
225
|
-
open_instance.creation_stack.
|
227
|
+
open_instance.creation_stack.each do |location|
|
228
|
+
body << " #{location.path}:#{location.lineno}:in `#{location.label}'\n"
|
229
|
+
end
|
226
230
|
end
|
227
231
|
end
|
228
232
|
end
|
229
233
|
|
230
234
|
# Asserts that no instances of the class remain unclosed
|
231
235
|
#
|
232
|
-
#
|
233
|
-
#
|
236
|
+
# Commonly used in test suite teardown blocks to enure that all resources were
|
237
|
+
# released.
|
234
238
|
#
|
235
239
|
# @example
|
236
240
|
# # In RSpec teardown (e.g., after(:each))
|
237
241
|
# MyResource.assert_no_open_instances
|
238
242
|
#
|
239
|
-
# @raise [RuntimeError] If any instances are found unclosed
|
243
|
+
# @raise [RuntimeError] If any instances are found unclosed with a report of
|
244
|
+
# unclosed instances
|
240
245
|
#
|
241
246
|
# @return [void]
|
242
247
|
#
|
data/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"devDependencies": {
|
3
|
-
"@commitlint/cli": "^19.
|
4
|
-
"@commitlint/config-conventional": "^19.
|
5
|
-
"husky": "^9.1.
|
3
|
+
"@commitlint/cli": "^19.8.0",
|
4
|
+
"@commitlint/config-conventional": "^19.8.0",
|
5
|
+
"husky": "^9.1.7"
|
6
6
|
},
|
7
7
|
"scripts": {
|
8
8
|
"postinstall": "husky",
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"bootstrap-sha": "c0076bab53d3eae31f3798217e281e3d51a292a3",
|
3
|
+
"packages": {
|
4
|
+
".": {
|
5
|
+
"release-type": "ruby",
|
6
|
+
"package-name": "track_open_instances",
|
7
|
+
"changelog-path": "CHANGELOG.md",
|
8
|
+
"version-file": "lib/track_open_instances/version.rb",
|
9
|
+
"bump-minor-pre-major": true,
|
10
|
+
"bump-patch-for-minor-pre-major": true,
|
11
|
+
"draft": false,
|
12
|
+
"prerelease": false,
|
13
|
+
"include-component-in-tag": false
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"plugins": [
|
17
|
+
{
|
18
|
+
"type": "sentence-case"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
22
|
+
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: track_open_instances
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Couball
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bundler-audit
|
@@ -195,7 +195,7 @@ extra_rdoc_files: []
|
|
195
195
|
files:
|
196
196
|
- ".husky/commit-msg"
|
197
197
|
- ".markdownlint.yml"
|
198
|
-
- ".
|
198
|
+
- ".release-please-manifest.json"
|
199
199
|
- ".rspec"
|
200
200
|
- ".rubocop.yml"
|
201
201
|
- ".yamllint.yml"
|
@@ -204,13 +204,13 @@ files:
|
|
204
204
|
- CONTRIBUTING.md
|
205
205
|
- LICENSE.txt
|
206
206
|
- README.md
|
207
|
-
- RELEASING.md
|
208
207
|
- Rakefile
|
209
208
|
- commitlint.config.js
|
210
209
|
- lib/track_open_instances.rb
|
211
210
|
- lib/track_open_instances/version.rb
|
212
211
|
- package.json
|
213
212
|
- pre-commit
|
213
|
+
- release-please-config.json
|
214
214
|
homepage: https://github.com/main-branch/track_open_instances
|
215
215
|
licenses:
|
216
216
|
- MIT
|
@@ -218,8 +218,8 @@ metadata:
|
|
218
218
|
allowed_push_host: https://rubygems.org
|
219
219
|
homepage_uri: https://github.com/main-branch/track_open_instances
|
220
220
|
source_code_uri: https://github.com/main-branch/track_open_instances
|
221
|
-
documentation_uri: https://rubydoc.info/gems/track_open_instances/0.1.
|
222
|
-
changelog_uri: https://rubydoc.info/gems/track_open_instances/0.1.
|
221
|
+
documentation_uri: https://rubydoc.info/gems/track_open_instances/0.1.10
|
222
|
+
changelog_uri: https://rubydoc.info/gems/track_open_instances/0.1.10/file/CHANGELOG.md
|
223
223
|
rubygems_mfa_required: 'true'
|
224
224
|
rdoc_options: []
|
225
225
|
require_paths:
|
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
237
|
requirements:
|
238
238
|
- 'Platform: Mac, Linux, or Windows'
|
239
239
|
- 'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
|
240
|
-
rubygems_version: 3.6.
|
240
|
+
rubygems_version: 3.6.7
|
241
241
|
specification_version: 4
|
242
242
|
summary: A mixin to ensure that all instances of a class are closed
|
243
243
|
test_files: []
|
data/.qlty/qlty.toml
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
# This file was automatically generated by `qlty init`.
|
2
|
-
# You can modify it to suit your needs.
|
3
|
-
# We recommend you to commit this file to your repository.
|
4
|
-
#
|
5
|
-
# This configuration is used by both Qlty CLI and Qlty Cloud.
|
6
|
-
#
|
7
|
-
# Qlty CLI -- Code quality toolkit for developers
|
8
|
-
# Qlty Cloud -- Fully automated Code Health Platform
|
9
|
-
#
|
10
|
-
# Try Qlty Cloud: https://qlty.sh
|
11
|
-
#
|
12
|
-
# For a guide to configuration, visit https://qlty.sh/d/config
|
13
|
-
# Or for a full reference, visit https://qlty.sh/d/qlty-toml
|
14
|
-
config_version = "0"
|
15
|
-
|
16
|
-
exclude_patterns = [
|
17
|
-
"*_min.*",
|
18
|
-
"*-min.*",
|
19
|
-
"*.min.*",
|
20
|
-
"**/*.d.ts",
|
21
|
-
"**/.yarn/**",
|
22
|
-
"**/bower_components/**",
|
23
|
-
"**/build/**",
|
24
|
-
"**/cache/**",
|
25
|
-
"**/config/**",
|
26
|
-
"**/db/**",
|
27
|
-
"**/deps/**",
|
28
|
-
"**/dist/**",
|
29
|
-
"**/extern/**",
|
30
|
-
"**/external/**",
|
31
|
-
"**/generated/**",
|
32
|
-
"**/Godeps/**",
|
33
|
-
"**/gradlew/**",
|
34
|
-
"**/mvnw/**",
|
35
|
-
"**/node_modules/**",
|
36
|
-
"**/protos/**",
|
37
|
-
"**/seed/**",
|
38
|
-
"**/target/**",
|
39
|
-
"**/testdata/**",
|
40
|
-
"**/vendor/**",
|
41
|
-
"**/assets/**",
|
42
|
-
]
|
43
|
-
|
44
|
-
test_patterns = [
|
45
|
-
"**/test/**",
|
46
|
-
"**/spec/**",
|
47
|
-
"**/*.test.*",
|
48
|
-
"**/*.spec.*",
|
49
|
-
"**/*_test.*",
|
50
|
-
"**/*_spec.*",
|
51
|
-
"**/test_*.*",
|
52
|
-
"**/spec_*.*",
|
53
|
-
]
|
54
|
-
|
55
|
-
[smells]
|
56
|
-
mode = "comment"
|
57
|
-
|
58
|
-
[[source]]
|
59
|
-
name = "default"
|
60
|
-
default = true
|
61
|
-
|
62
|
-
[[plugin]]
|
63
|
-
name = "actionlint"
|
64
|
-
|
65
|
-
[[plugin]]
|
66
|
-
name = "checkov"
|
67
|
-
|
68
|
-
[[plugin]]
|
69
|
-
name = "golangci-lint"
|
70
|
-
mode = "comment"
|
71
|
-
|
72
|
-
[[plugin]]
|
73
|
-
name = "markdownlint"
|
74
|
-
version = "0.41.0"
|
75
|
-
mode = "comment"
|
76
|
-
|
77
|
-
[[plugin]]
|
78
|
-
name = "prettier"
|
79
|
-
|
80
|
-
# [[plugin]]
|
81
|
-
# name = "radarlint-ruby"
|
82
|
-
|
83
|
-
[[plugin]]
|
84
|
-
name = "ripgrep"
|
85
|
-
mode = "comment"
|
86
|
-
|
87
|
-
# [[plugin]]
|
88
|
-
# name = "rubocop"
|
89
|
-
# version = "1.75.2"
|
90
|
-
# package_file = "Gemfile"
|
91
|
-
# package_filters = ["rubocop"]
|
92
|
-
|
93
|
-
[[plugin]]
|
94
|
-
name = "trivy"
|
95
|
-
drivers = [
|
96
|
-
"config",
|
97
|
-
"fs-vuln",
|
98
|
-
]
|
99
|
-
|
100
|
-
[[plugin]]
|
101
|
-
name = "trufflehog"
|
102
|
-
|
103
|
-
[[plugin]]
|
104
|
-
name = "yamllint"
|
data/RELEASING.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# How to release a new track_open_instances gem
|
2
|
-
|
3
|
-
Run `create-github-release <release-type>` in the root of a clean working tree.
|
4
|
-
|
5
|
-
Where `release-type` is `major`, `minor`, or `patch` depending on the nature of the
|
6
|
-
changes. Refer to the labels on each PR since the last release to determine which
|
7
|
-
semver release type to specify.
|
8
|
-
|
9
|
-
Follow the directions that `create-github-release` after it prepares the release PR.
|