-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Cloudwatch: Add linting to restrict imports from core #82538
Conversation
@@ -122,7 +122,7 @@ func NewInstanceSettings(httpClientProvider *httpclient.Provider) datasource.Ins | |||
} | |||
} | |||
|
|||
// cloudWatchExecutor executes CloudWatch requests. | |||
// cloudWatchExecutor executes CloudWatch requests |
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.
to trigger BE checks
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.
eslint-part is fine 👍
.golangci.toml
Outdated
@@ -67,6 +67,7 @@ files = [ | |||
"**/pkg/tsdb/parca/**/*", | |||
"**/pkg/tsdb/tempo/*", | |||
"**/pkg/tsdb/tempo/**/*", | |||
"**/pkg/tsdb/cloudwatch/**/*", |
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.
i don't know how exactly this thing works, but other datasources have 2 lines each... cloudwatch only 1. is this intentional?
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.
Fixed!
Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
What is this feature?
Final step of removing FE + BE dependencies on core grafana. Enables linting for CW to prevent core grafana imports
Which issue(s) does this PR fix?:
Fixes #78845
Special notes for your reviewer:
Please check that: