checkoff 0.219.0 → 0.221.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +3 -4
  3. data/.overcommit.yml +2 -0
  4. data/.rubocop.yml +4 -0
  5. data/.rubocop_todo.yml +2 -1
  6. data/Gemfile +1 -0
  7. data/Gemfile.lock +42 -8
  8. data/Makefile +13 -7
  9. data/bin/tapioca +1 -1
  10. data/checkoff.gemspec +1 -0
  11. data/fix.sh +1 -0
  12. data/lib/checkoff/tasks.rb +8 -2
  13. data/lib/checkoff/version.rb +1 -1
  14. data/sorbet/rbi/gems/{activesupport@7.1.3.rbi → activesupport@7.1.5.rbi} +157 -160
  15. data/sorbet/rbi/gems/brakeman@6.2.2.rbi +222 -0
  16. data/sorbet/rbi/gems/{i18n@1.14.1.rbi → i18n@1.14.6.rbi} +135 -102
  17. data/sorbet/rbi/gems/{logger@1.6.1.rbi → logger@1.6.2.rbi} +4 -1
  18. data/sorbet/rbi/gems/{mutex_m@0.2.0.rbi → mutex_m@0.3.0.rbi} +15 -12
  19. data/sorbet/rbi/gems/{nokogiri@1.16.7.rbi → nokogiri@1.17.0.rbi} +1693 -803
  20. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +33 -33
  21. data/sorbet/rbi/gems/{rack@3.0.8.rbi → rack@3.1.8.rbi} +697 -985
  22. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.9.rbi} +354 -278
  23. data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +7546 -0
  24. data/sorbet/rbi/gems/securerandom@0.4.0.rbi +75 -0
  25. data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +320 -0
  26. data/sorbet/rbi/gems/{tapioca@0.16.4.rbi → tapioca@0.16.5.rbi} +89 -76
  27. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +429 -270
  28. metadata +33 -16
  29. data/sorbet/rbi/gems/ostruct@0.6.1.rbi +0 -354
  30. /data/sorbet/rbi/gems/{drb@2.2.0.rbi → drb@2.2.1.rbi} +0 -0
  31. /data/sorbet/rbi/gems/{gli@2.21.1.rbi → gli@2.22.0.rbi} +0 -0
  32. /data/sorbet/rbi/gems/{overcommit@0.64.0.rbi → overcommit@0.64.1.rbi} +0 -0
