diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-24 09:48:58 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-24 09:48:58 +0200 |
| commit | f34a0acd23daf07671740eb8a7db1afe68e4f5ac (patch) | |
| tree | 55ab9cd57f4ba263b832ba7d1b8231dd0cb560f7 | |
| parent | 14b7da239879d5299775c48666b43f3016add8ec (diff) | |
| download | caxlsx-f34a0acd23daf07671740eb8a7db1afe68e4f5ac.tar.gz caxlsx-f34a0acd23daf07671740eb8a7db1afe68e4f5ac.zip | |
Enable Gemspec cops
Gemspec/RequireMFA will be fixed via #197
| -rw-r--r-- | .rubocop.yml | 3 | ||||
| -rw-r--r-- | .rubocop_todo.yml | 7 | ||||
| -rw-r--r-- | axlsx.gemspec | 6 |
3 files changed, 13 insertions, 3 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 22e574bc..014f6084 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,6 +16,9 @@ AllCops: - 'examples/**/*' - 'vendor/bundle/**/*' +Gemspec: + Enabled: true + Layout: Enabled: true diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a0260f2e..99cea3ce 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -7,6 +7,13 @@ # versions of RuboCop, may require this file to be generated again. # This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Severity, Include. +# Include: **/*.gemspec +Gemspec/RequireMFA: + Exclude: + - 'axlsx.gemspec' + +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces Layout/FirstHashElementIndentation: diff --git a/axlsx.gemspec b/axlsx.gemspec index 34942176..83531ce4 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -16,14 +16,14 @@ Gem::Specification.new do |s| eof s.files = Dir.glob("{lib/**/*,examples/**/*.rb,examples/**/*.jpeg}") + %w{LICENSE README.md Rakefile CHANGELOG.md .yardopts .yardopts_guide} - s.add_runtime_dependency 'nokogiri', '~> 1.10', '>= 1.10.4' - s.add_runtime_dependency 'rubyzip', '>= 1.3.0', '< 3' s.add_runtime_dependency "htmlentities", "~> 4.3", '>= 4.3.4' s.add_runtime_dependency "marcel", '~> 1.0' + s.add_runtime_dependency 'nokogiri', '~> 1.10', '>= 1.10.4' + s.add_runtime_dependency 'rubyzip', '>= 1.3.0', '< 3' - s.add_development_dependency 'yard', "~> 0.9.8" s.add_development_dependency 'kramdown', '~> 2.3' s.add_development_dependency 'timecop', "~> 0.9.0" + s.add_development_dependency 'yard', "~> 0.9.8" s.required_ruby_version = '>= 2.6' s.require_path = 'lib' end |
