No issue: move relevant :mozilla-detekt-rules to perf/ pkg.
This commit is contained in:
parent
346f85868e
commit
c647679e4d
|
@ -55,7 +55,6 @@
|
|||
*Application.kt @mozilla-mobile/Performance
|
||||
*StrictMode*kt @mozilla-mobile/Performance
|
||||
*ConstraintLayoutPerfDetector* @mozilla-mobile/Performance
|
||||
*MozillaRunBlockingCheck.kt @mozilla-mobile/Performance
|
||||
|
||||
# We want to be aware of new features behind flags as well as features
|
||||
# about to be enabled.
|
||||
|
|
|
@ -7,6 +7,9 @@ package org.mozilla.fenix.detektrules
|
|||
import io.gitlab.arturbosch.detekt.api.Config
|
||||
import io.gitlab.arturbosch.detekt.api.RuleSet
|
||||
import io.gitlab.arturbosch.detekt.api.RuleSetProvider
|
||||
import org.mozilla.fenix.detektrules.perf.MozillaBannedPropertyAccess
|
||||
import org.mozilla.fenix.detektrules.perf.MozillaStrictModeSuppression
|
||||
import org.mozilla.fenix.detektrules.perf.MozillaRunBlockingCheck
|
||||
import org.mozilla.fenix.detektrules.perf.MozillaUseLazyMonitored
|
||||
|
||||
class CustomRulesetProvider : RuleSetProvider {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.detektrules
|
||||
package org.mozilla.fenix.detektrules.perf
|
||||
|
||||
import io.gitlab.arturbosch.detekt.api.CodeSmell
|
||||
import io.gitlab.arturbosch.detekt.api.Config
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.detektrules
|
||||
package org.mozilla.fenix.detektrules.perf
|
||||
|
||||
import io.gitlab.arturbosch.detekt.api.*
|
||||
import org.jetbrains.kotlin.psi.*
|
||||
|
@ -18,8 +18,6 @@ private const val VIOLATION_MSG = "Please use `org.mozilla.fenix.perf.runBlockin
|
|||
* A check to prevent us from working around mechanisms we implemented in
|
||||
* @see org.mozilla.fenix.perf.RunBlockingCounter.runBlockingIncrement to count how many runBlocking
|
||||
* are used.
|
||||
*
|
||||
* IF YOU UPDATE THIS FILE NAME, UPDATE CODE OWNERS.
|
||||
*/
|
||||
class MozillaRunBlockingCheck(config: Config) : Rule(config) {
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.detektrules
|
||||
package org.mozilla.fenix.detektrules.perf
|
||||
|
||||
import io.gitlab.arturbosch.detekt.api.CodeSmell
|
||||
import io.gitlab.arturbosch.detekt.api.Config
|
||||
|
@ -19,8 +19,6 @@ private const val VIOLATION_MSG = "Please use `components.strictMode.resetAfter`
|
|||
|
||||
/**
|
||||
* A check to prevent us from working around mechanisms we implemented to prevent suppressing StrictMode.
|
||||
*
|
||||
* IF YOU UPDATE THIS FILE NAME, UPDATE CODE OWNERS.
|
||||
*/
|
||||
class MozillaStrictModeSuppression(config: Config) : Rule(config) {
|
||||
override val issue = Issue(
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
@file:Suppress("Deprecation")
|
||||
|
||||
package org.mozilla.fenix.detektrules
|
||||
package org.mozilla.fenix.detektrules.perf
|
||||
|
||||
import io.gitlab.arturbosch.detekt.api.Config
|
||||
import io.gitlab.arturbosch.detekt.api.YamlConfig
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.detektrules
|
||||
package org.mozilla.fenix.detektrules.perf
|
||||
|
||||
import io.gitlab.arturbosch.detekt.api.Config
|
||||
import io.gitlab.arturbosch.detekt.test.lint
|
Loading…
Reference in New Issue