bullematic 0.1.0 → 0.2.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/CHANGELOG.md +18 -1
- data/README.md +23 -11
- data/exe/bullematic +7 -0
- data/lib/bullematic/ast/finder.rb +190 -35
- data/lib/bullematic/ast/parser.rb +1 -17
- data/lib/bullematic/ast/rewriter.rb +90 -28
- data/lib/bullematic/cli.rb +185 -0
- data/lib/bullematic/configuration.rb +15 -4
- data/lib/bullematic/detection.rb +110 -13
- data/lib/bullematic/evidence_store.rb +78 -0
- data/lib/bullematic/fixer.rb +258 -31
- data/lib/bullematic/integrations/minitest.rb +20 -6
- data/lib/bullematic/integrations/rails.rb +23 -9
- data/lib/bullematic/integrations/rspec.rb +19 -7
- data/lib/bullematic/logger.rb +24 -12
- data/lib/bullematic/notifier.rb +131 -36
- data/lib/bullematic/version.rb +1 -1
- data/lib/bullematic.rb +12 -4
- data/sig/generated/bullematic/ast/finder.rbs +70 -11
- data/sig/generated/bullematic/ast/parser.rbs +0 -6
- data/sig/generated/bullematic/ast/rewriter.rbs +28 -11
- data/sig/generated/bullematic/cli.rbs +56 -0
- data/sig/generated/bullematic/configuration.rbs +16 -20
- data/sig/generated/bullematic/detection.rbs +77 -7
- data/sig/generated/bullematic/evidence_store.rbs +35 -0
- data/sig/generated/bullematic/fixer.rbs +59 -3
- data/sig/generated/bullematic/integrations/rails.rbs +7 -0
- data/sig/generated/bullematic/logger.rbs +5 -0
- data/sig/generated/bullematic/notifier.rbs +17 -13
- data/sig/generated/bullematic.rbs +5 -0
- data/sig/stubs/rails.rbs +60 -0
- metadata +161 -8
- data/Rakefile +0 -26
- data/Steepfile +0 -15
- data/assets/logo-header.svg +0 -28
- data/rbs_collection.lock.yaml +0 -24
- data/rbs_collection.yaml +0 -14
data/Rakefile
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "bundler/gem_tasks"
|
|
4
|
-
require "rspec/core/rake_task"
|
|
5
|
-
|
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
7
|
-
|
|
8
|
-
desc "Generate RBS files from inline annotations"
|
|
9
|
-
task :rbs_inline do
|
|
10
|
-
sh "bundle exec rbs-inline --output sig lib"
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
desc "Run Steep type check"
|
|
14
|
-
task :steep do
|
|
15
|
-
sh "bundle exec steep check"
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
desc "Install RBS collection"
|
|
19
|
-
task :rbs_collection_install do
|
|
20
|
-
sh "bundle exec rbs collection install"
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
desc "Run all type checks (generate RBS and run Steep)"
|
|
24
|
-
task typecheck: %i[rbs_inline steep]
|
|
25
|
-
|
|
26
|
-
task default: %i[spec]
|
data/Steepfile
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
D = Steep::Diagnostic
|
|
4
|
-
|
|
5
|
-
target :lib do
|
|
6
|
-
signature "sig/generated"
|
|
7
|
-
signature "sig/stubs"
|
|
8
|
-
|
|
9
|
-
check "lib"
|
|
10
|
-
|
|
11
|
-
configure_code_diagnostics do |hash|
|
|
12
|
-
hash[D::Ruby::UnannotatedEmptyCollection] = :hint
|
|
13
|
-
hash[D::Ruby::BlockTypeMismatch] = :hint
|
|
14
|
-
end
|
|
15
|
-
end
|