Skip to content

Commit

Permalink
fix rubocop annotations mistakenly getting inserted in yard doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee committed Oct 18, 2024
1 parent 70e5c72 commit 75f5219
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/mindee/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def parse_queued(
end

# rubocop:disable Metrics/ParameterLists

# Enqueue a document for async parsing and automatically try to retrieve it
#
# @param input_source [Mindee::Input::Source::LocalInputSource, Mindee::Input::Source::UrlInputSource]
Expand Down
2 changes: 2 additions & 0 deletions lib/mindee/extraction/pdf_extractor/pdf_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def extract_sub_documents(page_indexes)

# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/PerceivedComplexity

# Extracts invoices as complete PDFs from the document.
# @param page_indexes [Array<Array<Integer>, InvoiceSplitterV1PageGroup>]
# @param strict [Boolean]
Expand Down Expand Up @@ -99,6 +100,7 @@ def extract_invoices(page_indexes, strict: false)
end
extract_sub_documents(correct_page_indexes)
end

# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/PerceivedComplexity

Expand Down
1 change: 1 addition & 0 deletions lib/mindee/extraction/tax_extractor/tax_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def self.extract_horizontal_tax(ocr_result, tax_names)
end
candidates
end

# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/PerceivedComplexity

Expand Down
3 changes: 2 additions & 1 deletion lib/mindee/geometry/point.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ class Point
# @return [Float]
attr_accessor :y

# rubocop:disable Naming/MethodParameterName

# @param x [Float]
# @param y [Float]
# rubocop:disable Naming/MethodParameterName
def initialize(x, y)
@x = x
@y = y
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/parsing/standard/position_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def initialize(prediction, page_id)

# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/PerceivedComplexity

# String representation.
# @return [String]
def to_s
return "Polygon with #{@polygon.size} points." if @polygon&.size&.positive?
Expand All @@ -40,6 +42,7 @@ def to_s

''
end

# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/PerceivedComplexity

Expand Down

0 comments on commit 75f5219

Please sign in to comment.