checkoff 0.222.0 → 0.225.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/checkoff.gemspec +10 -5
- data/lib/checkoff/attachments.rb +1 -0
- data/lib/checkoff/cli.rb +1 -1
- data/lib/checkoff/clients.rb +2 -1
- data/lib/checkoff/custom_fields.rb +2 -1
- data/lib/checkoff/events.rb +2 -1
- data/lib/checkoff/internal/asana_event_enrichment.rb +1 -0
- data/lib/checkoff/internal/asana_event_filter.rb +1 -0
- data/lib/checkoff/internal/config_loader.rb +2 -2
- data/lib/checkoff/internal/logging.rb +6 -5
- data/lib/checkoff/internal/project_hashes.rb +1 -0
- data/lib/checkoff/internal/project_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/project_timing.rb +1 -0
- data/lib/checkoff/internal/search_url/custom_field_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url/custom_field_variant.rb +1 -0
- data/lib/checkoff/internal/search_url/date_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url/parser.rb +1 -0
- data/lib/checkoff/internal/search_url/results_merger.rb +1 -0
- data/lib/checkoff/internal/search_url/simple_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url.rb +1 -0
- data/lib/checkoff/internal/section_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/selector_classes/common/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/common.rb +1 -0
- data/lib/checkoff/internal/selector_classes/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/project/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/project.rb +1 -0
- data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +3 -1
- data/lib/checkoff/internal/selector_classes/section.rb +1 -0
- data/lib/checkoff/internal/selector_classes/task/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/task.rb +1 -0
- data/lib/checkoff/internal/selector_evaluator.rb +5 -4
- data/lib/checkoff/internal/task_hashes.rb +1 -0
- data/lib/checkoff/internal/task_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/task_timing.rb +1 -0
- data/lib/checkoff/internal/thread_local.rb +1 -0
- data/lib/checkoff/monkeypatches/resource_marshalling.rb +1 -0
- data/lib/checkoff/my_tasks.rb +2 -1
- data/lib/checkoff/portfolios.rb +12 -9
- data/lib/checkoff/project_selectors.rb +1 -0
- data/lib/checkoff/projects.rb +3 -1
- data/lib/checkoff/resources.rb +1 -0
- data/lib/checkoff/section_selectors.rb +1 -0
- data/lib/checkoff/sections.rb +4 -4
- data/lib/checkoff/subtasks.rb +1 -0
- data/lib/checkoff/tags.rb +67 -17
- data/lib/checkoff/task_searches.rb +1 -0
- data/lib/checkoff/task_selectors.rb +1 -0
- data/lib/checkoff/tasks.rb +2 -2
- data/lib/checkoff/timelines.rb +1 -0
- data/lib/checkoff/timing.rb +1 -0
- data/lib/checkoff/version.rb +2 -1
- data/lib/checkoff/workspaces.rb +2 -1
- data/lib/checkoff.rb +1 -0
- data/rbi/checkoff.rbi +4529 -0
- data/sig/checkoff.rbs +3749 -0
- metadata +4 -205
- data/.circleci/config.yml +0 -291
- data/.envrc +0 -9
- data/.git-hooks/pre_commit/circle_ci.rb +0 -25
- data/.git-hooks/pre_commit/punchlist.rb +0 -51
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +0 -76
- data/.gitattributes +0 -6
- data/.gitignore +0 -61
- data/.markdownlint_style.rb +0 -3
- data/.mdlrc +0 -1
- data/.overcommit.yml +0 -114
- data/.rubocop.yml +0 -143
- data/.rubocop_todo.yml +0 -90
- data/.solargraph.yml +0 -35
- data/.yamllint.yml +0 -8
- data/CODE_OF_CONDUCT.md +0 -133
- data/CONTRIBUTING.rst +0 -75
- data/DEVELOPMENT.md +0 -69
- data/GLOSSARY.md +0 -16
- data/Gemfile +0 -66
- data/Gemfile.lock +0 -336
- data/LICENSE +0 -21
- data/Makefile +0 -121
- data/bin/brakeman +0 -27
- data/bin/bump +0 -29
- data/bin/checkoff +0 -29
- data/bin/console +0 -15
- data/bin/overcommit +0 -29
- data/bin/overcommit_branch +0 -114
- data/bin/rake +0 -29
- data/bin/rubocop +0 -27
- data/bin/setup +0 -8
- data/bin/solargraph +0 -27
- data/bin/sord +0 -27
- data/bin/spoom +0 -27
- data/bin/srb +0 -27
- data/bin/srb-rbi +0 -27
- data/bin/tapioca +0 -27
- data/bin/yard +0 -27
- data/config/annotations_asana.rb +0 -254
- data/config/annotations_misc.rb +0 -68
- data/config/env.1p +0 -2
- data/docs/.gitignore +0 -3
- data/docs/cookiecutter_input.json +0 -17
- data/docs/example_project.png +0 -0
- data/fix.sh +0 -534
- data/metrics/bigfiles_high_water_mark +0 -1
- data/metrics/brakeman_high_water_mark +0 -1
- data/metrics/bundle-audit_high_water_mark +0 -1
- data/metrics/cane_high_water_mark +0 -1
- data/metrics/eslint_high_water_mark +0 -1
- data/metrics/flake8_high_water_mark +0 -1
- data/metrics/flay_high_water_mark +0 -1
- data/metrics/flog_high_water_mark +0 -1
- data/metrics/jscs_high_water_mark +0 -1
- data/metrics/mdl_high_water_mark +0 -1
- data/metrics/pep8_high_water_mark +0 -1
- data/metrics/punchlist_high_water_mark +0 -1
- data/metrics/pycodestyle_high_water_mark +0 -1
- data/metrics/rails_best_practices_high_water_mark +0 -1
- data/metrics/rubocop_high_water_mark +0 -1
- data/metrics/scalastyle_high_water_mark +0 -1
- data/metrics/shellcheck_high_water_mark +0 -1
- data/package.json +0 -9
- data/rakelib/citest.rake +0 -4
- data/rakelib/clear_metrics.rake +0 -9
- data/rakelib/console.rake +0 -15
- data/rakelib/default.rake +0 -4
- data/rakelib/doc.rake +0 -6
- data/rakelib/gem_tasks.rake +0 -3
- data/rakelib/localtest.rake +0 -4
- data/rakelib/overcommit.rake +0 -6
- data/rakelib/quality.rake +0 -4
- data/rakelib/repl.rake +0 -4
- data/rakelib/test.rake +0 -10
- data/rakelib/trigger_next_builds.rake +0 -7
- data/rakelib/undercover.rake +0 -8
- data/requirements_dev.txt +0 -2
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activesupport.rbi +0 -453
- data/sorbet/rbi/annotations/faraday.rbi +0 -17
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/mocha.rbi +0 -34
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/annotations/webmock.rbi +0 -9
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -23
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/activesupport@7.1.5.rbi +0 -18746
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1994
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +0 -688
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +0 -6142
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -523
- 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.5.rbi +0 -78
- data/sorbet/rbi/gems/brakeman@6.2.2.rbi +0 -222
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -505
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/cache@0.4.1.rbi +0 -211
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +0 -293
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +0 -9
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +0 -383
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -11591
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -145
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -969
- data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -9
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -152
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -222
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -126
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -136
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -145
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -259
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -142
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -118
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -125
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -133
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -198
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +0 -2729
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +0 -29
- data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +0 -1004
- data/sorbet/rbi/gems/gli@2.22.0.rbi +0 -9
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -351
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/imagen@0.1.8.rbi +0 -340
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +0 -899
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +0 -22
- data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1562
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +0 -1405
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -128
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3272
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/logger@1.6.2.rbi +0 -923
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +0 -445
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -273
- data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +0 -127
- data/sorbet/rbi/gems/mime-types@3.5.1.rbi +0 -1252
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +0 -136
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +0 -1014
- data/sorbet/rbi/gems/minitest@5.21.1.rbi +0 -1539
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +0 -314
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +0 -581
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +0 -629
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +0 -12
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +0 -102
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +0 -234
- data/sorbet/rbi/gems/mutex_m@0.3.0.rbi +0 -97
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nokogiri@1.17.0.rbi +0 -8201
- data/sorbet/rbi/gems/oauth2@1.4.11.rbi +0 -833
- data/sorbet/rbi/gems/overcommit@0.64.1.rbi +0 -2400
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -274
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -7253
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10070
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -936
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +0 -173
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4896
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -3022
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +0 -5613
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3750
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -390
- data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4964
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7061
- data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +0 -2577
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +0 -3262
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -329
- data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +0 -7546
- data/sorbet/rbi/gems/rubocop@1.59.0.rbi +0 -57238
- 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/rugged@1.6.3.rbi +0 -1577
- data/sorbet/rbi/gems/securerandom@0.4.0.rbi +0 -75
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -217
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +0 -256
- 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/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +0 -320
- data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +0 -9396
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +0 -317
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/tapioca@0.16.5.rbi +0 -3617
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/tilt@2.4.0.rbi +0 -933
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +0 -9
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/undercover@0.5.0.rbi +0 -433
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -66
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1769
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18406
- data/sorbet/rbi/todo.rbi +0 -11
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
@@ -1,329 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `rubocop-rake` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem rubocop-rake`.
|
6
|
-
|
7
|
-
|
8
|
-
# source://rubocop-rake//lib/rubocop/rake/version.rb#3
|
9
|
-
module RuboCop; end
|
10
|
-
|
11
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#4
|
12
|
-
module RuboCop::Cop; end
|
13
|
-
|
14
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#5
|
15
|
-
module RuboCop::Cop::Rake; end
|
16
|
-
|
17
|
-
# This cop detects class or module definition in a task or namespace,
|
18
|
-
# because it is defined to the top level.
|
19
|
-
# It is confusing because the scope looks in the task or namespace,
|
20
|
-
# but actually it is defined to the top level.
|
21
|
-
#
|
22
|
-
# @example
|
23
|
-
# # bad
|
24
|
-
# task :foo do
|
25
|
-
# class C
|
26
|
-
# end
|
27
|
-
# end
|
28
|
-
#
|
29
|
-
# # bad
|
30
|
-
# namespace :foo do
|
31
|
-
# module M
|
32
|
-
# end
|
33
|
-
# end
|
34
|
-
#
|
35
|
-
# # good - It is also defined to the top level,
|
36
|
-
# # but it looks expected behavior.
|
37
|
-
# class C
|
38
|
-
# end
|
39
|
-
# task :foo do
|
40
|
-
# end
|
41
|
-
#
|
42
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#31
|
43
|
-
class RuboCop::Cop::Rake::ClassDefinitionInTask < ::RuboCop::Cop::Base
|
44
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
|
45
|
-
def on_class(node); end
|
46
|
-
|
47
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
|
48
|
-
def on_module(node); end
|
49
|
-
end
|
50
|
-
|
51
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#32
|
52
|
-
RuboCop::Cop::Rake::ClassDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
|
53
|
-
|
54
|
-
# Rake task definition should have a description with `desc` method.
|
55
|
-
# It is useful as a documentation of task. And Rake does not display
|
56
|
-
# task that does not have `desc` by `rake -T`.
|
57
|
-
#
|
58
|
-
# Note: This cop does not require description for the default task,
|
59
|
-
# because the default task is executed with `rake` without command.
|
60
|
-
#
|
61
|
-
# @example
|
62
|
-
# # bad
|
63
|
-
# task :do_something
|
64
|
-
#
|
65
|
-
# # bad
|
66
|
-
# task :do_something do
|
67
|
-
# end
|
68
|
-
#
|
69
|
-
# # good
|
70
|
-
# desc 'Do something'
|
71
|
-
# task :do_something
|
72
|
-
#
|
73
|
-
# # good
|
74
|
-
# desc 'Do something'
|
75
|
-
# task :do_something do
|
76
|
-
# end
|
77
|
-
#
|
78
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#30
|
79
|
-
class RuboCop::Cop::Rake::Desc < ::RuboCop::Cop::Base
|
80
|
-
include ::RuboCop::Cop::Rake::Helper::OnTask
|
81
|
-
extend ::RuboCop::Cop::AutoCorrector
|
82
|
-
|
83
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#40
|
84
|
-
def on_task(node); end
|
85
|
-
|
86
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#36
|
87
|
-
def prerequisites(param0 = T.unsafe(nil)); end
|
88
|
-
|
89
|
-
private
|
90
|
-
|
91
|
-
# @return [Boolean]
|
92
|
-
#
|
93
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#76
|
94
|
-
def can_insert_desc_to?(parent); end
|
95
|
-
|
96
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#62
|
97
|
-
def parent_and_task(task_node); end
|
98
|
-
|
99
|
-
# @return [Boolean]
|
100
|
-
#
|
101
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#50
|
102
|
-
def task_with_desc?(node); end
|
103
|
-
end
|
104
|
-
|
105
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#34
|
106
|
-
RuboCop::Cop::Rake::Desc::MSG = T.let(T.unsafe(nil), String)
|
107
|
-
|
108
|
-
# If namespaces are defined with the same name, Rake executes the both namespaces
|
109
|
-
# in definition order.
|
110
|
-
# It is redundant. You should squash them into one definition.
|
111
|
-
# This cop detects it.
|
112
|
-
#
|
113
|
-
# @example
|
114
|
-
# # bad
|
115
|
-
# namespace :foo do
|
116
|
-
# task :bar do
|
117
|
-
# end
|
118
|
-
# end
|
119
|
-
# namespace :foo do
|
120
|
-
# task :hoge do
|
121
|
-
# end
|
122
|
-
# end
|
123
|
-
#
|
124
|
-
# # good
|
125
|
-
# namespace :foo do
|
126
|
-
# task :bar do
|
127
|
-
# end
|
128
|
-
# task :hoge do
|
129
|
-
# end
|
130
|
-
# end
|
131
|
-
#
|
132
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#30
|
133
|
-
class RuboCop::Cop::Rake::DuplicateNamespace < ::RuboCop::Cop::Base
|
134
|
-
include ::RuboCop::Cop::Rake::Helper::OnNamespace
|
135
|
-
|
136
|
-
# @return [DuplicateNamespace] a new instance of DuplicateNamespace
|
137
|
-
#
|
138
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#35
|
139
|
-
def initialize(*_arg0); end
|
140
|
-
|
141
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#67
|
142
|
-
def message_for_dup(previous:, current:, namespace:); end
|
143
|
-
|
144
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#53
|
145
|
-
def namespaces(node); end
|
146
|
-
|
147
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#40
|
148
|
-
def on_namespace(node); end
|
149
|
-
|
150
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#76
|
151
|
-
def source_location(node); end
|
152
|
-
end
|
153
|
-
|
154
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#33
|
155
|
-
RuboCop::Cop::Rake::DuplicateNamespace::MSG = T.let(T.unsafe(nil), String)
|
156
|
-
|
157
|
-
# If tasks are defined with the same name, Rake executes the both tasks
|
158
|
-
# in definition order.
|
159
|
-
# It is misleading sometimes. You should squash them into one definition.
|
160
|
-
# This cop detects it.
|
161
|
-
#
|
162
|
-
# @example
|
163
|
-
# # bad
|
164
|
-
# task :foo do
|
165
|
-
# p 'foo 1'
|
166
|
-
# end
|
167
|
-
# task :foo do
|
168
|
-
# p 'foo 2'
|
169
|
-
# end
|
170
|
-
#
|
171
|
-
# # good
|
172
|
-
# task :foo do
|
173
|
-
# p 'foo 1'
|
174
|
-
# p 'foo 2'
|
175
|
-
# end
|
176
|
-
#
|
177
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#26
|
178
|
-
class RuboCop::Cop::Rake::DuplicateTask < ::RuboCop::Cop::Base
|
179
|
-
include ::RuboCop::Cop::Rake::Helper::OnTask
|
180
|
-
|
181
|
-
# @return [DuplicateTask] a new instance of DuplicateTask
|
182
|
-
#
|
183
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#31
|
184
|
-
def initialize(*_arg0); end
|
185
|
-
|
186
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#66
|
187
|
-
def message_for_dup(previous:, current:, task_name:); end
|
188
|
-
|
189
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#52
|
190
|
-
def namespaces(node); end
|
191
|
-
|
192
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#36
|
193
|
-
def on_task(node); end
|
194
|
-
|
195
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#75
|
196
|
-
def source_location(node); end
|
197
|
-
end
|
198
|
-
|
199
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#29
|
200
|
-
RuboCop::Cop::Rake::DuplicateTask::MSG = T.let(T.unsafe(nil), String)
|
201
|
-
|
202
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#6
|
203
|
-
module RuboCop::Cop::Rake::Helper; end
|
204
|
-
|
205
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#7
|
206
|
-
module RuboCop::Cop::Rake::Helper::ClassDefinition
|
207
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
208
|
-
extend ::RuboCop::Cop::Rake::Helper::ClassDefinition
|
209
|
-
|
210
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#11
|
211
|
-
def class_definition?(param0 = T.unsafe(nil)); end
|
212
|
-
|
213
|
-
# @return [Boolean]
|
214
|
-
#
|
215
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#22
|
216
|
-
def in_class_definition?(node); end
|
217
|
-
end
|
218
|
-
|
219
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#7
|
220
|
-
module RuboCop::Cop::Rake::Helper::OnNamespace
|
221
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
222
|
-
|
223
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#10
|
224
|
-
def namespace?(param0 = T.unsafe(nil)); end
|
225
|
-
|
226
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#14
|
227
|
-
def on_send(node); end
|
228
|
-
end
|
229
|
-
|
230
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#7
|
231
|
-
module RuboCop::Cop::Rake::Helper::OnTask
|
232
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
233
|
-
|
234
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#14
|
235
|
-
def on_send(node); end
|
236
|
-
|
237
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#10
|
238
|
-
def task?(param0 = T.unsafe(nil)); end
|
239
|
-
end
|
240
|
-
|
241
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#7
|
242
|
-
module RuboCop::Cop::Rake::Helper::TaskDefinition
|
243
|
-
extend ::RuboCop::AST::NodePattern::Macros
|
244
|
-
extend ::RuboCop::Cop::Rake::Helper::TaskDefinition
|
245
|
-
|
246
|
-
# @return [Boolean]
|
247
|
-
#
|
248
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#19
|
249
|
-
def in_task_or_namespace?(node); end
|
250
|
-
|
251
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#11
|
252
|
-
def task_or_namespace?(param0 = T.unsafe(nil)); end
|
253
|
-
end
|
254
|
-
|
255
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#7
|
256
|
-
module RuboCop::Cop::Rake::Helper::TaskName
|
257
|
-
extend ::RuboCop::Cop::Rake::Helper::TaskName
|
258
|
-
|
259
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#10
|
260
|
-
def task_name(node); end
|
261
|
-
end
|
262
|
-
|
263
|
-
# This cop detects method definition in a task or namespace,
|
264
|
-
# because it is defined to the top level.
|
265
|
-
# It is confusing because the scope looks in the task or namespace,
|
266
|
-
# but actually it is defined to the top level.
|
267
|
-
#
|
268
|
-
# @example
|
269
|
-
# # bad
|
270
|
-
# task :foo do
|
271
|
-
# def helper_method
|
272
|
-
# do_something
|
273
|
-
# end
|
274
|
-
# end
|
275
|
-
#
|
276
|
-
# # bad
|
277
|
-
# namespace :foo do
|
278
|
-
# def helper_method
|
279
|
-
# do_something
|
280
|
-
# end
|
281
|
-
# end
|
282
|
-
#
|
283
|
-
# # good - It is also defined to the top level,
|
284
|
-
# # but it looks expected behavior.
|
285
|
-
# def helper_method
|
286
|
-
# end
|
287
|
-
# task :foo do
|
288
|
-
# end
|
289
|
-
#
|
290
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#33
|
291
|
-
class RuboCop::Cop::Rake::MethodDefinitionInTask < ::RuboCop::Cop::Base
|
292
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
|
293
|
-
def on_def(node); end
|
294
|
-
|
295
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
|
296
|
-
def on_defs(node); end
|
297
|
-
end
|
298
|
-
|
299
|
-
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#34
|
300
|
-
RuboCop::Cop::Rake::MethodDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
|
301
|
-
|
302
|
-
# source://rubocop-rake//lib/rubocop/rake/version.rb#4
|
303
|
-
module RuboCop::Rake; end
|
304
|
-
|
305
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#12
|
306
|
-
RuboCop::Rake::CONFIG = T.let(T.unsafe(nil), Hash)
|
307
|
-
|
308
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#11
|
309
|
-
RuboCop::Rake::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
310
|
-
|
311
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#8
|
312
|
-
class RuboCop::Rake::Error < ::StandardError; end
|
313
|
-
|
314
|
-
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
315
|
-
# bit of our configuration.
|
316
|
-
#
|
317
|
-
# source://rubocop-rake//lib/rubocop/rake/inject.rb#9
|
318
|
-
module RuboCop::Rake::Inject
|
319
|
-
class << self
|
320
|
-
# source://rubocop-rake//lib/rubocop/rake/inject.rb#10
|
321
|
-
def defaults!; end
|
322
|
-
end
|
323
|
-
end
|
324
|
-
|
325
|
-
# source://rubocop-rake//lib/rubocop/rake.rb#10
|
326
|
-
RuboCop::Rake::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
327
|
-
|
328
|
-
# source://rubocop-rake//lib/rubocop/rake/version.rb#5
|
329
|
-
RuboCop::Rake::VERSION = T.let(T.unsafe(nil), String)
|