Skip to content

Commit

Permalink
ktlint -F (#766)
Browse files Browse the repository at this point in the history
* ktlint again

* re-add ktlint action

* address warnings

* editor config file
  • Loading branch information
ened authored Apr 7, 2024
1 parent be7ba94 commit e6f04d3
Show file tree
Hide file tree
Showing 28 changed files with 918 additions and 621 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*.{kt,kts}]
max_line_length=210
ktlint_standard_property-naming=disabled
17 changes: 17 additions & 0 deletions .github/workflows/ktlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: ktlint
on: [pull_request]
jobs:
ktlint:
name: Check Code Quality
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@master
with:
fetch-depth: 1
- name: ktlint
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Change reporter
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.signify.hue.reactivebleexample


import androidx.annotation.NonNull
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant


class MainActivity: FlutterActivity(){
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine)
}
class MainActivity : FlutterActivity() {
override fun configureFlutterEngine(
@NonNull flutterEngine: FlutterEngine,
) {
GeneratedPluginRegistrant.registerWith(flutterEngine)
}
}
Loading

0 comments on commit e6f04d3

Please sign in to comment.