question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for apply-to-idea-project formating command

See original GitHub issue

I added a plugin to the project. Now every developer in the team must manually run this ktlint command ./ktlint --apply-to-idea-project --android

This is fine, but I wonder can it be achieved without separatley downloading (and keeping) ktlint binaries? I would be nice to provide ability to configure IDE out of the box.

hmm Maybe plugin could somehow link ./ktlint command to project root or add new gradle task that would allow passing parameters to ktlint script ./gradlew ktlint 🤔

(we could, of course, add new grade task but I feel this would not be flexible enough if new ktlint parameters will be added in future)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Tapchicomacommented, Jun 7, 2018

Reopening this as implementation is slightly wrong: https://github.com/shyiko/ktlint/issues/178

I am thinking of introducing second task ktlintApplyToIdeaGlobally and adding the current one if ktlint version is >=0.22.0

0reactions
igorwojdacommented, Jun 7, 2018

Thanks for implementing this 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply styles
Select text and apply a style such as a title, header, or paragraph using the Styles ... If you select specific text, only...
Read more >
Video: Add some formatting - Microsoft Support
Training: Formatting is all about adding visual touches to a document to make it easier to read and look more appealing.
Read more >
Add and format text
Learn how to add and format text, and copy that formatting to other areas of your documents.
Read more >
Command line options of many code formatters
OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code. If no arguments are specified, it formats the code from standard input.
Read more >
README.md
(+ we respect you .editorconfig and support additional ruleset|s). ... On macOS (or Linux) you can also use brew - brew install shyiko/ktlint/ktlint...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found