Skip to content

Feature/fix common failures #81

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

Merged
merged 2 commits into from
Jun 10, 2018
Merged

Feature/fix common failures #81

merged 2 commits into from
Jun 10, 2018

Conversation

jirfag
Copy link
Contributor

@jirfag jirfag commented Jun 10, 2018

No description provided.

jirfag added 2 commits June 10, 2018 09:22
Use build.Import instead of manual parser.ParseFile and paths traversal. It allows:
1. support build tags for all linters.
2. analyze files only for current GOOS/GOARCH: less false-positives.
3. analyze xtest packages (*_test) by golint: upstream golint and
gometalinter can't do it! And don't break analysis on the first xtest
package like it was before.
4. proper handling of xtest packages for linters like goconst where
package boundary is important: less false-positives is expected.

Also:
1. reuse AST parsing for golint and goconst: minor speedup.
2. allow to specify path (not only name) regexp for --skip-files and
--skip-dirs
3. add more default exclude filters for golint about commits:
`(comment on exported (method|function)|should have( a package)?
    comment|comment should be of the form)`
4. print skipped dir in verbose (-v) mode
5. refactor per-linter tests: declare arguments in comments, run only
one linter and in combination with slow linter
@@ -138,6 +163,7 @@ func separateNotCompilingPackages(lintCtx *linter.Context) {
}
}

//nolint:gocyclo
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment on exported function LoadContext should be of the form "LoadContext ..."

Copy link
Contributor Author

@jirfag jirfag Jun 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this issue reporting was fixed in current pull request

@jirfag jirfag merged commit 46088de into master Jun 10, 2018
@jirfag jirfag deleted the feature/fix-common-failures branch June 10, 2018 20:53
@ldez ldez added this to the v1.6 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants