Commit Graph

173 Commits

Author SHA1 Message Date
c97b611b6b Fix RSpec/InferredSpecType cop (#24736) 2023-05-04 05:49:53 +02:00
710745e16b Fix RSpec/ContextWording cop (#24739) 2023-05-04 05:49:08 +02:00
cf18cc2891 Fix RSpec/MultipleSubjects cop (#24738) 2023-05-04 05:48:35 +02:00
2c6c398c60 Fix Performance/CollectionLiteralInLoop cop (#24819) 2023-05-04 05:33:55 +02:00
d9a958fcf7 Fix Performance/RedundantMerge cop (#24817) 2023-05-04 05:25:43 +02:00
3df665fd23 Fix Lint/ConstantDefinitionInBlock cop (#24763) 2023-05-03 10:32:30 +02:00
a0c9f2447e Fix Performance/MethodObjectAsBlock cop (#24798) 2023-05-03 10:30:54 +02:00
97385f27bd Fix Performance/RedundantEqualityComparisonBlock cop (#24799) 2023-05-03 10:30:10 +02:00
668a19a2f3 Fix Performance/DeletePrefix cop (#24796) 2023-05-02 21:07:45 +02:00
05e3abe9d9 Fix Lint/EmptyClass cop (#24795) 2023-05-02 21:06:51 +02:00
24491abf6d Fix Rails/DeprecatedActiveModelErrorsMethods cop (#24742) 2023-05-02 18:39:22 +02:00
b5c4b47746 Fix Rails/ActiveRecordCallbacksOrder cop (#24689) 2023-05-02 18:23:35 +02:00
38b2974a83 Extract AccountSearch concern from Account (#24716) 2023-05-02 18:21:36 +02:00
f1c1dd0118 Rename with_lock to with_redis_lock to avoid confusion with ActiveRecord's method (#24741) 2023-05-02 18:16:07 +02:00
570079f8ce Fix Performance/TimesMap cop (#24789) 2023-05-02 18:07:16 +02:00
bae694108a Fix Performance/Count cop (#24793) 2023-05-02 18:06:43 +02:00
5e060e1f44 Fix Performance/Sum cop (#24788) 2023-05-02 16:10:40 +02:00
88d33f361f Fix Lint/DuplicateBranch cop (#24766) 2023-05-02 12:57:11 +02:00
32a030dd74 Rewrite import feature (#21054) 2023-05-02 12:08:48 +02:00
c53fe9b753 Fix RSpec/BeforeAfterAll cop (#24737) 2023-05-01 04:16:08 +09:00
d902a707a3 Fix Rails/CompactBlank cop (#24690) 2023-04-30 14:07:21 +02:00
d00e45a7d3 Fix Rails/I18nLocaleAssignment cop (#24693) 2023-04-30 14:07:03 +02:00
af824db398 Fix Rails/InverseOf cop (#24732) 2023-04-30 14:06:53 +02:00
2e43461100 Fix Rails/Output cop (#24687) 2023-04-30 06:48:16 +02:00
5a2aa06a51 Fix Rails/Present cop (#24688) 2023-04-30 06:47:50 +02:00
bdc74086e6 Fix Rails/ContentTag cop (#24691) 2023-04-30 06:47:15 +02:00
6e226f5a32 Fix Rails/ActionOrder cop (#24692) 2023-04-30 06:46:39 +02:00
60ac9e8634 Fix Rails/SquishedSQLHeredocs cop (#24694) 2023-04-30 06:43:50 +02:00
8dcfb6e0ea Fix Rails/HttpPositionalArguments cop (#24699) 2023-04-30 06:43:28 +02:00
4cfe52635c Add pending spec for User.those_who_can (#24724) 2023-04-29 22:03:36 +02:00
12b935fadf Merge branch 'main' into glitch-soc/merge-upstream
Conflicts:
- `.github/dependabot.yml`:
  Updated upstream, removed in glitch-soc to disable noise.
  Kept removed.
- `CODE_OF_CONDUCT.md`:
  Upstream updated to a new version of the covenant, but I have not read it
  yet, so kept unchanged.
- `Gemfile.lock`:
  Not a real conflict, one upstream dependency updated textually too close to
  the glitch-soc only `hcaptcha` dependency.
  Applied upstream changes.
- `app/controllers/admin/base_controller.rb`:
  Minor conflict due to glitch-soc's theming system.
  Applied upstream changes.
- `app/controllers/application_controller.rb`:
  Minor conflict due to glitch-soc's theming system.
  Applied upstream changes.
- `app/controllers/disputes/base_controller.rb`:
  Minor conflict due to glitch-soc's theming system.
  Applied upstream changes.
- `app/controllers/relationships_controller.rb`:
  Minor conflict due to glitch-soc's theming system.
  Applied upstream changes.
- `app/controllers/statuses_cleanup_controller.rb`:
  Minor conflict due to glitch-soc's theming system.
  Applied upstream changes.
- `app/helpers/application_helper.rb`:
  Minor conflict due to glitch-soc's theming system.
  Applied upstream changes.
- `app/javascript/mastodon/features/compose/components/compose_form.jsx`:
  Upstream added a highlight animation for onboarding, while we changed the
  max character limit.
  Applied our local changes on top of upstream's new version.
- `app/views/layouts/application.html.haml`:
  Minor conflict due to glitch-soc's theming system.
  Applied upstream changes.
- `stylelint.config.js`:
  Upstream added ignore paths, glitch-soc had extra ignore paths.
  Added the same paths as upstream.
2023-04-29 10:44:56 +02:00
49fad26eca Drop EOL Ruby 2.7 (#24237) 2023-04-27 01:46:18 +02:00
5841f1af8c Autofix Rubocop RSpec/MatchArray (#24675) 2023-04-26 21:29:36 +02:00
a3393d0d07 Autofix Rubocop RSpec/MatchArray (#24050) 2023-04-26 20:21:54 +02:00
90beba57d8 Autofix Rubocop Rails/ResponseParsedBody (#24051) 2023-04-26 17:25:07 +02:00
0a5f0a8b20 Remove instance variables from helper usage (#24203) 2023-04-23 22:35:54 +02:00
4687967176 Autofix Rubocop Style/NumericLiterals (#24468) 2023-04-23 22:30:07 +02:00
e98c86050a Refactor Cache-Control and Vary definitions (#24347) 2023-04-19 16:07:29 +02:00
ff168ef202 Fix most rubocop issues (#2165)
* Run rubocop --autocorrect on app/, config/ and lib/, also manually fix some remaining style issues

* Run rubocop --autocorrect-all on db/

* Run rubocop --autocorrect-all on `spec/` and fix remaining issues
2023-04-09 11:25:30 +02:00
cb2ce842b0 Autofix Rubocop Rails/IgnoredColumnsAssignment (#23761) 2023-03-31 15:07:22 +02:00
500d6f93be Autofix Rubocop Style/IdenticalConditionalBranches (#24322) 2023-03-31 09:33:52 +02:00
83fc97285b Enable Rubocop Metrics/BlockLength with Excludes (#24260) 2023-03-31 09:33:25 +02:00
a9b5598c97 Change user settings to be stored in a more optimal way (#23630)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-03-30 14:44:00 +02:00
503022d6f9 Exclude files for Rubocop Metrics/ClassLength (#24213) 2023-03-23 23:19:41 +01:00
7bef11630d Remove references to non-existent actions (#24183) 2023-03-20 20:03:44 +01:00
94cbd808b5 Webhooks for local status.create, status.update, account.update (#24133) 2023-03-19 07:47:54 +01:00
b22b4bac03 Include config/ and update all rubcop deps (#23963) 2023-03-17 10:13:28 +01:00
681dcd3fa3 Ignore additional Style/OptionalBooleanParameter (#24138) 2023-03-16 23:07:25 +01:00
edc7ca5920 Roll back unintentionally activated rubocop rules (#24132)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Nick Schonning <nschonni@gmail.com>
2023-03-16 22:24:01 +01:00
bd047acc35 Replace Status#translatable? with language matrix in separate endpoint (#24037) 2023-03-16 11:07:24 +01:00