-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
first enable gocritic and exclude all components that are not passing… #10422
Conversation
… right now. Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
5865cbb
to
8429d49
Compare
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
@codeboten could you merge this? |
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package ecsinfo // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscontainerinsightreceiver/internal/ecsInfo" |
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.
Does this package need the nolint
?
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 try to use nolint
at first, but it failed to escape these comments. So I have to correct those comments directly without using nolint.
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package ecsinfo |
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.
Same with this package
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.
Same reason as the ecsinfo.go
Updated list on #10466 with the files changed on this PR |
open-telemetry#10422) * first enable gocritic and exclude all components that are not passing right now. Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com> * gofmt error Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Description:
Fix #10465 as @mx-psi suggested, first enable
gocritic
and exclude all components that are not passing right now.Link to tracking Issue:
#10465
Signed-off-by: Ziqi Zhao zhaoziqi9146@gmail.com