Skip to content

Commit 88420ea

Browse files
committed
feat: improve development workflow and fix linter issues for v1.5.2
- Fix beep.Loop2 function call to handle return values correctly - Improve golangci-lint configuration with linters-settings support - Add comprehensive development tooling documentation to README - Update version to 1.5.2 across all files - Document all linter fixes in CHANGELOG.md This release improves the development experience with proper linting configuration that works with both local tools.mod and CI workflow.
1 parent ba50515 commit 88420ea

6 files changed

Lines changed: 54 additions & 5 deletions

File tree

.golangci.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
version: "2"
22
run:
33
build-tags:
4-
- nosound
4+
- nosound
5+
timeout: 5m
6+
7+
linters:
8+
default: none
9+
enable:
10+
- errcheck
11+
- govet
12+
- ineffassign
13+
- staticcheck
14+
- unused
15+
16+
linters-settings:
17+
errcheck:
18+
check-type-assertions: true
19+
govet:
20+
enable:
21+
- fieldalignment
22+
23+
issues:
24+
max-issues-per-linter: 0
25+
max-same-issues: 0
26+
exclude-dirs:
27+
- vendor
28+
exclude-patterns:
29+
- "//nolint:"

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 1.5.2 (2025-09-07)
2+
3+
Bug fixes:
4+
5+
- Fix beep.Loop2 function call to handle two return values correctly
6+
- Improve golangci-lint configuration for better development workflow
7+
- Add comprehensive linter fixes: errcheck, staticcheck, and unused code warnings
8+
- Update development tooling documentation
9+
110
## 1.5.1 (2025-09-07)
211

312
Bug fixes:

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://goreportcard.com/report/github.com/ronilaukkarinen/focus"><img src="https://goreportcard.com/badge/github.com/ronilaukkarinen/focus" alt="GoReportCard"></a>
99
<a href="https://github.com/ronilaukkarinen/focus"><img src="https://img.shields.io/badge/go-1.24-blue.svg" alt="Go version"></a>
1010
<a href="https://github.com/ronilaukkarinen/focus/blob/master/LICENCE"><img src="https://img.shields.io/github/license/ronilaukkarinen/focus.svg" alt="LICENCE"></a>
11-
<a href="https://github.com/ronilaukkarinen/focus/releases/"><img src="https://img.shields.io/badge/version-1.5.1-blue.svg" alt="Latest release"></a>
11+
<a href="https://github.com/ronilaukkarinen/focus/releases/"><img src="https://img.shields.io/badge/version-1.5.2-blue.svg" alt="Latest release"></a>
1212
</p>
1313

1414
<h1 align="center">Focus on your task - with flow timer!</h1>
@@ -472,6 +472,21 @@ focus delete --start '2023-02-21 21:21:00'
472472
Bug reports and feature requests are much welcome! Please open an issue before
473473
creating a pull request.
474474

475+
## 🛠️ Development
476+
477+
This project includes comprehensive development tooling:
478+
479+
- **Linting**: Run `just lint` to check code quality with golangci-lint
480+
- **Testing**: Run `just test` for comprehensive test suite
481+
- **Pre-commit hooks**: Automatic linting and formatting on commit
482+
- **Build tools**: Run `just build` to compile binaries
483+
484+
The project uses:
485+
- [just](https://github.com/casey/just) for task running
486+
- [golangci-lint v2](https://golangci-lint.run/) for code quality
487+
- [pre-commit](https://pre-commit.com/) for git hooks
488+
- tools.mod for development dependency management
489+
475490
## ⚖ Licence
476491

477492
Created by Ayooluwa Isaiah, and released under the terms of the

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type (
7575
SessionType string
7676
)
7777

78-
const Version = "v1.5.1"
78+
const Version = "v1.5.2"
7979

8080
const (
8181
Work SessionType = "Work session"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ronilaukkarinen/focus",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "Focus is a flexible command-line productivity timer with flow mode for uninterrupted work sessions",
55
"main": "",
66
"repository": "https://github.com/ronilaukkarinen/focus",

timer/sound.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (t *Timer) setAmbientSound() error {
210210
return err
211211
}
212212

213-
infiniteStream := beep.Loop2(stream)
213+
infiniteStream, _ := beep.Loop2(stream)
214214
t.SoundStream = infiniteStream
215215

216216
speaker.Play(t.SoundStream)

0 commit comments

Comments
 (0)