Skip to content
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

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

fatsheep9146
Copy link
Contributor

@fatsheep9146 fatsheep9146 commented May 30, 2022

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

… right now.

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 30, 2022
@mx-psi
Copy link
Member

mx-psi commented May 31, 2022

This should not fix the #9109 issue, but fix #10465 instead. Can you edit the description to reflect this?

@fatsheep9146
Copy link
Contributor Author

This should not fix the #9109 issue, but fix #10465 instead. Can you edit the description to reflect this?

Done

@fatsheep9146
Copy link
Contributor Author

@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"
Copy link
Member

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 ?

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

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

Same with this package

Copy link
Contributor Author

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

@djaglowski djaglowski merged commit 0c69129 into open-telemetry:main Jun 1, 2022
@mx-psi
Copy link
Member

mx-psi commented Jun 1, 2022

Updated list on #10466 with the files changed on this PR

kentquirk pushed a commit to McSick/opentelemetry-collector-contrib that referenced this pull request Jun 14, 2022
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[all] Enable gocritic linter on golangci-lint
4 participants