interagent / committee

A collection of Rack middleware to support JSON Schema.
MIT License
883 stars 135 forks source link

Enable `Layout/ExtraSpacing` #407

Closed ydah closed 10 months ago

ydah commented 10 months ago

Since it only removes extra spaces and does not involve any destructive changes, I believe it should be fine. What do you think?

❯ bundle exec rubocop -A
....C.....................C................C.....................................

Offenses:

lib/committee.rb:25:31: C: [Corrected] Layout/ExtraSpacing: Unnecessary spacing detected.
    raise "remove deprecated!"  unless Committee::VERSION.start_with?("5")
                              ^
lib/committee/middleware/request_validation.rb:9:16: C: [Corrected] Layout/ExtraSpacing: Unnecessary spacing detected.
        @strict  = options[:strict]
               ^
lib/committee/schema_validator/option.rb:35:23: C: [Corrected] Layout/ExtraSpacing: Unnecessary spacing detected.
        @path_hash_key      = options[:path_hash_key] || "committee.path_hash"
                      ^^^^^

81 files inspected, 3 offenses detected, 3 offenses corrected