diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..1743c0b --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,23 @@ +# RuboCop configuration + +AllCops: + NewCops: enable + TargetRubyVersion: 2.7 + +# Disable BlockLength for RSpec files as it's standard practice +# RSpec describe blocks can be long and that's expected +Metrics/BlockLength: + Exclude: + - 'spec/**/*_spec.rb' + +# Increase thresholds slightly for AbcSize to accommodate existing code +Metrics/AbcSize: + Max: 25 + +# Increase threshold slightly for MethodLength to accommodate existing code +Metrics/MethodLength: + Max: 15 + +# Allow development dependencies in gemspec (common practice) +Gemspec/DevelopmentDependencies: + Enabled: false diff --git a/bundleup.gemspec b/bundleup.gemspec index bb34e1f..9b607d8 100644 --- a/bundleup.gemspec +++ b/bundleup.gemspec @@ -17,7 +17,8 @@ Gem::Specification.new do |spec| spec.metadata = { 'homepage_uri' => spec.homepage, 'source_code_uri' => 'https://github.com/bundleup/bundleup-sdk-ruby', - 'changelog_uri' => 'https://github.com/bundleup/bundleup-sdk-ruby/blob/main/CHANGELOG.md' + 'changelog_uri' => 'https://github.com/bundleup/bundleup-sdk-ruby/blob/main/CHANGELOG.md', + 'rubygems_mfa_required' => 'true' } spec.files = Dir['lib/**/*', 'LICENSE', 'README.md', 'CHANGELOG.md']