Skip to content

Commit

Permalink
Merge pull request #20 from DevKor-github/19-setup-local-commit-lint-…
Browse files Browse the repository at this point in the history
…with-husky

chore: add husky and commitlint configuration files
  • Loading branch information
SeoHyeonSim authored Oct 31, 2024
2 parents 11b5383 + 050550f commit 4da1f85
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

dart run commitlint_cli --edit "$1"
1 change: 1 addition & 0 deletions commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:commitlint_cli/commitlint.yaml
Empty file.
1 change: 1 addition & 0 deletions lib/domain/repositories/user_repository.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

40 changes: 40 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.11.3"
ansi:
dependency: transitive
description:
name: ansi
sha256: "070af96189f9da6f996cee46049682bdcd1d191b483e13f9d2a2600729d8b2a1"
url: "https://pub.dev"
source: hosted
version: "0.4.2"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -118,6 +126,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "8.9.2"
change_case:
dependency: transitive
description:
name: change_case
sha256: f4e08feaa845e75e4f5ad2b0e15f24813d7ea6c27e7b78252f0c17f752cf1157
url: "https://pub.dev"
source: hosted
version: "1.1.0"
characters:
dependency: transitive
description:
Expand Down Expand Up @@ -174,6 +190,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.18.0"
commitlint_cli:
dependency: "direct dev"
description:
name: commitlint_cli
sha256: "78f6e1c2df3f4bdbf8c455d69311bd4c791de7e26d40df57cf33df068524cfe3"
url: "https://pub.dev"
source: hosted
version: "0.7.2"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -320,6 +344,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.2"
husky:
dependency: "direct dev"
description:
name: husky
sha256: ce4a92b311c03e67ff66b6e354c8d5b8ee7c663ccaedb954e93798658b439bb2
url: "https://pub.dev"
source: hosted
version: "0.1.7"
io:
dependency: transitive
description:
Expand Down Expand Up @@ -669,6 +701,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
verbose:
dependency: transitive
description:
name: verbose
sha256: "8e63580e35d58a15e4fca702fe91766430b1d28738c160c466e5cb10c373002a"
url: "https://pub.dev"
source: hosted
version: "0.1.1"
vm_service:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^4.0.0
husky: ^0.1.7
commitlint_cli: ^0.7.2

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
15 changes: 15 additions & 0 deletions test/domain/repositories/schedule_repository_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:test/test.dart';
import 'package:on_time_front/domain/repositories/schedule_repository.dart';

void main() {
group(
ScheduleRepository,
() {
test(
'',
() async {
},
);
},
);
}

0 comments on commit 4da1f85

Please sign in to comment.