Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.5k
Addgofactory linter#4196
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Addgofactory linter#4196
Changes from1 commit
bbe0eb970cd3e55a86fb82a31b5322e29b7faecc6b2fde9cebb4065b419bf43e40eddf930e2b2c1195cfba1ed192b59b9deb43dd5df588bca1dbfe1985e045111f638File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -137,7 +137,7 @@ func TestCgoOk(t *testing.T) { | ||
| "--timeout=3m", | ||
| "--enable-all", | ||
| "-D", | ||
| "nosnakecase,gci,gofactory", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I hope that is correct solution to pass tests. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. your tests are not in the right places. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Do you mean I should move Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. no, your tests must be inside There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. need to rollback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I added because of linter error Should I add option to exclude checking of std libraries in gofactory? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
Nice idea, but I think in case of Zero value is useful 🙂 Look at | ||
| ). | ||
| WithTargetPath(testdataDir, "cgo"). | ||
| Runner(). | ||
| @@ -355,7 +355,11 @@ func TestLineDirectiveProcessedFiles(t *testing.T) { | ||
| func TestUnsafeOk(t *testing.T) { | ||
| testshared.NewRunnerBuilder(t). | ||
| WithNoConfig(). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. how does this change relate to PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. If I return, can I add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. this should be reverted. | ||
| WithArgs( | ||
| "--enable-all", | ||
| "-D", | ||
| "gofactory", | ||
| ). | ||
| WithTargetPath(testdataDir, "unsafe"). | ||
| Runner(). | ||
| Install(). | ||