Skip to content

Commit

Permalink
refactor: add module prefix (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanjenkner authored Oct 3, 2024
1 parent a10eb6e commit a34d0b9
Show file tree
Hide file tree
Showing 17 changed files with 44 additions and 21 deletions.
12 changes: 11 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ linters:
# - complexity
# - error
# - format
# - import
- import
# - metalinter
# - module
- performance
# - style
# - test
- unused
linters-settings:
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- github.com/go-ble/ble
- github.com/stefanjenkner/fdf-console-monitor
12 changes: 0 additions & 12 deletions .idea/runConfigurations/app_help.xml

This file was deleted.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/help.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations/test.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.61.0
hooks:
- id: golangci-lint
- id: golangci-lint-full
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.14.0
hooks:
Expand Down
5 changes: 3 additions & 2 deletions cmd/app/main.go → cmd/fdf-console-monitor/main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package main

import (
"fdf-console-monitor/internal/fitnessmachine"
"fdf-console-monitor/internal/serialmonitor"
"flag"
"log"
"os"
"os/signal"
"syscall"

"github.com/stefanjenkner/fdf-console-monitor/pkg/fitnessmachine"
"github.com/stefanjenkner/fdf-console-monitor/pkg/serialmonitor"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module fdf-console-monitor
module github.com/stefanjenkner/fdf-console-monitor

go 1.23.1

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"log"
"time"

"fdf-console-monitor/internal/events"
"github.com/go-ble/ble"
"github.com/go-ble/ble/examples/lib/dev"
"github.com/stefanjenkner/fdf-console-monitor/pkg/events"
)

type FitnessMachine struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package fitnessmachine
import (
"bytes"
"context"
"fdf-console-monitor/internal/events"
"reflect"
"testing"
"time"

"github.com/go-ble/ble"
"github.com/stefanjenkner/fdf-console-monitor/pkg/events"
)

type NotifierMock struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package serialmonitor

import (
"bufio"
"fdf-console-monitor/internal/events"
"fmt"
"log"
"strings"

"github.com/stefanjenkner/fdf-console-monitor/pkg/events"
"go.bug.st/serial"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package serialmonitor

import (
"bytes"
"fdf-console-monitor/internal/events"
"reflect"
"testing"
"time"

"github.com/stefanjenkner/fdf-console-monitor/pkg/events"
"go.bug.st/serial"
)

Expand Down

0 comments on commit a34d0b9

Please sign in to comment.