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

Adding Lint Checker #1449

Merged
merged 4 commits into from
Dec 3, 2024
Merged

Adding Lint Checker #1449

merged 4 commits into from
Dec 3, 2024

Conversation

Paramadon
Copy link
Contributor

Description of the Issue

Currently, the CloudWatch Agent only performs basic linting checks. This pull request introduces an enhanced lint checker to ensure that all future code merges adhere to high standards of formatting and quality.

Since the current codebase may contain existing linting conflicts, a parameter new-from-dev has been introduced, set to the commit 3221f769358168c0602e58918c1fb7b6083e33af. This parameter ensures that lint checks are only applied to commits made after this point, avoiding unnecessary conflicts with legacy code.


Description of Changes

  • Added a lint checker to the CloudWatch Agent to enforce consistent code formatting and quality for future development.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution under the terms of your choice.


Requirements

Before committing the code, please complete the following steps:

  1. Run make fmt and make fmt-sh.
  2. Run make lint.

This version improves clarity, grammar, and professionalism while maintaining the necessary technical details.

@Paramadon Paramadon requested a review from a team as a code owner December 2, 2024 22:07
Comment on lines 50 to 51
- gofmt
- goimports
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Likely don't need these linters since we have other steps that'll check/fix them, which is why these were initially disabled.

@Paramadon Paramadon merged commit 0d7b114 into main Dec 3, 2024
6 checks passed
@Paramadon Paramadon deleted the AddingLinters branch December 3, 2024 16:57
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