Add support for apply-to-idea-project formating command
See original GitHub issueI 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:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.0Thanks for implementing this 👍