Skip to content
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

Automatically run detekt-generator on detekt-rules build task #590

Merged
merged 2 commits into from
Dec 6, 2017

Conversation

Mauin
Copy link
Collaborator

@Mauin Mauin commented Dec 3, 2017

The Jar generated from the detekt-generator module now has an --input and --output argument to define both directories.

Adds generateDocumentation task in the detekt-generator module. This builds and executes the generator jar to generate the latest documentation.

I also added a rule that every time the detekt-rules module is built the generateDocumentation task will be executed to update the documentation.

violations += "Output file must be a directory."
}

if (!Files.exists(inputPath) || outputPath.isFile()) {
Copy link
Member

Choose a reason for hiding this comment

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

This must be inputPath.isFile() ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch!

@arturbosch
Copy link
Member

Looks good!

@arturbosch arturbosch merged commit e8299cf into detekt:master Dec 6, 2017
@arturbosch arturbosch added this to the RC6 milestone Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants