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
1 change: 0 additions & 1 deletion lib/prawn/dev/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
end
task docs: :yard

require 'fileutils'
def stash_yardopts
if File.exist?('.yardopts')
begin
Expand Down
3 changes: 2 additions & 1 deletion lib/rubocop/cop/prawn/style/trailing_comma_fix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module Style
module TrailingCommaFix
def should_have_comma?(style, node)
if style == :prawn_comma
node.loc.begin.line != node.loc.end.line # parens are on different lines
node.loc.begin && node.loc.end &&
(node.loc.begin.line != node.loc.end.line) # parens are on different lines
else
super
end
Expand Down
6 changes: 3 additions & 3 deletions prawn-dev.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency('rake', '~> 13.0')
spec.add_runtime_dependency('rouge', '~> 4.2')
spec.add_runtime_dependency('rspec', '~> 3.12')
spec.add_runtime_dependency('rubocop', '~> 1.61.0')
spec.add_runtime_dependency('rubocop-performance', '~> 1.20.2')
spec.add_runtime_dependency('rubocop-rspec', '~> 2.26.1')
spec.add_runtime_dependency('rubocop', '~> 1.80.0')
spec.add_runtime_dependency('rubocop-performance', '~> 1.25.0')
spec.add_runtime_dependency('rubocop-rspec', '~> 3.6.0')
spec.add_runtime_dependency('simplecov', '~> 0.22.0')
spec.add_runtime_dependency('webrick', '~> 1.8.1')
spec.add_runtime_dependency('yard', '~> 0.9.35')
Expand Down
16 changes: 3 additions & 13 deletions rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require:
plugins:
- rubocop-performance
- rubocop-rspec

require:
- rubocop/cop/prawn_cops

AllCops:
Expand Down Expand Up @@ -584,18 +586,6 @@ Performance/StringInclude:
Performance/Sum:
Enabled: true

RSpec/Capybara:
Enabled: false

Capybara:
Enabled: false

FactoryBot:
Enabled: false

RSpec/Rails:
Enabled: false

RSpec/BeEmpty:
Enabled: true

Expand Down