active_cached_resource 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/LICENSE +21 -0
- data/lib/active_cached_resource/caching.rb +104 -1
- data/lib/active_cached_resource/configuration.rb +22 -1
- data/lib/active_cached_resource/logger.rb +14 -0
- data/lib/active_cached_resource/model.rb +18 -0
- data/lib/active_cached_resource/version.rb +1 -8
- data/lib/activeresource/lib/active_resource/collection.rb +2 -0
- metadata +4 -310
- data/.rspec +0 -3
- data/.rubocop.yml +0 -23
- data/.standard.yml +0 -2
- data/Rakefile +0 -29
- data/example/consumer/.dockerignore +0 -41
- data/example/consumer/.gitattributes +0 -9
- data/example/consumer/.gitignore +0 -36
- data/example/consumer/.kamal/hooks/docker-setup.sample +0 -3
- data/example/consumer/.kamal/hooks/post-deploy.sample +0 -14
- data/example/consumer/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/hooks/pre-build.sample +0 -51
- data/example/consumer/.kamal/hooks/pre-connect.sample +0 -47
- data/example/consumer/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/consumer/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/secrets +0 -17
- data/example/consumer/Dockerfile +0 -65
- data/example/consumer/Gemfile +0 -17
- data/example/consumer/Rakefile +0 -6
- data/example/consumer/app/controllers/application_controller.rb +0 -2
- data/example/consumer/app/controllers/concerns/.keep +0 -0
- data/example/consumer/app/jobs/application_job.rb +0 -7
- data/example/consumer/app/mailers/application_mailer.rb +0 -4
- data/example/consumer/app/models/application_record.rb +0 -3
- data/example/consumer/app/models/concerns/.keep +0 -0
- data/example/consumer/app/models/person.rb +0 -9
- data/example/consumer/app/views/layouts/mailer.html.erb +0 -13
- data/example/consumer/app/views/layouts/mailer.text.erb +0 -1
- data/example/consumer/bin/brakeman +0 -7
- data/example/consumer/bin/bundle +0 -109
- data/example/consumer/bin/dev +0 -2
- data/example/consumer/bin/docker-entrypoint +0 -14
- data/example/consumer/bin/jobs +0 -6
- data/example/consumer/bin/kamal +0 -27
- data/example/consumer/bin/rails +0 -4
- data/example/consumer/bin/rake +0 -4
- data/example/consumer/bin/rubocop +0 -8
- data/example/consumer/bin/setup +0 -34
- data/example/consumer/bin/thrust +0 -5
- data/example/consumer/config/application.rb +0 -20
- data/example/consumer/config/boot.rb +0 -3
- data/example/consumer/config/cache.yml +0 -16
- data/example/consumer/config/credentials.yml.enc +0 -1
- data/example/consumer/config/database.yml +0 -14
- data/example/consumer/config/deploy.yml +0 -116
- data/example/consumer/config/environment.rb +0 -5
- data/example/consumer/config/environments/development.rb +0 -64
- data/example/consumer/config/environments/production.rb +0 -85
- data/example/consumer/config/environments/test.rb +0 -50
- data/example/consumer/config/initializers/cors.rb +0 -16
- data/example/consumer/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/consumer/config/initializers/inflections.rb +0 -16
- data/example/consumer/config/locales/en.yml +0 -31
- data/example/consumer/config/puma.rb +0 -41
- data/example/consumer/config/queue.yml +0 -18
- data/example/consumer/config/recurring.yml +0 -10
- data/example/consumer/config/routes.rb +0 -10
- data/example/consumer/config.ru +0 -6
- data/example/consumer/db/cache_schema.rb +0 -14
- data/example/consumer/db/queue_schema.rb +0 -129
- data/example/consumer/db/seeds.rb +0 -0
- data/example/consumer/lib/tasks/.keep +0 -0
- data/example/consumer/log/.keep +0 -0
- data/example/consumer/public/robots.txt +0 -1
- data/example/consumer/script/.keep +0 -0
- data/example/consumer/storage/.keep +0 -0
- data/example/consumer/tmp/.keep +0 -0
- data/example/consumer/tmp/cache/.keep +0 -0
- data/example/consumer/tmp/pids/.keep +0 -0
- data/example/consumer/tmp/storage/.keep +0 -0
- data/example/consumer/vendor/.keep +0 -0
- data/example/provider/.dockerignore +0 -41
- data/example/provider/.gitattributes +0 -9
- data/example/provider/.gitignore +0 -32
- data/example/provider/.kamal/hooks/docker-setup.sample +0 -3
- data/example/provider/.kamal/hooks/post-deploy.sample +0 -14
- data/example/provider/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/hooks/pre-build.sample +0 -51
- data/example/provider/.kamal/hooks/pre-connect.sample +0 -47
- data/example/provider/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/provider/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/secrets +0 -17
- data/example/provider/Dockerfile +0 -65
- data/example/provider/Gemfile +0 -14
- data/example/provider/Rakefile +0 -6
- data/example/provider/app/controllers/application_controller.rb +0 -2
- data/example/provider/app/controllers/concerns/.keep +0 -0
- data/example/provider/app/controllers/people_controller.rb +0 -68
- data/example/provider/app/jobs/application_job.rb +0 -7
- data/example/provider/app/mailers/application_mailer.rb +0 -4
- data/example/provider/app/models/address.rb +0 -3
- data/example/provider/app/models/application_record.rb +0 -3
- data/example/provider/app/models/company.rb +0 -3
- data/example/provider/app/models/concerns/.keep +0 -0
- data/example/provider/app/models/person.rb +0 -6
- data/example/provider/app/views/layouts/mailer.html.erb +0 -13
- data/example/provider/app/views/layouts/mailer.text.erb +0 -1
- data/example/provider/bin/brakeman +0 -7
- data/example/provider/bin/bundle +0 -109
- data/example/provider/bin/dev +0 -2
- data/example/provider/bin/docker-entrypoint +0 -14
- data/example/provider/bin/jobs +0 -6
- data/example/provider/bin/kamal +0 -27
- data/example/provider/bin/rails +0 -4
- data/example/provider/bin/rake +0 -4
- data/example/provider/bin/rubocop +0 -8
- data/example/provider/bin/setup +0 -34
- data/example/provider/bin/thrust +0 -5
- data/example/provider/config/application.rb +0 -44
- data/example/provider/config/boot.rb +0 -3
- data/example/provider/config/cache.yml +0 -16
- data/example/provider/config/credentials.yml.enc +0 -1
- data/example/provider/config/database.yml +0 -20
- data/example/provider/config/deploy.yml +0 -116
- data/example/provider/config/environment.rb +0 -5
- data/example/provider/config/environments/development.rb +0 -64
- data/example/provider/config/environments/production.rb +0 -85
- data/example/provider/config/environments/test.rb +0 -50
- data/example/provider/config/initializers/cors.rb +0 -16
- data/example/provider/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/provider/config/initializers/inflections.rb +0 -16
- data/example/provider/config/locales/en.yml +0 -31
- data/example/provider/config/puma.rb +0 -41
- data/example/provider/config/queue.yml +0 -18
- data/example/provider/config/recurring.yml +0 -10
- data/example/provider/config/routes.rb +0 -4
- data/example/provider/config.ru +0 -6
- data/example/provider/db/cache_schema.rb +0 -14
- data/example/provider/db/migrate/20241202183937_create_people.rb +0 -11
- data/example/provider/db/migrate/20241202183955_create_addresses.rb +0 -13
- data/example/provider/db/migrate/20241202184017_create_companies.rb +0 -14
- data/example/provider/db/queue_schema.rb +0 -129
- data/example/provider/db/schema.rb +0 -47
- data/example/provider/db/seeds.rb +0 -18
- data/example/provider/lib/tasks/.keep +0 -0
- data/example/provider/log/.keep +0 -0
- data/example/provider/public/robots.txt +0 -1
- data/example/provider/script/.keep +0 -0
- data/example/provider/storage/.keep +0 -0
- data/example/provider/tmp/.keep +0 -0
- data/example/provider/tmp/pids/.keep +0 -0
- data/example/provider/tmp/storage/.keep +0 -0
- data/example/provider/vendor/.keep +0 -0
- data/lib/activeresource/.gitignore +0 -15
- data/lib/activeresource/examples/performance.rb +0 -72
- data/lib/activeresource/test/abstract_unit.rb +0 -154
- data/lib/activeresource/test/cases/active_job_serializer_test.rb +0 -53
- data/lib/activeresource/test/cases/association_test.rb +0 -104
- data/lib/activeresource/test/cases/associations/builder/belongs_to_test.rb +0 -42
- data/lib/activeresource/test/cases/associations/builder/has_many_test.rb +0 -28
- data/lib/activeresource/test/cases/associations/builder/has_one_test.rb +0 -28
- data/lib/activeresource/test/cases/authorization_test.rb +0 -276
- data/lib/activeresource/test/cases/base/custom_methods_test.rb +0 -155
- data/lib/activeresource/test/cases/base/equality_test.rb +0 -53
- data/lib/activeresource/test/cases/base/load_test.rb +0 -249
- data/lib/activeresource/test/cases/base/schema_test.rb +0 -428
- data/lib/activeresource/test/cases/base_errors_test.rb +0 -129
- data/lib/activeresource/test/cases/base_test.rb +0 -1622
- data/lib/activeresource/test/cases/callbacks_test.rb +0 -155
- data/lib/activeresource/test/cases/collection_test.rb +0 -196
- data/lib/activeresource/test/cases/connection_test.rb +0 -357
- data/lib/activeresource/test/cases/finder_test.rb +0 -217
- data/lib/activeresource/test/cases/format_test.rb +0 -137
- data/lib/activeresource/test/cases/http_mock_test.rb +0 -213
- data/lib/activeresource/test/cases/inheritence_test.rb +0 -19
- data/lib/activeresource/test/cases/inheriting_hash_test.rb +0 -25
- data/lib/activeresource/test/cases/log_subscriber_test.rb +0 -64
- data/lib/activeresource/test/cases/reflection_test.rb +0 -65
- data/lib/activeresource/test/cases/validations_test.rb +0 -78
- data/lib/activeresource/test/fixtures/address.rb +0 -20
- data/lib/activeresource/test/fixtures/beast.rb +0 -16
- data/lib/activeresource/test/fixtures/comment.rb +0 -5
- data/lib/activeresource/test/fixtures/customer.rb +0 -5
- data/lib/activeresource/test/fixtures/fixtures.rbi +0 -46
- data/lib/activeresource/test/fixtures/inventory.rb +0 -14
- data/lib/activeresource/test/fixtures/person.rb +0 -15
- data/lib/activeresource/test/fixtures/pet.rb +0 -6
- data/lib/activeresource/test/fixtures/post.rb +0 -5
- data/lib/activeresource/test/fixtures/product.rb +0 -11
- data/lib/activeresource/test/fixtures/project.rb +0 -19
- data/lib/activeresource/test/fixtures/proxy.rb +0 -6
- data/lib/activeresource/test/fixtures/sound.rb +0 -11
- data/lib/activeresource/test/fixtures/street_address.rb +0 -6
- data/lib/activeresource/test/fixtures/subscription_plan.rb +0 -7
- data/lib/activeresource/test/fixtures/weather.rb +0 -21
- data/lib/activeresource/test/setter_trap.rb +0 -28
- data/lib/activeresource/test/singleton_test.rb +0 -138
- data/lib/activeresource/test/threadsafe_attributes_test.rb +0 -91
- data/sorbet/config +0 -6
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activemodel.rbi +0 -89
- data/sorbet/rbi/annotations/activesupport.rbi +0 -457
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -21
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/actioncable@8.0.1.rbi +0 -252
- data/sorbet/rbi/gems/actionmailbox@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/actionmailer@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/actionpack@8.0.1.rbi +0 -21111
- data/sorbet/rbi/gems/actiontext@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/actionview@8.0.1.rbi +0 -16409
- data/sorbet/rbi/gems/activejob@8.0.1.rbi +0 -90
- data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +0 -166
- data/sorbet/rbi/gems/activemodel@8.0.1.rbi +0 -6865
- data/sorbet/rbi/gems/activerecord@8.0.1.rbi +0 -43277
- data/sorbet/rbi/gems/activestorage@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/activesupport@8.0.1.rbi +0 -21426
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +0 -78
- data/sorbet/rbi/gems/builder@3.3.0.rbi +0 -9
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3607
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +0 -11645
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -623
- data/sorbet/rbi/gems/date@3.4.1.rbi +0 -75
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -1131
- data/sorbet/rbi/gems/docile@1.4.1.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -150
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +0 -9
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/io-console@0.8.0.rbi +0 -9
- data/sorbet/rbi/gems/json@2.9.0.rbi +0 -1944
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +0 -240
- data/sorbet/rbi/gems/logger@1.6.3.rbi +0 -940
- data/sorbet/rbi/gems/loofah@2.23.1.rbi +0 -1081
- data/sorbet/rbi/gems/mail@2.8.1.rbi +0 -9
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +0 -9
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +0 -304
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +0 -9
- data/sorbet/rbi/gems/minitest@5.25.4.rbi +0 -1547
- data/sorbet/rbi/gems/mocha@2.7.1.rbi +0 -12
- data/sorbet/rbi/gems/msgpack@1.7.5.rbi +0 -320
- data/sorbet/rbi/gems/net-imap@0.5.2.rbi +0 -9
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +0 -9
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +0 -292
- data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +0 -9
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nio4r@2.7.4.rbi +0 -9
- data/sorbet/rbi/gems/nokogiri@1.17.2.rbi +0 -8201
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +0 -291
- data/sorbet/rbi/gems/parser@3.3.6.0.rbi +0 -5519
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1151
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10076
- data/sorbet/rbi/gems/psych@5.2.1.rbi +0 -1785
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack-session@2.0.0.rbi +0 -727
- data/sorbet/rbi/gems/rack-test@2.1.0.rbi +0 -747
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4905
- data/sorbet/rbi/gems/rackup@2.2.1.rbi +0 -230
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +0 -758
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +0 -785
- data/sorbet/rbi/gems/rails@8.0.1.rbi +0 -9
- data/sorbet/rbi/gems/railties@8.0.1.rbi +0 -6347
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.2.1.rbi +0 -3028
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rdoc@6.9.1.rbi +0 -12593
- data/sorbet/rbi/gems/regexp_parser@2.9.3.rbi +0 -3772
- data/sorbet/rbi/gems/reline@0.6.0.rbi +0 -2454
- data/sorbet/rbi/gems/rexml@3.4.0.rbi +0 -4871
- data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +0 -11284
- data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +0 -8183
- data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +0 -5341
- data/sorbet/rbi/gems/rspec-support@3.13.2.rbi +0 -1630
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +0 -83
- data/sorbet/rbi/gems/rubocop-ast@1.37.0.rbi +0 -7713
- data/sorbet/rbi/gems/rubocop-md@1.2.4.rbi +0 -123
- data/sorbet/rbi/gems/rubocop-minitest@0.36.0.rbi +0 -2613
- data/sorbet/rbi/gems/rubocop-packaging@0.5.2.rbi +0 -388
- data/sorbet/rbi/gems/rubocop-performance@1.23.0.rbi +0 -9
- data/sorbet/rbi/gems/rubocop-rails@2.27.0.rbi +0 -9535
- data/sorbet/rbi/gems/rubocop@1.69.2.rbi +0 -59600
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +0 -78
- data/sorbet/rbi/gems/simplecov-html@0.13.1.rbi +0 -225
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/sqlite3@2.3.1.rbi +0 -1824
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +0 -9
- data/sorbet/rbi/gems/standard-performance@1.6.0.rbi +0 -9
- data/sorbet/rbi/gems/standard@1.43.0.rbi +0 -926
- data/sorbet/rbi/gems/stringio@3.1.2.rbi +0 -9
- data/sorbet/rbi/gems/tapioca@0.16.4.rbi +0 -3597
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/timeout@0.4.2.rbi +0 -151
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi +0 -130
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +0 -251
- data/sorbet/rbi/gems/uri@1.0.2.rbi +0 -2377
- data/sorbet/rbi/gems/useragent@0.16.11.rbi +0 -9
- data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +0 -9
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -9
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18504
- data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +0 -9
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -13
@@ -1,926 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `standard` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem standard`.
|
6
|
-
|
7
|
-
|
8
|
-
# source://standard//lib/standard/rubocop/ext.rb#1
|
9
|
-
module RuboCop; end
|
10
|
-
|
11
|
-
# source://standard//lib/standard/rubocop/ext.rb#17
|
12
|
-
class RuboCop::CommentConfig
|
13
|
-
# @return [CommentConfig] a new instance of CommentConfig
|
14
|
-
#
|
15
|
-
# source://standard//lib/standard/rubocop/ext.rb#20
|
16
|
-
def initialize(processed_source); end
|
17
|
-
|
18
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#63
|
19
|
-
def comment_only_line?(line_number); end
|
20
|
-
|
21
|
-
# source://rubocop-ast/1.37.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
22
|
-
def config(*_arg0, **_arg1, &_arg2); end
|
23
|
-
|
24
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#51
|
25
|
-
def cop_disabled_line_ranges; end
|
26
|
-
|
27
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#39
|
28
|
-
def cop_enabled_at_line?(cop, line_number); end
|
29
|
-
|
30
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#47
|
31
|
-
def cop_opted_in?(cop); end
|
32
|
-
|
33
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#55
|
34
|
-
def extra_enabled_comments; end
|
35
|
-
|
36
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#30
|
37
|
-
def processed_source; end
|
38
|
-
|
39
|
-
# source://rubocop-ast/1.37.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9
|
40
|
-
def registry(*_arg0, **_arg1, &_arg2); end
|
41
|
-
|
42
|
-
private
|
43
|
-
|
44
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#96
|
45
|
-
def analyze; end
|
46
|
-
|
47
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#124
|
48
|
-
def analyze_cop(analysis, directive); end
|
49
|
-
|
50
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#144
|
51
|
-
def analyze_disabled(analysis, directive); end
|
52
|
-
|
53
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#155
|
54
|
-
def analyze_rest(analysis, directive); end
|
55
|
-
|
56
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#135
|
57
|
-
def analyze_single_line(analysis, directive); end
|
58
|
-
|
59
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#164
|
60
|
-
def cop_line_ranges(analysis); end
|
61
|
-
|
62
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#170
|
63
|
-
def each_directive; end
|
64
|
-
|
65
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#69
|
66
|
-
def extra_enabled_comments_with_names(extras:, names:); end
|
67
|
-
|
68
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#190
|
69
|
-
def handle_enable_all(directive, names, extras); end
|
70
|
-
|
71
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#204
|
72
|
-
def handle_switch(directive, names, extras); end
|
73
|
-
|
74
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#115
|
75
|
-
def inject_disabled_cops_directives(analyses); end
|
76
|
-
|
77
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#183
|
78
|
-
def non_comment_token_line_numbers; end
|
79
|
-
|
80
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#34
|
81
|
-
def old_initialize(processed_source); end
|
82
|
-
|
83
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#83
|
84
|
-
def opt_in_cops; end
|
85
|
-
|
86
|
-
# source://rubocop/1.69.2/lib/rubocop/comment_config.rb#179
|
87
|
-
def qualified_cop_name(cop_name); end
|
88
|
-
end
|
89
|
-
|
90
|
-
module RuboCop::Cop; end
|
91
|
-
module RuboCop::Cop::Lint; end
|
92
|
-
|
93
|
-
# source://standard//lib/standard/rubocop/ext.rb#2
|
94
|
-
class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
|
95
|
-
# source://standard//lib/standard/rubocop/ext.rb#4
|
96
|
-
def message(_); end
|
97
|
-
|
98
|
-
# source://rubocop/1.69.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
99
|
-
def on_if(node); end
|
100
|
-
|
101
|
-
# source://rubocop/1.69.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
102
|
-
def on_until(node); end
|
103
|
-
|
104
|
-
# source://rubocop/1.69.2/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
105
|
-
def on_while(node); end
|
106
|
-
|
107
|
-
private
|
108
|
-
|
109
|
-
# source://rubocop/1.69.2/lib/rubocop/cop/lint/assignment_in_condition.rb#82
|
110
|
-
def allowed_construct?(asgn_node); end
|
111
|
-
|
112
|
-
# source://rubocop/1.69.2/lib/rubocop/cop/lint/assignment_in_condition.rb#86
|
113
|
-
def conditional_assignment?(asgn_node); end
|
114
|
-
|
115
|
-
# source://rubocop/1.69.2/lib/rubocop/cop/lint/assignment_in_condition.rb#90
|
116
|
-
def skip_children?(asgn_node); end
|
117
|
-
|
118
|
-
# source://rubocop/1.69.2/lib/rubocop/cop/lint/assignment_in_condition.rb#96
|
119
|
-
def traverse_node(node, &block); end
|
120
|
-
end
|
121
|
-
|
122
|
-
# source://standard//lib/standard/rubocop/ext.rb#9
|
123
|
-
class RuboCop::DirectiveComment
|
124
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#32
|
125
|
-
def initialize(comment, cop_registry = T.unsafe(nil)); end
|
126
|
-
|
127
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#82
|
128
|
-
def all_cops?; end
|
129
|
-
|
130
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#30
|
131
|
-
def comment; end
|
132
|
-
|
133
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#87
|
134
|
-
def cop_names; end
|
135
|
-
|
136
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#30
|
137
|
-
def cop_registry; end
|
138
|
-
|
139
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#30
|
140
|
-
def cops; end
|
141
|
-
|
142
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#93
|
143
|
-
def department_names; end
|
144
|
-
|
145
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#107
|
146
|
-
def directive_count; end
|
147
|
-
|
148
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#62
|
149
|
-
def disabled?; end
|
150
|
-
|
151
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#77
|
152
|
-
def disabled_all?; end
|
153
|
-
|
154
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#67
|
155
|
-
def enabled?; end
|
156
|
-
|
157
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#72
|
158
|
-
def enabled_all?; end
|
159
|
-
|
160
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#98
|
161
|
-
def in_directive_department?(cop); end
|
162
|
-
|
163
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#112
|
164
|
-
def line_number; end
|
165
|
-
|
166
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#44
|
167
|
-
def match?(cop_names); end
|
168
|
-
|
169
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#57
|
170
|
-
def match_captures; end
|
171
|
-
|
172
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#30
|
173
|
-
def mode; end
|
174
|
-
|
175
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#103
|
176
|
-
def overridden_by_department?(cop); end
|
177
|
-
|
178
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#48
|
179
|
-
def range; end
|
180
|
-
|
181
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#39
|
182
|
-
def single_line?; end
|
183
|
-
|
184
|
-
private
|
185
|
-
|
186
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#133
|
187
|
-
def all_cop_names; end
|
188
|
-
|
189
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#137
|
190
|
-
def cop_names_for_department(department); end
|
191
|
-
|
192
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#129
|
193
|
-
def department?(name); end
|
194
|
-
|
195
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#142
|
196
|
-
def exclude_lint_department_cops(cops); end
|
197
|
-
|
198
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#122
|
199
|
-
def parsed_cop_names; end
|
200
|
-
|
201
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#118
|
202
|
-
def splitted_cops_string; end
|
203
|
-
|
204
|
-
class << self
|
205
|
-
# source://rubocop/1.69.2/lib/rubocop/directive_comment.rb#26
|
206
|
-
def before_comment(line); end
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
# source://standard//lib/standard/rubocop/ext.rb#11
|
211
|
-
RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
212
|
-
|
213
|
-
# source://standard//lib/standard.rb#4
|
214
|
-
module Standard; end
|
215
|
-
|
216
|
-
# source://standard//lib/standard/builds_config.rb#8
|
217
|
-
class Standard::BuildsConfig
|
218
|
-
# @return [BuildsConfig] a new instance of BuildsConfig
|
219
|
-
#
|
220
|
-
# source://standard//lib/standard/builds_config.rb#9
|
221
|
-
def initialize; end
|
222
|
-
|
223
|
-
# source://standard//lib/standard/builds_config.rb#16
|
224
|
-
def call(argv, search_path = T.unsafe(nil)); end
|
225
|
-
end
|
226
|
-
|
227
|
-
# source://standard//lib/standard/cli.rb#5
|
228
|
-
class Standard::Cli
|
229
|
-
# @return [Cli] a new instance of Cli
|
230
|
-
#
|
231
|
-
# source://standard//lib/standard/cli.rb#6
|
232
|
-
def initialize(argv); end
|
233
|
-
|
234
|
-
# source://standard//lib/standard/cli.rb#12
|
235
|
-
def run; end
|
236
|
-
end
|
237
|
-
|
238
|
-
# source://standard//lib/standard/builds_config.rb#6
|
239
|
-
class Standard::Config < ::Struct
|
240
|
-
# Returns the value of attribute paths
|
241
|
-
#
|
242
|
-
# @return [Object] the current value of paths
|
243
|
-
def paths; end
|
244
|
-
|
245
|
-
# Sets the attribute paths
|
246
|
-
#
|
247
|
-
# @param value [Object] the value to set the attribute paths to.
|
248
|
-
# @return [Object] the newly set value
|
249
|
-
def paths=(_); end
|
250
|
-
|
251
|
-
# Returns the value of attribute rubocop_config_store
|
252
|
-
#
|
253
|
-
# @return [Object] the current value of rubocop_config_store
|
254
|
-
def rubocop_config_store; end
|
255
|
-
|
256
|
-
# Sets the attribute rubocop_config_store
|
257
|
-
#
|
258
|
-
# @param value [Object] the value to set the attribute rubocop_config_store to.
|
259
|
-
# @return [Object] the newly set value
|
260
|
-
def rubocop_config_store=(_); end
|
261
|
-
|
262
|
-
# Returns the value of attribute rubocop_options
|
263
|
-
#
|
264
|
-
# @return [Object] the current value of rubocop_options
|
265
|
-
def rubocop_options; end
|
266
|
-
|
267
|
-
# Sets the attribute rubocop_options
|
268
|
-
#
|
269
|
-
# @param value [Object] the value to set the attribute rubocop_options to.
|
270
|
-
# @return [Object] the newly set value
|
271
|
-
def rubocop_options=(_); end
|
272
|
-
|
273
|
-
# Returns the value of attribute runner
|
274
|
-
#
|
275
|
-
# @return [Object] the current value of runner
|
276
|
-
def runner; end
|
277
|
-
|
278
|
-
# Sets the attribute runner
|
279
|
-
#
|
280
|
-
# @param value [Object] the value to set the attribute runner to.
|
281
|
-
# @return [Object] the newly set value
|
282
|
-
def runner=(_); end
|
283
|
-
|
284
|
-
class << self
|
285
|
-
def [](*_arg0); end
|
286
|
-
def inspect; end
|
287
|
-
def keyword_init?; end
|
288
|
-
def members; end
|
289
|
-
def new(*_arg0); end
|
290
|
-
end
|
291
|
-
end
|
292
|
-
|
293
|
-
# source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#3
|
294
|
-
class Standard::CreatesConfigStore
|
295
|
-
# @return [CreatesConfigStore] a new instance of CreatesConfigStore
|
296
|
-
#
|
297
|
-
# source://standard//lib/standard/creates_config_store.rb#10
|
298
|
-
def initialize; end
|
299
|
-
|
300
|
-
# source://standard//lib/standard/creates_config_store.rb#18
|
301
|
-
def call(standard_config); end
|
302
|
-
end
|
303
|
-
|
304
|
-
# source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#4
|
305
|
-
class Standard::CreatesConfigStore::AssignsRubocopYaml
|
306
|
-
# source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#5
|
307
|
-
def call(config_store, standard_config); end
|
308
|
-
end
|
309
|
-
|
310
|
-
# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#2
|
311
|
-
class Standard::CreatesConfigStore::ConfiguresIgnoredPaths
|
312
|
-
# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#14
|
313
|
-
def call(options_config, standard_config); end
|
314
|
-
|
315
|
-
private
|
316
|
-
|
317
|
-
# @return [Boolean]
|
318
|
-
#
|
319
|
-
# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#41
|
320
|
-
def absolute?(path); end
|
321
|
-
|
322
|
-
# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#33
|
323
|
-
def absolutify(config_root, path); end
|
324
|
-
|
325
|
-
# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#28
|
326
|
-
def ignored_patterns(standard_config); end
|
327
|
-
end
|
328
|
-
|
329
|
-
# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#3
|
330
|
-
Standard::CreatesConfigStore::ConfiguresIgnoredPaths::DEFAULT_IGNORES = T.let(T.unsafe(nil), Array)
|
331
|
-
|
332
|
-
# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#5
|
333
|
-
class Standard::CreatesConfigStore::MergesUserConfigExtensions
|
334
|
-
# @return [MergesUserConfigExtensions] a new instance of MergesUserConfigExtensions
|
335
|
-
#
|
336
|
-
# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#24
|
337
|
-
def initialize; end
|
338
|
-
|
339
|
-
# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#28
|
340
|
-
def call(options_config, standard_config); end
|
341
|
-
end
|
342
|
-
|
343
|
-
# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#6
|
344
|
-
class Standard::CreatesConfigStore::MergesUserConfigExtensions::ExtendConfigPlugin < ::LintRoller::Plugin
|
345
|
-
# @return [ExtendConfigPlugin] a new instance of ExtendConfigPlugin
|
346
|
-
#
|
347
|
-
# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#7
|
348
|
-
def initialize(path); end
|
349
|
-
|
350
|
-
# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#11
|
351
|
-
def about; end
|
352
|
-
|
353
|
-
# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#15
|
354
|
-
def rules(context); end
|
355
|
-
end
|
356
|
-
|
357
|
-
# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#2
|
358
|
-
class Standard::CreatesConfigStore::SetsTargetRubyVersion
|
359
|
-
# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#12
|
360
|
-
def call(options_config, standard_config); end
|
361
|
-
|
362
|
-
private
|
363
|
-
|
364
|
-
# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#20
|
365
|
-
def min_target_ruby_version_supported(desired_target_ruby_version); end
|
366
|
-
|
367
|
-
# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#31
|
368
|
-
def normalize_version(version); end
|
369
|
-
end
|
370
|
-
|
371
|
-
# This is minimum version that Rubocop can parse, not the minimum
|
372
|
-
# version it can run on (e.g. TargetRubyVersion). See the following
|
373
|
-
# for more details:
|
374
|
-
#
|
375
|
-
# https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version
|
376
|
-
#
|
377
|
-
# https://github.com/rubocop/rubocop/blob/master/lib/rubocop/target_ruby.rb
|
378
|
-
#
|
379
|
-
# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#10
|
380
|
-
Standard::CreatesConfigStore::SetsTargetRubyVersion::MIN_TARGET_RUBY_VERSION = T.let(T.unsafe(nil), String)
|
381
|
-
|
382
|
-
# source://standard//lib/standard/file_finder.rb#4
|
383
|
-
class Standard::FileFinder
|
384
|
-
# source://standard//lib/standard/file_finder.rb#5
|
385
|
-
def call(name, search_path); end
|
386
|
-
end
|
387
|
-
|
388
|
-
# source://standard//lib/standard/formatter.rb#5
|
389
|
-
class Standard::Formatter < ::RuboCop::Formatter::BaseFormatter
|
390
|
-
# source://standard//lib/standard/formatter.rb#18
|
391
|
-
def file_finished(file, offenses); end
|
392
|
-
|
393
|
-
# source://standard//lib/standard/formatter.rb#37
|
394
|
-
def finished(_inspected_files); end
|
395
|
-
|
396
|
-
# source://standard//lib/standard/formatter.rb#10
|
397
|
-
def started(_target_files); end
|
398
|
-
|
399
|
-
# source://standard//lib/standard/formatter.rb#30
|
400
|
-
def track_stats(offenses); end
|
401
|
-
|
402
|
-
private
|
403
|
-
|
404
|
-
# source://standard//lib/standard/formatter.rb#106
|
405
|
-
def determine_run_mode; end
|
406
|
-
|
407
|
-
# source://standard//lib/standard/formatter.rb#114
|
408
|
-
def fixable_error_message(command); end
|
409
|
-
|
410
|
-
# source://standard//lib/standard/formatter.rb#92
|
411
|
-
def path_to(file); end
|
412
|
-
|
413
|
-
# source://standard//lib/standard/formatter.rb#96
|
414
|
-
def potential_fix_mode; end
|
415
|
-
|
416
|
-
# source://standard//lib/standard/formatter.rb#52
|
417
|
-
def print_fix_suggestion; end
|
418
|
-
|
419
|
-
# source://standard//lib/standard/formatter.rb#44
|
420
|
-
def print_header_once; end
|
421
|
-
|
422
|
-
# source://standard//lib/standard/formatter.rb#82
|
423
|
-
def print_todo_congratulations; end
|
424
|
-
|
425
|
-
# source://standard//lib/standard/formatter.rb#66
|
426
|
-
def print_todo_warning; end
|
427
|
-
end
|
428
|
-
|
429
|
-
# source://standard//lib/standard/formatter.rb#6
|
430
|
-
Standard::Formatter::STANDARD_GREETING = T.let(T.unsafe(nil), String)
|
431
|
-
|
432
|
-
# source://standard//lib/standard/loads_runner.rb#9
|
433
|
-
class Standard::LoadsRunner
|
434
|
-
# source://standard//lib/standard/loads_runner.rb#19
|
435
|
-
def call(command); end
|
436
|
-
end
|
437
|
-
|
438
|
-
# source://standard//lib/standard/loads_runner.rb#10
|
439
|
-
Standard::LoadsRunner::RUNNERS = T.let(T.unsafe(nil), Hash)
|
440
|
-
|
441
|
-
# source://standard//lib/standard/loads_yaml_config.rb#7
|
442
|
-
class Standard::LoadsYamlConfig
|
443
|
-
# source://standard//lib/standard/loads_yaml_config.rb#8
|
444
|
-
def call(standard_yaml_path, todo_yaml_path); end
|
445
|
-
|
446
|
-
private
|
447
|
-
|
448
|
-
# source://standard//lib/standard/loads_yaml_config.rb#57
|
449
|
-
def arrayify(object); end
|
450
|
-
|
451
|
-
# source://standard//lib/standard/loads_yaml_config.rb#25
|
452
|
-
def construct_config(yaml_path, standard_yaml, todo_path, todo_yaml); end
|
453
|
-
|
454
|
-
# source://standard//lib/standard/loads_yaml_config.rb#47
|
455
|
-
def expand_ignore_config(ignore_config); end
|
456
|
-
|
457
|
-
# source://standard//lib/standard/loads_yaml_config.rb#17
|
458
|
-
def load_standard_yaml(yaml_path); end
|
459
|
-
|
460
|
-
# source://standard//lib/standard/loads_yaml_config.rb#41
|
461
|
-
def normalized_ruby_version(version); end
|
462
|
-
end
|
463
|
-
|
464
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#2
|
465
|
-
module Standard::Lsp; end
|
466
|
-
|
467
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#3
|
468
|
-
class Standard::Lsp::Diagnostic
|
469
|
-
# @return [Diagnostic] a new instance of Diagnostic
|
470
|
-
#
|
471
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#16
|
472
|
-
def initialize(document_encoding, offense, uri, cop_class); end
|
473
|
-
|
474
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#23
|
475
|
-
def to_lsp_code_actions; end
|
476
|
-
|
477
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#32
|
478
|
-
def to_lsp_diagnostic(config); end
|
479
|
-
|
480
|
-
private
|
481
|
-
|
482
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#77
|
483
|
-
def autocorrect_action; end
|
484
|
-
|
485
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#69
|
486
|
-
def code_description(config); end
|
487
|
-
|
488
|
-
# @return [Boolean]
|
489
|
-
#
|
490
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#163
|
491
|
-
def correctable?; end
|
492
|
-
|
493
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#108
|
494
|
-
def disable_line_action; end
|
495
|
-
|
496
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#167
|
497
|
-
def ensure_uri_scheme(uri); end
|
498
|
-
|
499
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#148
|
500
|
-
def length_of_line(line); end
|
501
|
-
|
502
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#126
|
503
|
-
def line_disable_comment; end
|
504
|
-
|
505
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#59
|
506
|
-
def message; end
|
507
|
-
|
508
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#96
|
509
|
-
def offense_replacements; end
|
510
|
-
|
511
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#65
|
512
|
-
def severity; end
|
513
|
-
end
|
514
|
-
|
515
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#4
|
516
|
-
Standard::Lsp::Diagnostic::Constant = LanguageServer::Protocol::Constant
|
517
|
-
|
518
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#5
|
519
|
-
Standard::Lsp::Diagnostic::Interface = LanguageServer::Protocol::Interface
|
520
|
-
|
521
|
-
# source://standard//lib/standard/lsp/diagnostic.rb#7
|
522
|
-
Standard::Lsp::Diagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash)
|
523
|
-
|
524
|
-
# source://standard//lib/standard/lsp/kills_server.rb#3
|
525
|
-
class Standard::Lsp::KillsServer
|
526
|
-
# source://standard//lib/standard/lsp/kills_server.rb#4
|
527
|
-
def call(&blk); end
|
528
|
-
end
|
529
|
-
|
530
|
-
# source://standard//lib/standard/lsp/logger.rb#3
|
531
|
-
class Standard::Lsp::Logger
|
532
|
-
# @return [Logger] a new instance of Logger
|
533
|
-
#
|
534
|
-
# source://standard//lib/standard/lsp/logger.rb#4
|
535
|
-
def initialize(prefix: T.unsafe(nil)); end
|
536
|
-
|
537
|
-
# source://standard//lib/standard/lsp/logger.rb#9
|
538
|
-
def puts(message); end
|
539
|
-
|
540
|
-
# source://standard//lib/standard/lsp/logger.rb#13
|
541
|
-
def puts_once(message); end
|
542
|
-
end
|
543
|
-
|
544
|
-
# source://standard//lib/standard/lsp/server.rb#8
|
545
|
-
Standard::Lsp::Proto = LanguageServer::Protocol
|
546
|
-
|
547
|
-
# source://standard//lib/standard/lsp/routes.rb#5
|
548
|
-
class Standard::Lsp::Routes
|
549
|
-
# @return [Routes] a new instance of Routes
|
550
|
-
#
|
551
|
-
# source://standard//lib/standard/lsp/routes.rb#6
|
552
|
-
def initialize(writer, logger, standardizer); end
|
553
|
-
|
554
|
-
# source://standard//lib/standard/lsp/routes.rb#19
|
555
|
-
def for(name); end
|
556
|
-
|
557
|
-
# source://standard//lib/standard/lsp/routes.rb#26
|
558
|
-
def handle_initialize(request); end
|
559
|
-
|
560
|
-
# source://standard//lib/standard/lsp/routes.rb#38
|
561
|
-
def handle_initialized(request); end
|
562
|
-
|
563
|
-
# source://standard//lib/standard/lsp/routes.rb#129
|
564
|
-
def handle_method_missing(request); end
|
565
|
-
|
566
|
-
# source://standard//lib/standard/lsp/routes.rb#42
|
567
|
-
def handle_shutdown(request); end
|
568
|
-
|
569
|
-
# source://standard//lib/standard/lsp/routes.rb#121
|
570
|
-
def handle_unsupported_method(request, method = T.unsafe(nil)); end
|
571
|
-
|
572
|
-
private
|
573
|
-
|
574
|
-
# source://standard//lib/standard/lsp/routes.rb#162
|
575
|
-
def diagnostic(file_uri, text); end
|
576
|
-
|
577
|
-
# source://standard//lib/standard/lsp/routes.rb#141
|
578
|
-
def format_file(file_uri); end
|
579
|
-
|
580
|
-
# source://standard//lib/standard/lsp/routes.rb#137
|
581
|
-
def uri_to_path(uri); end
|
582
|
-
|
583
|
-
class << self
|
584
|
-
# source://standard//lib/standard/lsp/routes.rb#15
|
585
|
-
def handle(name, &block); end
|
586
|
-
end
|
587
|
-
end
|
588
|
-
|
589
|
-
# source://standard//lib/standard/lsp/routes.rb#75
|
590
|
-
Standard::Lsp::Routes::CONFIGURATION_FILE_PATTERNS = T.let(T.unsafe(nil), Array)
|
591
|
-
|
592
|
-
# source://standard//lib/standard/lsp/server.rb#9
|
593
|
-
Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity
|
594
|
-
|
595
|
-
# source://standard//lib/standard/lsp/server.rb#11
|
596
|
-
class Standard::Lsp::Server
|
597
|
-
# @return [Server] a new instance of Server
|
598
|
-
#
|
599
|
-
# source://standard//lib/standard/lsp/server.rb#12
|
600
|
-
def initialize(config); end
|
601
|
-
|
602
|
-
# source://standard//lib/standard/lsp/server.rb#20
|
603
|
-
def start; end
|
604
|
-
end
|
605
|
-
|
606
|
-
# source://standard//lib/standard/lsp/standardizer.rb#6
|
607
|
-
class Standard::Lsp::Standardizer
|
608
|
-
# @return [Standardizer] a new instance of Standardizer
|
609
|
-
#
|
610
|
-
# source://standard//lib/standard/lsp/standardizer.rb#7
|
611
|
-
def initialize(config); end
|
612
|
-
|
613
|
-
# source://standard//lib/standard/lsp/standardizer.rb#15
|
614
|
-
def format(path, text); end
|
615
|
-
|
616
|
-
# source://standard//lib/standard/lsp/standardizer.rb#20
|
617
|
-
def offenses(path, text, document_encoding = T.unsafe(nil)); end
|
618
|
-
end
|
619
|
-
|
620
|
-
# Originally lifted from:
|
621
|
-
# https://github.com/Shopify/ruby-lsp/blob/8d4c17efce4e8ecc8e7c557ab2981db6b22c0b6d/lib/ruby_lsp/requests/support/rubocop_runner.rb#L20
|
622
|
-
#
|
623
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#5
|
624
|
-
class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner
|
625
|
-
# @return [StdinRubocopRunner] a new instance of StdinRubocopRunner
|
626
|
-
#
|
627
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#21
|
628
|
-
def initialize(config); end
|
629
|
-
|
630
|
-
# Returns the value of attribute config_for_working_directory.
|
631
|
-
#
|
632
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10
|
633
|
-
def config_for_working_directory; end
|
634
|
-
|
635
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#60
|
636
|
-
def formatted_source; end
|
637
|
-
|
638
|
-
# Returns the value of attribute offenses.
|
639
|
-
#
|
640
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8
|
641
|
-
def offenses; end
|
642
|
-
|
643
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#35
|
644
|
-
def run(path, contents); end
|
645
|
-
|
646
|
-
private
|
647
|
-
|
648
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#66
|
649
|
-
def file_finished(_file, offenses); end
|
650
|
-
end
|
651
|
-
|
652
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#6
|
653
|
-
class Standard::Lsp::StdinRubocopRunner::ConfigurationError < ::StandardError; end
|
654
|
-
|
655
|
-
# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#12
|
656
|
-
Standard::Lsp::StdinRubocopRunner::DEFAULT_RUBOCOP_OPTIONS = T.let(T.unsafe(nil), Hash)
|
657
|
-
|
658
|
-
# source://standard//lib/standard/merges_settings.rb#4
|
659
|
-
class Standard::MergesSettings
|
660
|
-
# source://standard//lib/standard/merges_settings.rb#7
|
661
|
-
def call(argv, standard_yaml); end
|
662
|
-
|
663
|
-
private
|
664
|
-
|
665
|
-
# source://standard//lib/standard/merges_settings.rb#42
|
666
|
-
def determine_command(argv); end
|
667
|
-
|
668
|
-
# source://standard//lib/standard/merges_settings.rb#58
|
669
|
-
def merge(standard_yaml, standard_cli_flags, rubocop_cli_flags); end
|
670
|
-
|
671
|
-
# source://standard//lib/standard/merges_settings.rb#27
|
672
|
-
def parse_standard_argv(argv); end
|
673
|
-
|
674
|
-
# source://standard//lib/standard/merges_settings.rb#21
|
675
|
-
def separate_argv(argv); end
|
676
|
-
|
677
|
-
# source://standard//lib/standard/merges_settings.rb#69
|
678
|
-
def without_banned(rubocop_cli_flags); end
|
679
|
-
end
|
680
|
-
|
681
|
-
# source://standard//lib/standard/merges_settings.rb#5
|
682
|
-
class Standard::MergesSettings::Settings < ::Struct
|
683
|
-
# Returns the value of attribute options
|
684
|
-
#
|
685
|
-
# @return [Object] the current value of options
|
686
|
-
def options; end
|
687
|
-
|
688
|
-
# Sets the attribute options
|
689
|
-
#
|
690
|
-
# @param value [Object] the value to set the attribute options to.
|
691
|
-
# @return [Object] the newly set value
|
692
|
-
def options=(_); end
|
693
|
-
|
694
|
-
# Returns the value of attribute paths
|
695
|
-
#
|
696
|
-
# @return [Object] the current value of paths
|
697
|
-
def paths; end
|
698
|
-
|
699
|
-
# Sets the attribute paths
|
700
|
-
#
|
701
|
-
# @param value [Object] the value to set the attribute paths to.
|
702
|
-
# @return [Object] the newly set value
|
703
|
-
def paths=(_); end
|
704
|
-
|
705
|
-
# Returns the value of attribute runner
|
706
|
-
#
|
707
|
-
# @return [Object] the current value of runner
|
708
|
-
def runner; end
|
709
|
-
|
710
|
-
# Sets the attribute runner
|
711
|
-
#
|
712
|
-
# @param value [Object] the value to set the attribute runner to.
|
713
|
-
# @return [Object] the newly set value
|
714
|
-
def runner=(_); end
|
715
|
-
|
716
|
-
class << self
|
717
|
-
def [](*_arg0); end
|
718
|
-
def inspect; end
|
719
|
-
def keyword_init?; end
|
720
|
-
def members; end
|
721
|
-
def new(*_arg0); end
|
722
|
-
end
|
723
|
-
end
|
724
|
-
|
725
|
-
# source://standard//lib/standard/plugin.rb#2
|
726
|
-
module Standard::Plugin; end
|
727
|
-
|
728
|
-
# source://standard//lib/standard/plugin/combines_plugin_configs.rb#3
|
729
|
-
class Standard::Plugin::CombinesPluginConfigs
|
730
|
-
# @return [CombinesPluginConfigs] a new instance of CombinesPluginConfigs
|
731
|
-
#
|
732
|
-
# source://standard//lib/standard/plugin/combines_plugin_configs.rb#4
|
733
|
-
def initialize; end
|
734
|
-
|
735
|
-
# source://standard//lib/standard/plugin/combines_plugin_configs.rb#9
|
736
|
-
def call(options_config, standard_config); end
|
737
|
-
end
|
738
|
-
|
739
|
-
# source://standard//lib/standard/plugin/creates_runner_context.rb#3
|
740
|
-
class Standard::Plugin::CreatesRunnerContext
|
741
|
-
# source://standard//lib/standard/plugin/creates_runner_context.rb#4
|
742
|
-
def call(standard_config); end
|
743
|
-
end
|
744
|
-
|
745
|
-
# source://standard//lib/standard/plugin/determines_class_constant.rb#3
|
746
|
-
class Standard::Plugin::DeterminesClassConstant
|
747
|
-
# source://standard//lib/standard/plugin/determines_class_constant.rb#4
|
748
|
-
def call(plugin_name, user_config); end
|
749
|
-
|
750
|
-
private
|
751
|
-
|
752
|
-
# source://standard//lib/standard/plugin/determines_class_constant.rb#41
|
753
|
-
def require_plugin(require_path); end
|
754
|
-
end
|
755
|
-
|
756
|
-
# source://standard//lib/standard/plugin/initializes_plugins.rb#3
|
757
|
-
class Standard::Plugin::InitializesPlugins
|
758
|
-
# @return [InitializesPlugins] a new instance of InitializesPlugins
|
759
|
-
#
|
760
|
-
# source://standard//lib/standard/plugin/initializes_plugins.rb#4
|
761
|
-
def initialize; end
|
762
|
-
|
763
|
-
# source://standard//lib/standard/plugin/initializes_plugins.rb#9
|
764
|
-
def call(plugins); end
|
765
|
-
end
|
766
|
-
|
767
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#3
|
768
|
-
class Standard::Plugin::MergesPluginsIntoRubocopConfig
|
769
|
-
# @return [MergesPluginsIntoRubocopConfig] a new instance of MergesPluginsIntoRubocopConfig
|
770
|
-
#
|
771
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#24
|
772
|
-
def initialize; end
|
773
|
-
|
774
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#28
|
775
|
-
def call(options_config, standard_config, plugins, permit_merging:); end
|
776
|
-
|
777
|
-
private
|
778
|
-
|
779
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#126
|
780
|
-
def all_cop_keys_previously_configured_by_plugins(options_config, permit_merging:); end
|
781
|
-
|
782
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#152
|
783
|
-
def blank_rubocop_config(example_config); end
|
784
|
-
|
785
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#37
|
786
|
-
def combine_rubocop_configs(options_config, runner_context, plugins, permit_merging:); end
|
787
|
-
|
788
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#56
|
789
|
-
def config_for_plugin(plugin, runner_context); end
|
790
|
-
|
791
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#96
|
792
|
-
def delete_already_configured_keys!(configured_keys, next_config, dont_delete_keys: T.unsafe(nil)); end
|
793
|
-
|
794
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#156
|
795
|
-
def except(hash_or_config, keys); end
|
796
|
-
|
797
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#134
|
798
|
-
def fake_out_rubocop_default_configuration(options_config); end
|
799
|
-
|
800
|
-
# Always deletes nil entries, always overwrites arrays
|
801
|
-
# This is a simplified version of rubocop's ConfigLoader#merge:
|
802
|
-
# https://github.com/rubocop/rubocop/blob/v1.48.1/lib/rubocop/config_loader_resolver.rb#L98
|
803
|
-
#
|
804
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#163
|
805
|
-
def merge(old_hash, new_hash); end
|
806
|
-
|
807
|
-
# This is how we ensure "first-in wins": plugins can override AllCops settings that are
|
808
|
-
# set by RuboCop's default configuration, but once a plugin sets an AllCop setting, they
|
809
|
-
# have exclusive first-in-wins rights to that setting.
|
810
|
-
#
|
811
|
-
# The one exception to this are array fields, because we don't want to
|
812
|
-
# overwrite the AllCops defaults but rather munge the arrays (`existing |
|
813
|
-
# new`) to allow plugins to add to the array, for example Include and
|
814
|
-
# Exclude paths and patterns.
|
815
|
-
#
|
816
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#77
|
817
|
-
def merge_all_cop_settings(existing_all_cops, new_all_cops, already_configured_keys); end
|
818
|
-
|
819
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#104
|
820
|
-
def merge_config_into_all_cops!(options_config, plugin_config); end
|
821
|
-
|
822
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#110
|
823
|
-
def merge_config_into_standard!(options_config, plugin_config, permit_merging:); end
|
824
|
-
|
825
|
-
# Avoid a warning that would otherwise be emitted by any plugin that set TargetRailsVersion
|
826
|
-
# because it's not a default AllCops key specified in RuboCop's embedded default config.
|
827
|
-
#
|
828
|
-
# See: https://github.com/rubocop/rubocop/pull/11833
|
829
|
-
#
|
830
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#146
|
831
|
-
def set_target_rails_version_on_all_cops_because_its_technically_not_allowed!(options_config); end
|
832
|
-
end
|
833
|
-
|
834
|
-
# AllCops keys that standard does not allow to be set by plugins
|
835
|
-
#
|
836
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#10
|
837
|
-
Standard::Plugin::MergesPluginsIntoRubocopConfig::DISALLOWED_ALLCOPS_KEYS = T.let(T.unsafe(nil), Array)
|
838
|
-
|
839
|
-
# Blank configuration object to merge plugins into, with only the following spared:
|
840
|
-
# - AllCops keys set to avoid warnings about unknown properties
|
841
|
-
# - Lint/Syntax must be set to avoid a nil error when verifying inherited configs
|
842
|
-
#
|
843
|
-
# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#7
|
844
|
-
Standard::Plugin::MergesPluginsIntoRubocopConfig::MANDATORY_RUBOCOP_CONFIG_KEYS = T.let(T.unsafe(nil), Array)
|
845
|
-
|
846
|
-
# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#3
|
847
|
-
class Standard::Plugin::StandardizesConfiguredPlugins
|
848
|
-
# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#19
|
849
|
-
def call(plugins); end
|
850
|
-
|
851
|
-
private
|
852
|
-
|
853
|
-
# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#25
|
854
|
-
def normalize_config_shape(plugins); end
|
855
|
-
end
|
856
|
-
|
857
|
-
# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#10
|
858
|
-
Standard::Plugin::StandardizesConfiguredPlugins::BUILT_INS = T.let(T.unsafe(nil), Array)
|
859
|
-
|
860
|
-
# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#4
|
861
|
-
Standard::Plugin::StandardizesConfiguredPlugins::DEFAULT_PLUGIN_CONFIG = T.let(T.unsafe(nil), Hash)
|
862
|
-
|
863
|
-
# source://standard//lib/standard/resolves_yaml_option.rb#4
|
864
|
-
class Standard::ResolvesYamlOption
|
865
|
-
# source://standard//lib/standard/resolves_yaml_option.rb#5
|
866
|
-
def call(argv, search_path, option_name, default_file); end
|
867
|
-
|
868
|
-
private
|
869
|
-
|
870
|
-
# source://standard//lib/standard/resolves_yaml_option.rb#22
|
871
|
-
def argv_value_for(argv, option_name); end
|
872
|
-
|
873
|
-
# source://standard//lib/standard/resolves_yaml_option.rb#11
|
874
|
-
def search_argv(argv, option_name); end
|
875
|
-
end
|
876
|
-
|
877
|
-
# source://standard//lib/standard/runners/rubocop.rb#4
|
878
|
-
module Standard::Runners; end
|
879
|
-
|
880
|
-
# source://standard//lib/standard/runners/genignore.rb#7
|
881
|
-
class Standard::Runners::Genignore
|
882
|
-
# source://standard//lib/standard/runners/genignore.rb#8
|
883
|
-
def call(config); end
|
884
|
-
end
|
885
|
-
|
886
|
-
# source://standard//lib/standard/runners/help.rb#5
|
887
|
-
class Standard::Runners::Help
|
888
|
-
# source://standard//lib/standard/runners/help.rb#6
|
889
|
-
def call(config); end
|
890
|
-
end
|
891
|
-
|
892
|
-
# source://standard//lib/standard/runners/lsp.rb#5
|
893
|
-
class Standard::Runners::Lsp
|
894
|
-
# source://standard//lib/standard/runners/lsp.rb#6
|
895
|
-
def call(config); end
|
896
|
-
end
|
897
|
-
|
898
|
-
# source://standard//lib/standard/runners/rubocop.rb#5
|
899
|
-
class Standard::Runners::Rubocop
|
900
|
-
# source://standard//lib/standard/runners/rubocop.rb#6
|
901
|
-
def call(config); end
|
902
|
-
|
903
|
-
private
|
904
|
-
|
905
|
-
# This is a workaround for an issue with how `parallel` and `stdin`
|
906
|
-
# interact when invoked in this way. See:
|
907
|
-
# https://github.com/standardrb/standard/issues/536
|
908
|
-
#
|
909
|
-
# source://standard//lib/standard/runners/rubocop.rb#23
|
910
|
-
def without_parallelizing_in_stdin_mode(options); end
|
911
|
-
end
|
912
|
-
|
913
|
-
# source://standard//lib/standard/runners/verbose_version.rb#5
|
914
|
-
class Standard::Runners::VerboseVersion
|
915
|
-
# source://standard//lib/standard/runners/verbose_version.rb#6
|
916
|
-
def call(config); end
|
917
|
-
end
|
918
|
-
|
919
|
-
# source://standard//lib/standard/runners/version.rb#3
|
920
|
-
class Standard::Runners::Version
|
921
|
-
# source://standard//lib/standard/runners/version.rb#4
|
922
|
-
def call(config); end
|
923
|
-
end
|
924
|
-
|
925
|
-
# source://standard//lib/standard/version.rb#2
|
926
|
-
Standard::VERSION = T.let(T.unsafe(nil), Gem::Version)
|