-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next release planning: v0.3.0 #149
Comments
quasilyte
added a commit
that referenced
this issue
Dec 22, 2020
Previously, DSL was 99% about fluent.Matcher which sounds OK because the matcher itself is a "Fluent API" (tm). But it makes freestanding functions in fluent package awkward. "dsl" package gives no restrictions in that regard. Refs #149
quasilyte
added a commit
that referenced
this issue
Dec 22, 2020
Previously, DSL was 99% about fluent.Matcher which sounds OK because the matcher itself is a "Fluent API" (tm). But it makes freestanding functions in fluent package awkward. "dsl" package gives no restrictions in that regard. Refs #149
quasilyte
added a commit
that referenced
this issue
Dec 22, 2020
Previously, DSL was 99% about fluent.Matcher which sounds OK because the matcher itself is a "Fluent API" (tm). But it makes freestanding functions in fluent package awkward. "dsl" package gives no restrictions in that regard. Refs #149
Actually, maybe it's a good idea to keep the latest This way, old |
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
`-enable` and `-disable` are a comma separated lists. It's not very convenient to specify a long list in bash, but since most configuration is done in yaml (golangci-lint), it should be somewhat readable: disable: >- A, B, C Another option: disable: "\ A,\ B,\ C" Useful in combination with ruleguard modules. Rules from modules can be disabled via -disable flag. Both `-enable` and `-disable` flags can be debugged with `-debug-enable-disable `flag (prints whether a group was enabled/disabled). Refs #149
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
`-enable` and `-disable` are a comma separated lists. It's not very convenient to specify a long list in bash, but since most configuration is done in yaml (golangci-lint), it should be somewhat readable: disable: >- A, B, C Another option: disable: "\ A,\ B,\ C" Useful in combination with ruleguard modules. Rules from modules can be disabled via -disable flag. Both `-enable` and `-disable` flags can be debugged with `-debug-enable-disable `flag (prints whether a group was enabled/disabled). Refs #149
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
`-enable` and `-disable` are a comma separated lists. It's not very convenient to specify a long list in bash, but since most configuration is done in yaml (golangci-lint), it should be somewhat readable: disable: >- A, B, C Another option: disable: "\ A,\ B,\ C" Useful in combination with ruleguard modules. Rules from modules can be disabled via -disable flag. Both `-enable` and `-disable` flags can be debugged with `-debug-enable-disable `flag (prints whether a group was enabled/disabled). Refs #149
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
Since Go rules are ordinary Go modules, it's now trivial to write `go/analysis` style tests using the `go-ruleguard/analyzer` package. Should be convenient enough for now: func TestRules(t *testing.T) { testdata := analysistest.TestData() if err := analyzer.Analyzer.Flags.Set("rules", "rules.go"); err != nil { t.Fatalf("set rules flag: %v", err) } analysistest.Run(t, testdata, analyzer.Analyzer, "./...") } Where `rules.go` is a rules file (or several files, separated by a comma) to be tested. `testdate` should have Go files to be analyzed. Fixes #91 Refs #149
Merged
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
Since Go rules are ordinary Go modules, it's now trivial to write `go/analysis` style tests using the `go-ruleguard/analyzer` package. Should be convenient enough for now: func TestRules(t *testing.T) { testdata := analysistest.TestData() if err := analyzer.Analyzer.Flags.Set("rules", "rules.go"); err != nil { t.Fatalf("set rules flag: %v", err) } analysistest.Run(t, testdata, analyzer.Analyzer, "./...") } Where `rules.go` is a rules file (or several files, separated by a comma) to be tested. `testdate` should have Go files to be analyzed. Fixes #91 Refs #149
quasilyte
added a commit
that referenced
this issue
Dec 31, 2020
Since Go rules are ordinary Go modules, it's now trivial to write `go/analysis` style tests using the `go-ruleguard/analyzer` package. Should be convenient enough for now: func TestRules(t *testing.T) { testdata := analysistest.TestData() if err := analyzer.Analyzer.Flags.Set("rules", "rules.go"); err != nil { t.Fatalf("set rules flag: %v", err) } analysistest.Run(t, testdata, analyzer.Analyzer, "./...") } Where `rules.go` is a rules file (or several files, separated by a comma) to be tested. `testdate` should have Go files to be analyzed. Fixes #91 Refs #149
quasilyte
added a commit
that referenced
this issue
Jan 12, 2021
quasilyte
added a commit
that referenced
this issue
Jan 12, 2021
quasilyte
added a commit
that referenced
this issue
Jan 12, 2021
quasilyte
added a commit
that referenced
this issue
Jan 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pre-release:
Addr
keyword to get pointer type from non-pointer type #129)Type.Implements
issue related to the Gotypes.Importer
dsl/fluent
package to justdsl
-e
worksruleguard
package APIRelease:
analyzer.Version
value set)RELEASE
variablego-critic
Extracurricular activity:
v0.3.0
File().PkgPath
variable golangci/golangci-lint#1545 is fixedThe text was updated successfully, but these errors were encountered: