AtomMaterialUI / color-highlighter

JetBrains plugin to preview colors directly from within the code.
MIT License
42 stars 25 forks source link

Update dependency io.gitlab.arturbosch.detekt:detekt-formatting to v1.18.1 #22

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.gitlab.arturbosch.detekt:detekt-formatting (source) 1.17.1 -> 1.18.1 age adoption passing confidence

Release Notes

detekt/detekt ### [`v1.18.1`](https://togithub.com/detekt/detekt/releases/v1.18.1) - 2021-08-30 This is a point release for Detekt `1.18.0` containing bugfixes for problems that got discovered just after the release. ##### Notable Changes - MultiRule should pass correctly the BindingContext - [#​4071](https://togithub.com/detekt/detekt/pull/4071) - Allow active, excludes and includes in the rule-set configuration - [#​4045](https://togithub.com/detekt/detekt/pull/4045) - Remove Error from ThrowingExceptionsWithoutMessageOrCause because is a common name - [#​4046](https://togithub.com/detekt/detekt/pull/4046) - Fix issue IDs for ReferentialEquality and DoubleMutability - [#​4040](https://togithub.com/detekt/detekt/pull/4040) See all issues at: [1.18.1](https://togithub.com/detekt/detekt/milestone/84) ### [`v1.18.0`](https://togithub.com/detekt/detekt/releases/v1.18.0) #### 1.18.0 - 2021-08-12 We're more than excited to introduce you a next stable release of Detekt: `1.18.0` 🎉 This release is coming with a lot of changes, new rules, evolution in the API and stability improvements. We want to take the opportunity to thank our contributors for testing, bug reporting and helping us release this new version of Detekt. ##### Notable Changes - We've added two new rules: `AvoidReferentialEquality` and `BooleanPropertyNaming` (see [#​3924](https://togithub.com/detekt/detekt/pull/3924) and [#​3795](https://togithub.com/detekt/detekt/pull/3795)) - This version of Detekt ships with Kotlin `1.5.21`, and we're compiling with `apiVersion` set to `1.4` - [#​3956](https://togithub.com/detekt/detekt/pull/3956) and [#​3852](https://togithub.com/detekt/detekt/pull/3852) - The minimum version of Gradle to use Detekt Gradle Plugin is now `6.1` - [#​3830](https://togithub.com/detekt/detekt/pull/3830) - This version of Detekt has been tested against Java 16 - [#​3698](https://togithub.com/detekt/detekt/pull/3698) - We fixed a long-standing bug related to parallel execution ([#​3248](https://togithub.com/detekt/detekt/issues/3248)) - [#​3799](https://togithub.com/detekt/detekt/pull/3799) and [#​3822](https://togithub.com/detekt/detekt/pull/3822) - We now use multi-line format for list options in the default detekt config file - [#​3827](https://togithub.com/detekt/detekt/pull/3827) - The rule `VarCouldBeVal` has been updated and now works only with type resolution to provide more precise findings - [#​3880](https://togithub.com/detekt/detekt/pull/3880) - We removed all the references to `Extensions.getRootArea` that is now deprecated from our codebase. This was affecting users with sporadic crashes. - [#​3848](https://togithub.com/detekt/detekt/pull/3848) - For *detekt* rule authors: We created a Github Template that you can use to bootstrap your custom rule project: [detekt-custom-rule-template](https://togithub.com/detekt/detekt-custom-rule-template). You can use JitPack to host it and share your rule easily with other members of the community. - For *detekt* rule authors: We finished the rework to use the annotations instead of kdoc tags in rules. Specifically configurations must be configured using `@Configuration` while auto-correction capability should be specified with the `@AutoCorrectable` annotation [#​3820](https://togithub.com/detekt/detekt/pull/3820). ##### Migration - We renamed the `input` property inside the `detekt{}` extension of the Gradle plugin to `source`. The `input` property has been deprecated, and we invite you to migrate to the new property (see [#​3951](https://togithub.com/detekt/detekt/pull/3951)) // BEFORE detekt { input = files(...) } // AFTER detekt { source = files(...) } - For all rule authors: When accessing a config value within a rule, using `valueOrDefault` and `valueOrDefaultCommaSeparated` is no longer recommended. While both will remain part of the public api, they should be replaced by one of the config delegates (see [#​3891](https://togithub.com/detekt/detekt/pull/3891)). The key that is used to lookup the configured value is derived from the property name. ```kotlin /* simple property */ // BEFORE val ignoreDataClasses = valueOrDefault("ignoreDataClasses", true) // AFTER val ignoreDataClasses: Boolean by config(true) /* transformed simple property */ // BEFORE val ignoredName = valueOrDefault("ignoredName", "").trim() // AFTER val ignoredName: String by config("", String::trim) /* transformed list property */ // BEFORE val ignoreAnnotated = valueOrDefaultCommaSeparated("ignoreAnnotated", listOf("Inject", "Value")) .map(String::trim) // AFTER val ignoreAnnotated: List by config(listOf("Inject", "Value")) { list -> list.map(String::trim) } ``` - For all rule authors: The types `ThresholdRule` and `LazyRegex` have been marked as deprecated and will be removed in a future release. Please migrate to config delegates. ```kotlin /* ThresholdRule */ // BEFORE class MyRule(config: Config, threshold: Int = 10) : ThresholdRule(config, threshold) { // ... } // AFTER class MyRule(config: Config) : Rule(config) { private val threshold: Int by config(10) // ... } /* LazyRegex */ // BEFORE private val allowedPattern: Regex by LazyRegex("allowedPatterns", "") // AFTER private val allowedPattern: Regex by config("", String::toRegex) ``` - For custom rule authors: This will be the last version of detekt where we publish the `detekt-bom` artifact. This change should not affect anyone. If it affects you, [please let us know](https://togithub.com/detekt/detekt/issues/3988). ##### Changelog - \[KMP] Fix resolution of Android test classpaths - [#​4026](https://togithub.com/detekt/detekt/pull/4026) - Sort config lists - [#​4014](https://togithub.com/detekt/detekt/pull/4014) - Multiplatform tasks should not depend on check - [#​4025](https://togithub.com/detekt/detekt/pull/4025) - mark configWithFallback as unstable - [#​4028](https://togithub.com/detekt/detekt/pull/4028) - UseDataClass: fix false positive on value classes - [#​4016](https://togithub.com/detekt/detekt/pull/4016) - ImplicitUnitReturnType: don't report when expression body is 'Unit' - [#​4011](https://togithub.com/detekt/detekt/pull/4011) - Fix false positive with UnusedPrivateMember on parameter of a protected function - [#​4007](https://togithub.com/detekt/detekt/pull/4007) - ClassNaming: Don't treat Kotlin syntax \` as part of class name - [#​3977](https://togithub.com/detekt/detekt/pull/3977) - IgnoredReturnValue: fix false negative when annotation is on the class - [#​3979](https://togithub.com/detekt/detekt/pull/3979) - NoNameShadowing: fix false positive with nested lambda has implicit parameter - [#​3991](https://togithub.com/detekt/detekt/pull/3991) - UnusedPrivateMember - added handling of overloaded array get operator - [#​3666](https://togithub.com/detekt/detekt/pull/3666) - Publish bundled/Shadow JAR artifact to Maven repos - [#​3986](https://togithub.com/detekt/detekt/pull/3986) - EmptyDefaultConstructor false positive with expect and actual classes - [#​3970](https://togithub.com/detekt/detekt/pull/3970) - FunctionNaming - Allow factory function names - fix [#​1639](https://togithub.com/detekt/detekt/issues/1639) - [#​3973](https://togithub.com/detekt/detekt/pull/3973) - EndOfSentenceFormat - Fix [#​3893](https://togithub.com/detekt/detekt/issues/3893) by only calling super.visit once - [#​3904](https://togithub.com/detekt/detekt/pull/3904) - UndocumentedPublicFunction: don't report when nested class is inside not public class [#​3962](https://togithub.com/detekt/detekt/pull/3962) - Fail with a meaningful error message for invalid boolean - [#​3931](https://togithub.com/detekt/detekt/pull/3931) - UndocumentedPublicProperty and UndocumentedPublicFunction should include objects - [#​3940](https://togithub.com/detekt/detekt/pull/3940) - Fix exclusion pattern for InvalidPackageDeclaration - [#​3907](https://togithub.com/detekt/detekt/pull/3907) - Allow else when {...} in MandatoryBracesIfStatements rule - [#​3905](https://togithub.com/detekt/detekt/pull/3905) - Remove unnecessary constant declaration - [#​3903](https://togithub.com/detekt/detekt/pull/3903) - Check bindingContext only once in MemberNameEqualsClassName - [#​3899](https://togithub.com/detekt/detekt/pull/3899) - LongMethod: add 'ignoreAnnotated' configuration option - [#​3892](https://togithub.com/detekt/detekt/pull/3892) - Fix Deprecation rule message - [#​3885](https://togithub.com/detekt/detekt/pull/3885) - Improve LongParameterList rule by supporting ignoring annotated parameters - [#​3879](https://togithub.com/detekt/detekt/pull/3879) - OptionalUnit: fix false positive when function initializer is Nothing type - [#​3876](https://togithub.com/detekt/detekt/pull/3876) - UnnecessaryParentheses: fix false positive for delegated expressions - [#​3858](https://togithub.com/detekt/detekt/pull/3858) - Fix UnnecessaryLet false positive in inner lambdas - [#​3841](https://togithub.com/detekt/detekt/pull/3841) - Fix false positive for UnusedPrivateMember - Backtick identifiers - [#​3828](https://togithub.com/detekt/detekt/pull/3828) - Properly apply test excludes for comments - [#​3815](https://togithub.com/detekt/detekt/pull/3815) - Fix generation issues around (deprecated) list properties - [#​3813](https://togithub.com/detekt/detekt/pull/3813) - Update the implementation of ClassOrdering to handle false negatives - [#​3810](https://togithub.com/detekt/detekt/pull/3810) - \[comments] Do not exclude tests globally - [#​3801](https://togithub.com/detekt/detekt/pull/3801) - UnnecessaryLet: report when implicit parameter isn't used - [#​3794](https://togithub.com/detekt/detekt/pull/3794) - NoNameShadowing: don't report when implicit 'it' parameter isn't used - [#​3793](https://togithub.com/detekt/detekt/pull/3793) - Fix ModifierOrder to support value class - [#​3719](https://togithub.com/detekt/detekt/pull/3719) - Remove inline value class to stay compatible with Kotlin 1.4 API - [#​3871](https://togithub.com/detekt/detekt/pull/3871) - \[FunctionNaming] Revert annotations that are ignored by default - [#​3948](https://togithub.com/detekt/detekt/pull/3948) - Android: add javac intermediates to classpath - \[[#​3867](https://togithub.com/detekt/detekt/issues/3867)]\([https://github.com/detekt/detekt/pull/3867](https://togithub.com/detekt/detekt/pull/3867)7) - Revert "Android: add javac intermediates to classpath ([#​3867](https://togithub.com/detekt/detekt/issues/3867))" - \[[#​3958](https://togithub.com/detekt/detekt/issues/3958)]\([https://github.com/detekt/detekt/pull/3958](https://togithub.com/detekt/detekt/pull/3958)8) - Use annotations to configure rules in detekt-rules-exceptions - [#​3798](https://togithub.com/detekt/detekt/pull/3798) - Use [@​Configuration](https://togithub.com/Configuration) in detekt-rules-style - [#​3774](https://togithub.com/detekt/detekt/pull/3774) - Use annotations to configure rules in custom-checks - [#​3773](https://togithub.com/detekt/detekt/pull/3773) - Use [@​Configuration](https://togithub.com/Configuration) for rules-errorprone - [#​3772](https://togithub.com/detekt/detekt/pull/3772) - Use annotation to configure rules in rules-empty - [#​3771](https://togithub.com/detekt/detekt/pull/3771) - Use annotation to configure rules in rules-documentation - [#​3770](https://togithub.com/detekt/detekt/pull/3770) - Use annotations to configure rules in rules-naming - [#​3769](https://togithub.com/detekt/detekt/pull/3769) - Use annotations to configure rules in rules-complexity - [#​3768](https://togithub.com/detekt/detekt/pull/3768) - Move formatting rules to [@​Configuration](https://togithub.com/Configuration) - [#​3847](https://togithub.com/detekt/detekt/pull/3847) ##### Dependency Updates - Bump Kotlin to 1.5.21 - [#​3956](https://togithub.com/detekt/detekt/pull/3956) - Revert "Bump Kotlin to v1.5.20" - [#​3941](https://togithub.com/detekt/detekt/pull/3941) - Bump Kotlin to v1.5.20 - [#​3921](https://togithub.com/detekt/detekt/pull/3921) - Kotlin 1.5.10 - [#​3826](https://togithub.com/detekt/detekt/pull/3826) - Update assertj to v3.20.2 - [#​3912](https://togithub.com/detekt/detekt/pull/3912) - Update snakeyaml to v1.29 - [#​3911](https://togithub.com/detekt/detekt/pull/3911) - Bump byte-buddy from 1.11.2 to 1.11.5 - [#​3886](https://togithub.com/detekt/detekt/pull/3886) - Bump byte-buddy from 1.11.1 to 1.11.2 - [#​3872](https://togithub.com/detekt/detekt/pull/3872) - Bump byte-buddy from 1.11.0 to 1.11.1 - [#​3861](https://togithub.com/detekt/detekt/pull/3861) - Update mockk to 1.12.0 - [#​3937](https://togithub.com/detekt/detekt/pull/3937) ##### Housekeeping & Refactorings - Enable UnnecessaryLet rule for detekt code base - [#​4024](https://togithub.com/detekt/detekt/pull/4024) - enable PreferToOverPairSyntax rule for detekt code base - [#​4023](https://togithub.com/detekt/detekt/pull/4023) - Add IllegalArgumentException and IllegalStateException to ThrowingExceptionsWithoutMessageOrCause - [#​4013](https://togithub.com/detekt/detekt/pull/4013) - enable more potential-bugs rules for detekt code base - [#​3997](https://togithub.com/detekt/detekt/pull/3997) - enable more exception rules for detekt code base - [#​3995](https://togithub.com/detekt/detekt/pull/3995) - Enable UseOrEmpty for detekt code base - [#​3999](https://togithub.com/detekt/detekt/pull/3999) - enable those rules from the style rule set that have not violation or obvious fixes - [#​3998](https://togithub.com/detekt/detekt/pull/3998) - Enable more rules from naming rule set for detekt code base - [#​3996](https://togithub.com/detekt/detekt/pull/3996) - Enable UseEmptyCounterpart for detekt code base - [#​4000](https://togithub.com/detekt/detekt/pull/4000) - enable coroutine rules for detekt code base - [#​3994](https://togithub.com/detekt/detekt/pull/3994) - Remove "plugin" suffix from version catalog aliases - [#​3987](https://togithub.com/detekt/detekt/pull/3987) - Fix ClassCastException in test on java 11 openjdk9 - [#​3984](https://togithub.com/detekt/detekt/pull/3984) - Activate IgnoredReturnValue on detekt code base - [#​3974](https://togithub.com/detekt/detekt/pull/3974) - Add missing test in FunctionNaming - [#​3976](https://togithub.com/detekt/detekt/pull/3976) - Fix trunk compilation - [#​3968](https://togithub.com/detekt/detekt/pull/3968) - Reformat internal detekt.yml using multi line lists - [#​3936](https://togithub.com/detekt/detekt/pull/3936) - Increase memory available to gradle integration test daemon - [#​3938](https://togithub.com/detekt/detekt/pull/3938) - Avoid empty lines when running detekt with type resolution - [#​3909](https://togithub.com/detekt/detekt/pull/3909) - Fix java.lang.ClassCastException is reading default yaml config - [#​3920](https://togithub.com/detekt/detekt/pull/3920) - Refactor + rename util function inside MandatoryBracesIfStatement rule - [#​3908](https://togithub.com/detekt/detekt/pull/3908) - Rename Tests to Spec - [#​3906](https://togithub.com/detekt/detekt/pull/3906) - verify that no rule is configured with kdoc tags - [#​3870](https://togithub.com/detekt/detekt/pull/3870) - Setup FOSSA - [#​3836](https://togithub.com/detekt/detekt/pull/3836) - jvmTarget can't be null - [#​3818](https://togithub.com/detekt/detekt/pull/3818) - Add test for ruleset provider configuration - [#​3814](https://togithub.com/detekt/detekt/pull/3814) - Merge JaCoCo coverage reports the "right" way - [#​3650](https://togithub.com/detekt/detekt/pull/3650) - Update outdated Gradle plugin documentation regarding source files - [#​3883](https://togithub.com/detekt/detekt/pull/3883) - Make documentation more precise about how rules are enabled - [#​3889](https://togithub.com/detekt/detekt/pull/3889) - Rename MapGetWithNotNullAsserSpec to follow test convention - [#​3878](https://togithub.com/detekt/detekt/pull/3878) - Remove custom assertions that check kdoc of rules - [#​3859](https://togithub.com/detekt/detekt/pull/3859) - Avoid overlapping outputs - [#​3790](https://togithub.com/detekt/detekt/pull/3790) - Revert "Avoid overlapping outputs" - [#​3943](https://togithub.com/detekt/detekt/pull/3943) See all issues at: [1.18.0](https://togithub.com/detekt/detekt/milestone/82)

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.