Comments (10)
Detekt does support auto formatting based on ktlint. See: https://github.com/ReluctApp/Reluct/blob/c9de419e966abbf7e686ac7752dbe46178da2fc5/build.gradle.kts#L80
from dodoformastodon.
We could also use Twitter's 😉 Compose Rules. It's really nice because it also catches common Compose errors / gotchas.
from dodoformastodon.
As part of this task, we could also add some git hooks to auto-format and catch rule violations before code is pushed to GH
from dodoformastodon.
It's worth mentioning the detekt formatting rules just wrap ktlint rules so you can use detekt to cover both rulesets without adding another plugin for ktlint.
from dodoformastodon.
Ktlint comes with an autoformatter which makes it easy to automatically fix the formatting failure, or even prevent it by adding it to a pre-commit hook.
This would save everyone a lot of time.
As far as I'm aware, Detekt doesn't have an autoformatter like that?
from dodoformastodon.
While you all write so much comments into this issue, you could probably have it added already 😂
Fill a PR and let's start coding in style
from dodoformastodon.
I made good experience with the Kotlinter Gradle plugin. It also offers a Git hook.
from dodoformastodon.
Maybe spotless with ktlint is an option.
from dodoformastodon.
@racka98 plz make PR to upstream main. Thanks for taking the initiative and throwing something together. We can look over the setup you did in the PR and go from there.
from dodoformastodon.
@crocsandcoffee see #37
from dodoformastodon.
Related Issues (20)
- [FEAT]: Add logger to Network client HOT 1
- [FEAT]: Profile Screen for Dodo
- [FEAT]: Inject Coroutine context into KtorApi client HOT 1
- [FEAT]: Settings and Logout
- [FEAT]: change feedtype to enum HOT 1
- [FEAT]: Create Expect/Actual for Kamel and Scrape.it
- [BUG]: Server selection is broken
- [FEAT]: Share string resources across the platforms
- [FEAT]: 'How to Build' documentation HOT 1
- What's the state of this project? HOT 1
- [FEAT]: Add iOS targets to existing modules HOT 3
- Use objects for namespaces
- [FEAT]: R8/proguard support on Android
- Typos in CONTRIBUTING guide HOT 1
- [FEAT]: Show Open Source Licenses in mobile apps
- [BUG]: ./gradlew installDebug, open the App, it will crashed. HOT 4
- [FEAT]: Make DodoAuthStorageImpl thread safe
- [FEAT]: Move maincontext to default/impl components
- [FEAT]: enhance extraction of oauth query params HOT 1
- [FEAT]: colocate data layer with features HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dodoformastodon.