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

Add Linter #13

Closed
wants to merge 11 commits into from
Closed

Add Linter #13

wants to merge 11 commits into from

Conversation

InTheCloudDan
Copy link
Contributor

  • add ktlint
  • reformat existing files

I locally installed https://plugins.jetbrains.com/plugin/7642-save-actions and set it up to format on save. I'm not sure if it's automatically picking up the tasks from this PR change or not, but it is automatically reformatting on save if it's not correct.

reformat existing files

add gradle commit check
@InTheCloudDan InTheCloudDan requested a review from a team February 22, 2022 14:39
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #142420: [intellij] add kt linter.

@InTheCloudDan InTheCloudDan changed the title Add Linter [WIP] Add Linter Feb 22, 2022
@@ -11,6 +11,7 @@ import com.launchdarkly.api.ApiException
import com.launchdarkly.api.model.FeatureFlag
import com.launchdarkly.api.model.FeatureFlags
import com.launchdarkly.intellij.coderefs.FlagAliases
/* ktlint-disable no-unused-imports */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added an upstream comment on an open issue: pinterest/ktlint#1277 (comment)

Without this disable line the import on line 15 will be removed.

@InTheCloudDan InTheCloudDan changed the title [WIP] Add Linter Add Linter Feb 22, 2022
Comment on lines 19 to 20
# Trigger the workflow on any pull request
pull_request:
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if i have indentation correct, but you may need to add this

Suggested change
# Trigger the workflow on any pull request
pull_request:
# Trigger the workflow on any pull request
pull_request:
types: [assigned, opened, synchronize, reopened]

@InTheCloudDan InTheCloudDan reopened this Feb 22, 2022
@InTheCloudDan InTheCloudDan mentioned this pull request Feb 22, 2022
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