diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3a38adc..287f260 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -153,10 +153,3 @@ Style/StringConcatenation: Style/SymbolProc: Exclude: - 'lib/sharepoint/client.rb' - -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: WordRegex. -# SupportedStyles: percent, brackets -Style/WordArray: - EnforcedStyle: percent - MinSize: 3 diff --git a/lib/sharepoint/client.rb b/lib/sharepoint/client.rb index 1ddec8d..63fc751 100644 --- a/lib/sharepoint/client.rb +++ b/lib/sharepoint/client.rb @@ -695,7 +695,7 @@ def parse_list_response(json_response, all_properties) next unless result['FileSystemObjectType'].eql? 0 record = {} - (all_properties - ['File', 'URL']).each do |key| + (all_properties - %w[File URL]).each do |key| record[key.underscore.to_sym] = result[key] end file = result['File']