mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
refactor(yay): move cfg inside of runtime (#2259)
* rework relationship between runtime and cfg * separate runtime from cfg * simplify instantiation logic * move installer to appropriate package * move operator to sync package * add tests for srcinfo service * consolidate srcinfo service in sync * add logger to srcinfo * add logger to preparer * remove unused text functions * remove remaining text.* from srcinfo * remove global logger parts * remove global org method exports * remove global logger * move text->input * add rule to prevent fmt.Print * update golangci go version * remove outdated FAQs * remove outdated FAQs
This commit is contained in:
@@ -47,6 +47,7 @@ linters:
|
||||
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
|
||||
disable-all: true
|
||||
enable:
|
||||
- forbidigo
|
||||
- bodyclose
|
||||
- dogsled
|
||||
- dupl
|
||||
@@ -80,8 +81,12 @@ linters:
|
||||
- whitespace
|
||||
|
||||
run:
|
||||
go: "1.18"
|
||||
go: "1.20"
|
||||
timeout: "10m"
|
||||
forbidigo:
|
||||
forbid:
|
||||
- p: ^fmt\.Print.*$
|
||||
msg: Do not commit print statements.
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
|
||||
Reference in New Issue
Block a user