-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Lint #4876
Lint #4876
Conversation
@@ -157,8 +159,8 @@ func (p *Parser) Parse(line string) (models.Point, error) { | |||
return models.NewPoint(measurement, tags, fieldValues, timestamp) | |||
} | |||
|
|||
// Apply extracts the template fields form the given line and returns the | |||
// measurement name and tags | |||
// ApplyTemplate extracts the template fields form the given line and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
form -> from
Thanks @e-dard -- some minor feedback. I can merge once addressed. |
Thanks @otoolep. Sorry about the typos. "I'll just lint this package on a Sunday evening, it'll only take five minutes"... Thirty minutes later.. Arggh! |
Sorry for the late catchup on this; my daughter decided to arrive 3 weeks early 👶 Should be all good now @otoolep ? |
Looks good to me @e-dard -- thanks. +1 @corylanou ? Please merge if you're OK with this. |
Supports #4098. Lints the following packages:
monitor
;services/continuous_querier
❗;services/graphite
❗;services/hh
❗;services/httpd
;services/graphite
; andservices/opentsdb
.services
also contains thecopier/internal
package, which is generated, so that's obvious not been linted.Packages with ❗ have outstanding lint issues. Specifically:
Because the tests in these packages use the exported test package idiom, the
NewX
functions cannot be unexported as it stands. I'm not sure whether they're supposed to be part of the external API or not regardless.In terms of the
continuous_querier
package I can rename this if it suits—depends on if it's name is underscored for a reason.If anyone wants the remaining issues resolved: chime up, otherwise these packages are done.