Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ coverage
doc
pkg
.rvmrc
.ruby-version
.ruby-gemset
.rspec_status
.bundle
.byebug_history
dist
Gemfile.lock

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a gem, so we don't commit a lock file.

gemfiles/*.lock
tmp
.yardoc
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Style/RaiseArgs:
Enabled: false

Style/RedundantArrayConstructor:
Enabled: false # doesn't work well with params definition
Enabled: false # doesn't work well with params definition

Style/OptionalBooleanParameter:
AllowedMethods:
Expand Down
19 changes: 3 additions & 16 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2026-04-08 20:39:39 UTC using RuboCop version 1.86.0.
# on 2026-06-10 21:18:37 UTC using RuboCop version 1.86.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Exclude:
- 'lib/grape/endpoint.rb'

# Offense count: 18
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
Expand Down Expand Up @@ -59,7 +53,7 @@ RSpec/IndexedLet:
- 'spec/grape/presenters/presenter_spec.rb'
- 'spec/shared/versioning_examples.rb'

# Offense count: 41
# Offense count: 46
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
Expand Down Expand Up @@ -108,7 +102,7 @@ RSpec/StubbedMock:
- 'spec/grape/dsl/inside_route_spec.rb'
- 'spec/grape/middleware/formatter_spec.rb'

# Offense count: 32
# Offense count: 31
RSpec/SubjectStub:
Exclude:
- 'spec/grape/api_spec.rb'
Expand All @@ -117,7 +111,6 @@ RSpec/SubjectStub:
- 'spec/grape/dsl/routing_spec.rb'
- 'spec/grape/middleware/base_spec.rb'
- 'spec/grape/middleware/formatter_spec.rb'
- 'spec/grape/middleware/globals_spec.rb'
- 'spec/grape/middleware/stack_spec.rb'

# Offense count: 20
Expand All @@ -134,9 +127,3 @@ RSpec/VoidExpect:
Exclude:
- 'spec/grape/api_spec.rb'
- 'spec/grape/dsl/headers_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CombinableLoops:
Exclude:
- 'spec/grape/endpoint_spec.rb'
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.11
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"eamodio.gitlens",
"editorconfig.editorconfig",
"shopify.ruby-extensions-pack",
"sysoev.vscode-open-in-github"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

source('https://rubygems.org')

ruby file: '.ruby-version'

gemspec

group :development, :test do
Expand Down
Loading