diff --git a/.rubocop.yml b/.rubocop.yml deleted file mode 100644 index 472e0f0..0000000 --- a/.rubocop.yml +++ /dev/null @@ -1,49 +0,0 @@ -require: - - rubocop-performance - - rubocop-rails - -# Stolen from https://gist.github.com/jhass/a5ae80d87f18e53e7b56 -AllCops: - Exclude: - - "bin/**/*" - - "db/schema.rb" - -# Enable Rails -Rails: - Enabled: true - -# Commonly used screens these days easily fit more than 80 characters. -Metrics/LineLength: - Max: 120 - -# Too short methods lead to extraction of single-use methods, which can make -# the code easier to read (by naming things), but can also clutter the class -Metrics/MethodLength: - Exclude: - - "db/migrate/*" - Max: 50 - -# The guiding principle of classes is SRP, SRP can't be accurately measured by LoC -Metrics/ClassLength: - Max: 1500 -Metrics/ModuleLength: - Max: 1500 - -# Raise AbcSize from 15 to 20 -Metrics/AbcSize: - Exclude: - - "db/migrate/*" - Max: 50 - -Metrics/BlockLength: - ExcludedMethods: - - "namespace" - - "create_table" - Exclude: - - "config/**/*.rb" - - "spec/**/*.rb" - -# Disable documentation checks for now -# should be done with yard instead -Style/Documentation: - Enabled: false diff --git a/Gemfile b/Gemfile index 02da70e..2a00f85 100644 --- a/Gemfile +++ b/Gemfile @@ -56,9 +56,6 @@ group :development do gem 'listen', '>= 3.0.5', '< 3.2' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'railroady' - gem 'rubocop', '0.85.0' - gem 'rubocop-performance' - gem 'rubocop-rails' gem 'solargraph' gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' diff --git a/Gemfile.lock b/Gemfile.lock index a2fbb10..7793cbf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -62,8 +62,9 @@ GEM tzinfo (~> 1.1) zeitwerk (~> 2.2, >= 2.2.2) ast (2.4.2) - backport (0.3.0) + backport (1.2.0) bcrypt (3.1.16) + benchmark (0.1.1) bootsnap (1.7.7) msgpack (~> 1.0) builder (3.2.4) @@ -92,6 +93,7 @@ GEM docile (1.4.0) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) + e2mmap (0.1.0) erubi (1.10.0) factory_bot (6.2.0) activesupport (>= 5.0.0) @@ -103,7 +105,6 @@ GEM ffi (1.15.3) globalid (0.5.2) activesupport (>= 5.0) - htmlentities (4.3.4) http-accept (1.7.0) http-cookie (1.0.4) domain_name (~> 0.5) @@ -116,7 +117,10 @@ GEM jaro_winkler (1.5.4) json (2.5.1) jsonapi-renderer (0.2.2) - kramdown (1.17.0) + kramdown (2.3.1) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) @@ -144,7 +148,7 @@ GEM racc (~> 1.4) orm_adapter (0.5.0) parallel (1.20.1) - parser (2.7.2.0) + parser (3.0.2.0) ast (~> 2.4.1) pg (1.2.3) puma (4.3.8) @@ -196,7 +200,7 @@ GEM http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 4.0) netrc (~> 0.8) - reverse_markdown (1.4.0) + reverse_markdown (2.0.0) nokogiri rexml (3.2.5) rspec-core (3.10.1) @@ -216,23 +220,17 @@ GEM rspec-mocks (~> 3.10) rspec-support (~> 3.10) rspec-support (3.10.2) - rubocop (0.85.0) + rubocop (1.19.0) parallel (~> 1.10) - parser (>= 2.7.0.1) + parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) + regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 0.0.3) + rubocop-ast (>= 1.9.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.4.1) - parser (>= 2.7.1.5) - rubocop-performance (1.7.1) - rubocop (>= 0.82.0) - rubocop-rails (2.6.0) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 0.82.0) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.10.0) + parser (>= 3.0.1.1) ruby-progressbar (1.11.0) ruby_dep (1.5.0) shoulda-matchers (5.0.0) @@ -242,17 +240,21 @@ GEM json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - solargraph (0.31.3) - backport (~> 0.3) - htmlentities (~> 4.3, >= 4.3.4) + solargraph (0.43.0) + backport (~> 1.2) + benchmark + bundler (>= 1.17.2) + diff-lcs (~> 1.4) + e2mmap jaro_winkler (~> 1.5) - kramdown (~> 1.16) - parser (~> 2.3) - reverse_markdown (~> 1.0, >= 1.0.5) - rubocop (~> 0.52) - thor (~> 0.19, >= 0.19.4) + kramdown (~> 2.3) + kramdown-parser-gfm (~> 1.1) + parser (~> 3.0) + reverse_markdown (>= 1.0.5, < 3) + rubocop (>= 0.52) + thor (~> 1.0) tilt (~> 2.0) - yard (~> 0.9) + yard (~> 0.9, >= 0.9.24) spring (2.1.1) spring-watcher-listen (2.0.1) listen (>= 2.7, < 4.0) @@ -268,7 +270,7 @@ GEM sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) - thor (0.20.3) + thor (1.1.0) thread_safe (0.3.6) tilt (2.0.10) tins (1.29.1) @@ -278,7 +280,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.7.7) - unicode-display_width (1.7.0) + unicode-display_width (2.0.0) warden (1.2.9) rack (>= 2.0.9) websocket-driver (0.7.5) @@ -309,9 +311,6 @@ DEPENDENCIES railroady rails (~> 6.0.3) rspec-rails - rubocop (= 0.85.0) - rubocop-performance - rubocop-rails shoulda-matchers solargraph spring