Skip to content

Enable more rules in failfast #1935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 15, 2019
Merged

Enable more rules in failfast #1935

merged 3 commits into from
Oct 15, 2019

Conversation

schalkms
Copy link
Member

This enables more rules when running the detekt task on detekt itself.
This PR fixes warnings that are reported by the newly activated rules.
Related issue #1911

This enables more rules when running the detekt task on detekt itself.
This PR fixes warnings that are reported by the newly activated rules.
Related issue #1911
@schalkms
Copy link
Member Author

I didn't activate the DataClassShouldBeImmutable rule, because it's often used in detekt's codebase.

@@ -6,6 +6,7 @@ import org.gradle.api.tasks.OutputDirectory
import org.gradle.api.tasks.PathSensitive
import org.gradle.api.tasks.PathSensitivity

@Suppress("UnsafeCallOnNullableType")
open class IdeaExtension {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require(path != null)
println(path!!) // Kotlin compiler can't infer the null check in require before

@arturbosch arturbosch added this to the 1.2.0 milestone Sep 26, 2019
@schalkms
Copy link
Member Author

Blocked by #1952

arturbosch pushed a commit that referenced this pull request Oct 15, 2019
@arturbosch
Copy link
Member

I've merged #1952 . Feel free to rebase this when you have time 👍

@arturbosch arturbosch merged commit a367813 into detekt:master Oct 15, 2019
@schalkms schalkms deleted the failfast-#1911 branch November 8, 2019 18:12
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Enable more rules in failfast

This enables more rules when running the detekt task on detekt itself.
This PR fixes warnings that are reported by the newly activated rules.
Related issue detekt#1911

* Add ArrayPrimitive rule to failfast

* Fix issues reported in detekt task
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
smyachenkov pushed a commit to smyachenkov/detekt that referenced this pull request Dec 9, 2019
* Enable more rules in failfast

This enables more rules when running the detekt task on detekt itself.
This PR fixes warnings that are reported by the newly activated rules.
Related issue detekt#1911

* Add ArrayPrimitive rule to failfast

* Fix issues reported in detekt task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants