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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
**/.speakeasy/temp/
**/.speakeasy/logs/
.speakeasy/reports
bin/
sorbet/rbi
.env
.env.local
.DS_Store
*.gem
Gemfile.lock
Expand Down
16 changes: 16 additions & 0 deletions .rubocop-strict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
inherit_from: .rubocop.yml

# Re-enable Style/StringLiterals for strict linting (e.g. internal CI).
# The base .rubocop.yml disables this rule so customers with single-quote
# conventions aren't broken. Use RUBOCOP_OPTS="--config .rubocop-strict.yml"
# to opt in to enforcement.
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Exclude:
- Gemfile
- "*.gemspec"
- lib/crystalline.rb
- lib/crystalline/**/*
- lib/**/sdk_hooks/**/*
- sorbet/**/*
30 changes: 29 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
plugins:
- rubocop-minitest

AllCops:
Exclude:
- Rakefile
TargetRubyVersion: "3.0"
- bin/**/*
TargetRubyVersion: "3.2"
Metrics:
Enabled: false
Style/IfInsideElse:
Expand Down Expand Up @@ -63,6 +67,8 @@ Style/TrailingCommaInHashLiteral:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
Style/WordArray:
Expand All @@ -75,3 +81,25 @@ Lint/LiteralAsCondition:
Enabled: false
Naming/VariableNumber:
Enabled: false
# rubyfmt enforces double quotes on generated code, but customer-authored files
# (sdk_hooks, tests, etc.) may use single quotes, so we don't enforce this rule.
Style/StringLiterals:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Layout/EmptyLinesAroundExceptionHandlingKeywords:
Enabled: false
Style/EmptyMethod:
Enabled: false
Layout/MultilineOperationIndentation:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/SpaceInLambdaLiteral:
Enabled: false
Layout/FirstArgumentIndentation:
Enabled: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Loading