Skip to content

Commit

Permalink
Merge pull request #301 from D-system/standardrb-fix-performance_inef…
Browse files Browse the repository at this point in the history
…ficient_hash_search

Syntax: Update syntax for Performance/InefficientHashSearch
  • Loading branch information
Floppy authored Nov 27, 2024
2 parents f01abb1 + e39c2d4 commit 6d91b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csvlint/csvw/property_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def column_reference_property(type)
warnings = []
if value.instance_of? Hash
if value["@id"]
raise Csvlint::Csvw::MetadataError.new("datatype.@id"), "datatype @id must not be the id of a built-in datatype (#{value["@id"]})" if BUILT_IN_DATATYPES.values.include?(value["@id"])
raise Csvlint::Csvw::MetadataError.new("datatype.@id"), "datatype @id must not be the id of a built-in datatype (#{value["@id"]})" if BUILT_IN_DATATYPES.value?(value["@id"])
_, w, _ = PROPERTIES["@id"].call(value["@id"], base_url, lang)
unless w.nil?
warnings << w
Expand Down

0 comments on commit 6d91b46

Please sign in to comment.