Skip to content

Commit

Permalink
Configure Rubocop
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
  • Loading branch information
pierre committed Jan 4, 2024
1 parent 301f3ef commit c642ec0
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 14 deletions.
52 changes: 52 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
inherit_mode:
merge:
- Exclude

AllCops:
Exclude:
- 'test/dummy/**/*'
NewCops: enable
SuggestExtensions: false

Gemspec/RequiredRubyVersion:
Enabled: false

Layout/LineLength:
Enabled: false

# Alternative?
Gemspec/RubyVersionGlobalsUsage:
Enabled: false

Metrics/AbcSize:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/BlockNesting:
Enabled: false

Metrics/ClassLength:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/ModuleLength:
Enabled: false

Metrics/ParameterLists:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false

Style/Documentation:
Enabled: false

Style/EmptyElse:
EnforcedStyle: empty
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
source "https://rubygems.org"
# frozen_string_literal: true

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

# Specify your gem's dependencies in killbill-assets-ui.gemspec.
gemspec

group :development do
gem 'rubocop'
end
6 changes: 4 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "bundler/setup"
# frozen_string_literal: true

require "bundler/gem_tasks"
require 'bundler/setup'

require 'bundler/gem_tasks'
13 changes: 8 additions & 5 deletions assets.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require_relative "lib/assets/version"
# frozen_string_literal: true

require_relative 'lib/assets/version'

Gem::Specification.new do |s|
s.name = "killbill-assets-ui"
s.name = 'killbill-assets-ui'
s.version = Assets::VERSION
s.authors = 'Kill Bill core team'
s.email = 'killbilling-users@googlegroups.com'
Expand All @@ -11,11 +13,12 @@ Gem::Specification.new do |s|
s.license = 'MIT'

s.files = Dir.chdir(File.expand_path(__dir__)) do
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md']
end

s.add_dependency "rails", ">= 7.0"
s.add_dependency 'bootstrap-datepicker-rails'
s.add_dependency 'font-awesome-rails'
s.add_dependency 'jquery-rails', '~> 4.5.1'
s.add_dependency 'bootstrap-datepicker-rails'
s.add_dependency 'rails', '>= 7.0'
s.metadata['rubygems_mfa_required'] = 'true'
end
8 changes: 5 additions & 3 deletions bin/test
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby
$: << File.expand_path("../test", __dir__)
# frozen_string_literal: true

require "bundler/setup"
require "rails/plugin/test"
$LOAD_PATH << File.expand_path('../test', __dir__)

require 'bundler/setup'
require 'rails/plugin/test'
1 change: 1 addition & 0 deletions lib/assets/engine.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'font-awesome-rails'
require 'jquery-rails'
require 'bootstrap-datepicker-rails'
Expand Down
2 changes: 1 addition & 1 deletion lib/assets/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Assets
VERSION = "0.1.0"
VERSION = '0.1.0'
end
6 changes: 4 additions & 2 deletions lib/killbill-assets-ui.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
require "assets/version"
require "assets/engine"
# frozen_string_literal: true

require 'assets/version'
require 'assets/engine'
1 change: 1 addition & 0 deletions lib/tasks/killbill/assets/ui_tasks.rake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
# desc "Explaining what the task does"
# task :killbill_assets_ui do
# # Task goes here
Expand Down

0 comments on commit c642ec0

Please sign in to comment.