A platform for community discussion. Free, open, simple.
Upgrade rubocop and generate rubocop todo.
Guo Xiang Tanf096181653a7
diff --git a/.rubocop.yml b/.rubocop.ymlindex d46296cf883..4470fd45c01 100644--- a/.rubocop.yml+++ b/.rubocop.yml@@ -1,2 +1,7 @@+inherit_from: .rubocop_todo.yml+inherit_gem:rubocop-discourse: default.yml++Discourse/NoResetColumnInformationInMigrations:+ Enabled: truediff --git a/.rubocop_todo.yml b/.rubocop_todo.ymlnew file mode 100644index 00000000000..26c278c13be--- /dev/null+++ b/.rubocop_todo.yml@@ -0,0 +1,18 @@+# This configuration was generated by+# `rubocop --auto-gen-config`+# on 2020-06-17 14:48:01 +0800 using RuboCop version 0.85.1.+# The point is for the user to remove these configuration records+# one by one as the offenses are removed from the code base.+# Note that changes in the inspected code, or installation of new+# versions of RuboCop, may require this file to be generated again.++# Offense count: 60+# Configuration parameters: Include.+# Include: **/db/migrate/*, **/db/post_migrate/*+Discourse/NoAddReferenceOrAliasesActiveRecordMigration:+ Enabled: false++# Offense count: 1+Discourse/NoURIEscapeEncode:+ Exclude:+ - 'lib/file_store/s3_store.rb'diff --git a/Gemfile.lock b/Gemfile.lockindex 3f49375657a..c1ad5fb0ddf 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -249,7 +249,7 @@ GEMsanitizeopenssl-signature_algorithm (0.4.0)optimist (3.0.1)- parallel (1.19.1)+ parallel (1.19.2)parallel_tests (3.0.0)parallelparser (2.7.1.3)@@ -359,7 +359,7 @@ GEMunicode-display_width (>= 1.4.0, < 2.0)rubocop-ast (0.0.3)parser (>= 2.7.0.1)- rubocop-discourse (2.1.2)+ rubocop-discourse (2.2.0)rubocop (>= 0.69.0)rubocop-rspec (>= 1.39.0)rubocop-rspec (1.40.0)