Commit Graph

18 Commits

Author SHA1 Message Date
Davide Farella 286e19ea51 Bump Detekt and rules [0.16.0] -> [0.17.1] 2021-08-06 09:55:18 +00:00
Davide Farella 4e73f8c58f Bump Detekt and rules [0.15.0] -> [0.16.0] 2021-08-06 09:55:18 +00:00
Davide Farella 4b6d0a544c Bump Detekt and rules [0.14.0] -> [0.15.0] 2021-08-06 09:55:18 +00:00
Davide Farella 12b1bf6efe Detekt ignore MagicNumber for .kts files 2021-04-30 08:11:47 +00:00
Tomasz Giszczak 7f2b8d303c Decreased detekt max issues count to 4400. 2021-04-09 14:23:08 +00:00
Davide Farella c84b9ce0ff Exclude tests from LargeClass and LongMethod for Detekt 2021-03-23 15:06:36 +00:00
Tomasz Giszczak 494a537912 Decreased detekt max issues count. 2021-03-17 09:51:05 +00:00
Davide Farella 33a8b7ee35 Update Detekt rule-set [Detekt 1.14.2]
CP-1104
2020-11-25 15:12:15 +00:00
Davide Farella e28c54a77d Detekt: added `**/gradle/**` to excludes excludes
CP-964
2020-10-21 18:23:53 +02:00
Neil Marietta 80203bd53a Decreased Detekt max issues. 2020-10-09 09:54:41 +02:00
Tomasz Giszczak 373ed970ae Fix indentation in the detekt file rule SwallowedException. 2020-09-28 10:09:48 +02:00
Kamila Wojciechowska 0964e214c3 Enable exception related rules
The rules enabled: SwallowedException, RethrowCaughtException, ThrowingExceptionFromFinally,ThrowingExceptionInMain, ThrowingNewInstanceOfSameException
2020-09-25 10:53:25 +00:00
Davide Farella 7dcbdcb9c8 Fix 'forbiddenPatterns' for 'ForbiddenImport' Detekt rule 2020-08-27 10:28:28 +02:00
Davide Farella 93f10519ed Do not fail with if Detekt rule-set contains rules for newer version
When we update our Detekt rule-set, most likely the clients wont be up to date with the same Detekt version, so the build would fail. Setting `validation: false` will avoid that

CP-636
2020-08-24 09:20:51 +02:00
Davide Farella 11ebceb028 Update Detekt rule-set to 1.11.2
CP-636
2020-08-21 20:02:29 +02:00
Davide Farella 5979321c96 Better Detekt exclusions for test
Excluded `FunctionNaming` rule, since instrumented tests should use the underscore, which should not be used in other places across the code base

Changed `**/androidTest/**` exclusion to be `**/**Test/**` since we can have different subsets of test, like on Mail, where we now have `uiTest`
2020-08-07 16:51:32 +02:00
Davide Farella 2ac325c9bf Forbid old Proton Libs imports
In order to facilitate migration for clients that were using it, like Mail
Affected: Detekt rule-set
2020-07-03 10:48:58 +02:00
Algirdas Pundzius 265a5a0205 Initial commit
Co-authored-by: Davide Giuseppe Farella <4face91@protonmail.com>
Co-authored-by: Dino Kadrikj <kadrikj@protonmail.ch>
Co-authored-by: Mateusz Markowicz <poniekad@protonmail.com>
2020-07-01 13:58:49 +03:00