Commit graph

276 commits

Author SHA1 Message Date
Matt Jankowski efd16f3c2c
Clean up of RSpec/LetSetup within spec/services/activitypub () 2023-12-21 11:20:12 +00:00
Matt Jankowski c99f88e1a8
Clean up of RSpec/LetSetup within spec/lib () 2023-12-21 11:19:56 +00:00
Matt Jankowski cd64a5b2ec
Clean up of RSpec/LetSetup within api/ () 2023-12-21 10:10:18 +00:00
Matt Jankowski f32d672d2f
Clean up of RSpec/LetSetup within spec/controllers () 2023-12-21 09:28:41 +00:00
Matt Jankowski c753b1ad35
Clean up of RSpec/LetSetup within spec/models () 2023-12-21 09:18:38 +00:00
Matt Jankowski 0b42cf2979
Opt out of Rails/NegateInclude cop () 2023-12-18 12:21:45 +00:00
Matt Jankowski 8e9e7d57d8
Opt out of Rails/UnusedIgnoredColumns cop () 2023-12-18 09:58:53 +00:00
Matt Jankowski 0e5b8fc46b
Fix Style/RedundantReturn cop () 2023-12-18 09:50:51 +00:00
Matt Jankowski 89d468ada7
Fix Style/StderrPuts cop () 2023-12-18 09:36:08 +00:00
Matt Jankowski e56fb9e489
Fix Style/SymbolProc cop () 2023-12-18 09:32:02 +00:00
Matt Jankowski b1dec09d20
Fix Style/InverseMethods cop () 2023-12-15 15:52:00 +00:00
Matt Jankowski 3e336fe706
Opt out of Rails/SkipsModelValidations cop in db/migrate () 2023-12-15 14:38:12 +00:00
Matt Jankowski e5717c9bc6
Fix Style/Lambda cop () 2023-12-15 14:34:24 +00:00
Matt Jankowski e17faedffb
Move default meta options from InitialStateSerializer to private method (AbcSize reduction) () 2023-12-14 14:04:55 +00:00
Matt Jankowski f70f39dd04
Add explicit dependent: nil to associations () 2023-12-01 15:52:47 +00:00
Matt Jankowski 440b80b2e7
Model concerns organization into module namespaces () 2023-12-01 11:00:41 +00:00
Matt Jankowski 35deaaf90b
Reduce AbcSize complexity in InitialStateSerializer () 2023-11-30 15:41:26 +00:00
Matt Jankowski a1636fce7f
Move lib/devise/* to lib/devise/strategies/* () 2023-11-29 10:10:21 +00:00
Matt Jankowski 31bef99b9e
Move lib/mastodon/premailer_webpack_strategy to lib/ () 2023-11-29 10:08:55 +00:00
Matt Jankowski b2c5b20ef2
Fix RSpec/AnyInstance cop () 2023-11-14 14:52:59 +00:00
Matt Jankowski 63c9102f8a
Fix RSpec/MessageChain cop () 2023-11-09 12:57:23 +00:00
Matt Jankowski c9204b792c
Fix Rails/I18nLocaleTexts cop () 2023-11-09 09:46:39 +00:00
Matt Jankowski c875dfc90b
Fix Lint/UnusedBlockArgument cop () 2023-11-09 09:43:26 +00:00
Matt Jankowski 69d00e2721
Fix RSpec/InstanceVariable cop () 2023-11-08 15:42:30 +00:00
Matt Jankowski ce91d14d48
Fix Style/WordArray cop () 2023-11-08 13:03:44 +00:00
Matt Jankowski 33cc3ae8fa
Fix Style/StabbyLambdaParentheses cop () 2023-11-08 12:01:18 +00:00
Matt Jankowski dc0bf87090
Remove unused before block from settings/branding spec () 2023-11-07 15:19:17 +00:00
Matt Jankowski 45770c9306
Fix Performance/MapMethodChain cop () 2023-11-07 13:01:09 +00:00
Matt Jankowski bbad5b6456
Remove false positive cop detection () 2023-11-07 10:44:15 +00:00
Matt Jankowski 49e2772064
Fix RSpec/MessageSpies cop () 2023-11-07 09:46:28 +00:00
Matt Jankowski 2d39268bc5
Fix Lint/OrAssignmentToConstant cop () 2023-11-07 09:11:50 +00:00
Matt Jankowski cfa14ec6d1
Fix Lint/EmptyBlock cop () 2023-11-07 09:11:04 +00:00
Matt Jankowski b06284c572
Fix RSpec/HookArgument cop () 2023-11-07 09:10:36 +00:00
Matt Jankowski beee9ea991
Fix RSpec/LetSetup cop in spec/controllers/admin area () 2023-10-31 08:22:19 +00:00
Matt Jankowski 4fdc548fa5
Regenerate lint todos () 2023-10-24 08:08:31 +00:00
Daniel M Brasil 26d2a2a0cc
Migrate to request specs in /api/v1/media () 2023-10-23 15:46:21 +00:00
Matt Jankowski bcd0171e5e
Fix Lint/UselessAssignment cop () 2023-10-19 16:55:06 +02:00
Matt Jankowski a1b27d8b61
Fix Naming/VariableNumber cop () 2023-10-18 14:26:22 +02:00
Matt Jankowski 63a2a4b074
Fix Performance/DeletePrefix cop () 2023-10-18 10:32:09 +02:00
Matt Jankowski 08a376cbcb
Fix Style/CombinableLoops cop () 2023-10-16 16:36:28 +02:00
Daniel M Brasil d9caa6ed24
Migrate to request specs in /api/v1/admin/accounts () 2023-10-16 15:49:12 +02:00
Daniel M Brasil bc6cd27d9e
Migrate to request specs in /api/v1/followed_tags () 2023-10-13 14:43:50 +02:00
Matt Jankowski c676bc91e9
Dont match mention in url query string ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-10-03 17:01:45 +02:00
Nick Schonning 85db392464
Autofix Rubocop cops for config/ () 2023-10-03 15:24:12 +02:00
Matt Jankowski 56c0babc0b
Fix rubocop Layout/ArgumentAlignment cop () 2023-09-28 15:48:47 +02:00
Claire a04ae16201
Fix CSP when using ONE_CLICK_SSO_LOGIN () 2023-09-13 19:54:04 +02:00
Nick Schonning b970ed6098
Update rubocop and rubocop-rspec () 2023-08-22 09:31:40 +02:00
CSDUMMI 120f5802c0
Add direct link to the Single-Sign On provider if there is only one sign up method available () 2023-08-03 16:43:15 +02:00
Emelia Smith e258b4cb64
Refactor: replace whitelist_mode mentions with limited_federation_mode () 2023-08-02 19:32:48 +02:00
Matt Jankowski 6f1fa1364f
Fix RSpec/EmptyExampleGroup cop () 2023-07-28 23:15:33 +02:00
Matt Jankowski ad81be6c8e
Update rubocop rules for linelength () 2023-07-28 23:11:45 +02:00
Matt Jankowski 30f5ec7303
Rubocop fix: Perfomance/UnfreezeString () 2023-07-28 23:11:05 +02:00
Daniel M Brasil 812a84ff5f
Migrate to request specs in /api/v2/filters () 2023-07-27 14:58:20 +02:00
Matt Jankowski b06763dc11
Remove the sr locale override .rb files () 2023-07-26 15:39:53 +02:00
Claire 144a406d33
Clean up unused application records () 2023-07-21 13:13:16 +02:00
Matt Jankowski 1cceb62afd
Fix Lint/Void cop () 2023-07-20 17:31:34 +02:00
Nick Schonning bf9c1a65fa
Update rubocop 1.54.2 () 2023-07-17 12:40:27 +02:00
fusagiko / takayamaki ee8c8dbc6f
remove some file paths from rubocop_tobo.yml () 2023-07-17 12:15:32 +02:00
Nick Schonning 1a6c2e450a
Update rubocop to v1.54.1 () 2023-07-13 11:11:55 +02:00
Matt Jankowski 6c5a2233a8
Fix RSpec/StubbedMock cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-07-12 10:20:10 +02:00
Matt Jankowski 2e1391fdd2
Fix Naming/MemoizedInstanceVariableName cop () 2023-07-12 10:08:51 +02:00
Matt Jankowski 5134fc65e2
Fix Naming/AccessorMethodName cop () 2023-07-12 10:03:19 +02:00
Matt Jankowski b8b2470cf8
Fix Style/SlicingWithRange cop () 2023-07-12 10:03:06 +02:00
Matt Jankowski 658742b3cd
Fix Lint/AmbiguousBlockAssociation cop () 2023-07-12 10:02:41 +02:00
Matt Jankowski b786911c55
Fix Lint/SendWithMixinArgument cop () 2023-07-12 10:02:32 +02:00
Matt Jankowski 74806deb2c
Fix RSpec/SubjectStub cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-07-12 10:02:19 +02:00
Matt Jankowski c75df62ccc
Fix RSpec/SubjectDeclaration cop () 2023-07-12 09:49:33 +02:00
Nick Schonning 1d557305d2
Enable Rubocop Style/FrozenStringLiteralComment () 2023-07-12 09:47:08 +02:00
Nick Schonning 9e8bc56d5a
Enable Rubocop Style/Semicolon with config () 2023-07-12 09:44:15 +02:00
Kurtis Rainbolt-Greene e4cfe4b3db
First pass at multi-database for read replica using Rails native adapter ()
Co-authored-by: emilweth <7402764+emilweth@users.noreply.github.com>
2023-07-08 19:45:36 +02:00
Matt Jankowski 05f9e39b32
Fix RSpec/VerifiedDoubles cop () 2023-06-22 14:55:22 +02:00
Daniel M Brasil 0a0a1f1495
Migrate to request specs in /api/v1/tags () 2023-06-19 08:51:40 +02:00
Matt Jankowski 4c5aa0e470
Update rubocop-rspec to version 2.22.0, fix RSpec/IndexedLet cop () 2023-06-14 16:44:37 +02:00
Matt Jankowski 31d5bc89d1
Speed improvement for AccountsStatusesCleanupScheduler spec () 2023-06-14 09:56:11 +02:00
Nick Schonning 72590e601a
Update Rubocop 1.52.1 () 2023-06-13 18:42:51 +02:00
Matt Jankowski 62c996b52d
Reduce RSpec/MultipleExpectations cop max to 8 () 2023-06-10 18:38:22 +02:00
Matt Jankowski b85c387c5c
Remove reference to deleted statsd config file () 2023-06-07 22:46:53 +02:00
Matt Jankowski 6c0e3f490a
Fix RSpec/MissingExampleGroupArgument cop () 2023-06-06 15:51:42 +02:00
Nick Schonning c66250abf1
Autofix Rubocop Regex Style rules ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-06-06 14:50:51 +02:00
Matt Jankowski c42591356d
Fix RSpec/DescribedClass cop () 2023-06-06 13:58:33 +02:00
Renaud Chaput b7d995cb00
Disable some metrics cops () 2023-05-31 23:33:10 +02:00
Matt Jankowski 1baf40077b
Fix FormatStringToken cop in CLI () 2023-05-30 16:21:53 +02:00
Matt Jankowski 80c7de9984
Fix Rails/WhereExists cop in CLI () 2023-05-30 16:09:57 +02:00
Matt Jankowski 0f2c16ac4b
Fix RSpec/NoExpectationExample cop () 2023-05-26 09:41:12 +02:00
Matt Jankowski d2e5430d4a
Fix RSpec/ExpectChange cop () 2023-05-24 11:23:40 +02:00
Matt Jankowski b896b16cb3
Fix RSpec/PredicateMatcher cop () 2023-05-23 16:49:11 +02:00
Matt Jankowski 778e4a7bf7
Fix RSpec/ExpectInHook cop () 2023-05-23 16:40:21 +02:00
Matt Jankowski b6b4ea4ca5
Move the mastodon/*_cli files to mastodon/cli/* () 2023-05-23 16:08:26 +02:00
Matt Jankowski 541f64b2bb
Fix Rails/Exit cop () 2023-05-23 13:26:10 +02:00
Matt Jankowski e387175fc9
Fix RSpec/RepeatedExample cop () 2023-05-23 10:49:23 +02:00
Matt Jankowski 9f5deb310b
Fix Performance/MapCompact cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-05-23 10:49:12 +02:00
Matt Jankowski 0664704cd9
Fix Performance/StartWith cop () 2023-05-23 10:16:50 +02:00
Matt Jankowski 325d5f0183
Regenerate rubocop-todo () 2023-05-22 14:49:10 +02:00
Nick Schonning c0b9664a31
Autofix Rubocop spacing in config () 2023-05-22 13:17:56 +02:00
Nick Schonning cee4369cf5
Autofix Rubocop Lint/AmbiguousOperatorPrecedence () 2023-05-16 10:51:59 +02:00
Matt Jankowski 2c2d924942
Fix RSpec/RepeatedExampleGroupDescription cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-05-12 12:25:32 +02:00
Matt Jankowski bf3ebeb42f
Fix RSpec/SharedContext cop () 2023-05-12 09:25:43 +02:00
Matt Jankowski a610a02d4f
Fix RSpec/ScatteredSetup cop () 2023-05-11 10:32:09 +02:00
Matt Jankowski 0b249ebdb0
Extract StatusSafeReblogInsert concern from Status () 2023-05-04 14:06:20 +02:00
Nick Schonning 569b39256b
Bump rubocop-rails 2.19.1 with update .rubocop_todo.yml () 2023-05-04 11:56:24 +02:00