dry-rb / dry-schema

Coercion and validation for data structures
https://dry-rb.org/gems/dry-schema
MIT License
421 stars 110 forks source link

Fix skipped ruby2_keywords flag warnings #447

Closed casperisfine closed 1 year ago

casperisfine commented 1 year ago
gems/dry-schema-1.11.3/lib/dry/schema/macros/dsl.rb:125: warning: Skipping set of ruby2_keywords flag for schema (method accepts keywords or method does not accept argument splat)
gems/dry-schema-1.11.3/lib/dry/schema/macros/dsl.rb:140: warning: Skipping set of ruby2_keywords flag for hash (method accepts keywords or method does not accept argument splat)
gems/dry-schema-1.11.3/lib/dry/schema/macros/dsl.rb:164: warning: Skipping set of ruby2_keywords flag for each (method accepts keywords or method does not accept argument splat)
gems/dry-schema-1.11.3/lib/dry/schema/macros/dsl.rb:184: warning: Skipping set of ruby2_keywords flag for array (method accepts keywords or method does not accept argument splat)
gems/dry-schema-1.11.3/lib/dry/schema/macros/key.rb:29: warning: Skipping set of ruby2_keywords flag for filter (method accepts keywords or method does not accept argument splat)

When using ... you don't need to call ruby2_keywords.

From what I figured, these signatures were changed by rubocop recently.