@@ -0,0 +1,222 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `brakeman` gem.
5
+ # Please instead update this file by running `bin/tapioca gem brakeman`.
6
+
7
+
8
+ # source://brakeman//lib/brakeman/version.rb#1
9
+ module Brakeman
10
+ class << self
11
+ # source://brakeman//lib/brakeman.rb#573
12
+ def add_external_checks(options); end
13
+
14
+ # source://brakeman//lib/brakeman.rb#579
15
+ def check_for_missing_checks(included_checks, excluded_checks, enabled_checks); end
16
+
17
+ # Compare JSON output from a previous scan and return the diff of the two scans
18
+ #
19
+ # @raise [ArgumentError]
20
+ #
21
+ # source://brakeman//lib/brakeman.rb#484
22
+ def compare(options); end
23
+
24
+ # source://brakeman//lib/brakeman.rb#173
25
+ def config_file(custom_location, app_path); end
26
+
27
+ # source://brakeman//lib/brakeman.rb#479
28
+ def debug(message); end
29
+
30
+ # source://brakeman//lib/brakeman.rb#589
31
+ def debug=(val); end
32
+
33
+ # Default set of options
34
+ #
35
+ # source://brakeman//lib/brakeman.rb#180
36
+ def default_options; end
37
+
38
+ # Output configuration to YAML
39
+ #
40
+ # source://brakeman//lib/brakeman.rb#339
41
+ def dump_config(options); end
42
+
43
+ # source://brakeman//lib/brakeman.rb#365
44
+ def ensure_latest; end
45
+
46
+ # source://brakeman//lib/brakeman.rb#545
47
+ def filter_warnings(tracker, options); end
48
+
49
+ # Determine output formats based on options[:output_formats]
50
+ # or options[:output_files]
51
+ #
52
+ # source://brakeman//lib/brakeman.rb#211
53
+ def get_output_formats(options); end
54
+
55
+ # Returns an array of alert fingerprints for any ignored warnings without
56
+ # notes found in the specified ignore file (if it exists).
57
+ #
58
+ # source://brakeman//lib/brakeman.rb#535
59
+ def ignore_file_entries_with_empty_notes(file); end
60
+
61
+ # Output list of checks (for `-k` option)
62
+ #
63
+ # source://brakeman//lib/brakeman.rb#317
64
+ def list_checks(options); end
65
+
66
+ # source://brakeman//lib/brakeman.rb#507
67
+ def load_brakeman_dependency(name, allow_fail = T.unsafe(nil)); end
68
+
69
+ # Load options from YAML file
70
+ #
71
+ # source://brakeman//lib/brakeman.rb#125
72
+ def load_options(line_options); end
73
+
74
+ # source://brakeman//lib/brakeman.rb#475
75
+ def notify(message); end
76
+
77
+ # source://brakeman//lib/brakeman.rb#593
78
+ def quiet=(val); end
79
+
80
+ # Rescan a subset of files in a Rails application.
81
+ #
82
+ # A full scan must have been run already to use this method.
83
+ # The returned Tracker object from Brakeman.run is used as a starting point
84
+ # for the rescan.
85
+ #
86
+ # Options may be given as a hash with the same values as Brakeman.run.
87
+ # Note that these options will be merged into the Tracker.
88
+ #
89
+ # This method returns a RescanReport object with information about the scan.
90
+ # However, the Tracker object will also be modified as the scan is run.
91
+ #
92
+ # source://brakeman//lib/brakeman.rb#464
93
+ def rescan(tracker, files, options = T.unsafe(nil)); end
94
+
95
+ # Run Brakeman scan. Returns Tracker object.
96
+ #
97
+ # Options:
98
+ #
99
+ # * :app_path - path to root of Rails app (required)
100
+ # * :additional_checks_path - array of additional directories containing additional out-of-tree checks to run
101
+ # * :additional_libs_path - array of additional application relative lib directories (ex. app/mailers) to process
102
+ # * :assume_all_routes - assume all methods are routes (default: true)
103
+ # * :check_arguments - check arguments of methods (default: true)
104
+ # * :collapse_mass_assignment - report unprotected models in single warning (default: false)
105
+ # * :combine_locations - combine warning locations (default: true)
106
+ # * :config_file - configuration file
107
+ # * :escape_html - escape HTML by default (automatic)
108
+ # * :exit_on_error - only affects Commandline module (default: true)
109
+ # * :exit_on_warn - only affects Commandline module (default: true)
110
+ # * :github_repo - github repo to use for file links (user/repo[/path][@ref])
111
+ # * :highlight_user_input - highlight user input in reported warnings (default: true)
112
+ # * :html_style - path to CSS file
113
+ # * :ignore_model_output - consider models safe (default: false)
114
+ # * :index_libs - add libraries to call index (default: true)
115
+ # * :interprocedural - limited interprocedural processing of method calls (default: false)
116
+ # * :message_limit - limit length of messages
117
+ # * :min_confidence - minimum confidence (0-2, 0 is highest)
118
+ # * :output_files - files for output
119
+ # * :output_formats - formats for output (:to_s, :to_tabs, :to_csv, :to_html)
120
+ # * :parallel_checks - run checks in parallel (default: true)
121
+ # * :parser_timeout - set timeout for parsing an individual file (default: 10 seconds)
122
+ # * :print_report - if no output file specified, print to stdout (default: false)
123
+ # * :quiet - suppress most messages (default: true)
124
+ # * :rails3 - force Rails 3 mode (automatic)
125
+ # * :rails4 - force Rails 4 mode (automatic)
126
+ # * :rails5 - force Rails 5 mode (automatic)
127
+ # * :rails6 - force Rails 6 mode (automatic)
128
+ # * :report_routes - show found routes on controllers (default: false)
129
+ # * :run_checks - array of checks to run (run all if not specified)
130
+ # * :safe_methods - array of methods to consider safe
131
+ # * :show_ignored - Display warnings that are usually ignored
132
+ # * :sql_safe_methods - array of sql sanitization methods to consider safe
133
+ # * :skip_libs - do not process lib/ directory (default: false)
134
+ # * :skip_vendor - do not process vendor/ directory (default: true)
135
+ # * :skip_checks - checks not to run (run all if not specified)
136
+ # * :absolute_paths - show absolute path of each file (default: false)
137
+ # * :summary_only - only output summary section of report for plain/table (:summary_only, :no_summary, true)
138
+ #
139
+ # Alternatively, just supply a path as a string.
140
+ #
141
+ # source://brakeman//lib/brakeman.rb#77
142
+ def run(options); end
143
+
144
+ # Run a scan. Generally called from Brakeman.run instead of directly.
145
+ #
146
+ # source://brakeman//lib/brakeman.rb#374
147
+ def scan(options); end
148
+
149
+ # Sets up options for run, checks given application path
150
+ #
151
+ # source://brakeman//lib/brakeman.rb#91
152
+ def set_options(options); end
153
+
154
+ private
155
+
156
+ # source://brakeman//lib/brakeman.rb#264
157
+ def get_formats_from_output_files(output_files); end
158
+
159
+ # source://brakeman//lib/brakeman.rb#230
160
+ def get_formats_from_output_format(output_format); end
161
+
162
+ # source://brakeman//lib/brakeman.rb#300
163
+ def get_github_url(options); end
164
+
165
+ # source://brakeman//lib/brakeman.rb#418
166
+ def write_report_to_files(tracker, output_files); end
167
+
168
+ # source://brakeman//lib/brakeman.rb#436
169
+ def write_report_to_formats(tracker, output_formats); end
170
+ end
171
+ end
172
+
173
+ # source://brakeman//lib/brakeman.rb#161
174
+ Brakeman::CONFIG_FILES = T.let(T.unsafe(nil), Array)
175
+
176
+ # source://brakeman//lib/brakeman.rb#597
177
+ class Brakeman::DependencyError < ::RuntimeError; end
178
+
179
+ # Exit code returned when an ignored warning has no note and
180
+ # --ensure-ignore-notes is set
181
+ #
182
+ # source://brakeman//lib/brakeman.rb#25
183
+ Brakeman::Empty_Ignore_Note_Exit_Code = T.let(T.unsafe(nil), Integer)
184
+
185
+ # Exit code returned when errors were found and the --exit-on-error
186
+ # option is set
187
+ #
188
+ # source://brakeman//lib/brakeman.rb#21
189
+ Brakeman::Errors_Found_Exit_Code = T.let(T.unsafe(nil), Integer)
190
+
191
+ # source://brakeman//lib/brakeman.rb#600
192
+ class Brakeman::MissingChecksError < ::RuntimeError; end
193
+
194
+ # Exit code returned when user requests non-existent checks
195
+ #
196
+ # source://brakeman//lib/brakeman.rb#17
197
+ Brakeman::Missing_Checks_Exit_Code = T.let(T.unsafe(nil), Integer)
198
+
199
+ # source://brakeman//lib/brakeman.rb#599
200
+ class Brakeman::NoApplication < ::RuntimeError; end
201
+
202
+ # source://brakeman//lib/brakeman.rb#598
203
+ class Brakeman::NoBrakemanError < ::RuntimeError; end
204
+
205
+ # Exit code returned when no Rails application is detected
206
+ #
207
+ # source://brakeman//lib/brakeman.rb#11
208
+ Brakeman::No_App_Found_Exit_Code = T.let(T.unsafe(nil), Integer)
209
+
210
+ # Exit code returned when brakeman was outdated
211
+ #
212
+ # source://brakeman//lib/brakeman.rb#14
213
+ Brakeman::Not_Latest_Version_Exit_Code = T.let(T.unsafe(nil), Integer)
214
+
215
+ # source://brakeman//lib/brakeman/version.rb#2
216
+ Brakeman::Version = T.let(T.unsafe(nil), String)
217
+
218
+ # This exit code is used when warnings are found and the --exit-on-warn
219
+ # option is set
220
+ #
221
+ # source://brakeman//lib/brakeman.rb#8
222
+ Brakeman::Warnings_Found_Exit_Code = T.let(T.unsafe(nil), Integer)