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

Fix collection of know keys for test, plan and story T001 linter #3084

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

happz
Copy link
Collaborator

@happz happz commented Jul 10, 2024

The original code did not handle fields with dashes (restart-max-count) and internal fields (serial-number).

Pull Request Checklist

  • implement the feature
  • extend the test coverage

@happz happz added bug Something isn't working command | lint tmt lint command code | trivial A simple patch - a couple of lines, an easy-to-understand change, a typo fix. labels Jul 10, 2024
@happz happz added this to the 1.35 milestone Jul 10, 2024
Copy link
Collaborator

@psss psss left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement!

@psss psss self-assigned this Jul 19, 2024
happz and others added 2 commits July 19, 2024 09:13
The original code did not handle fields with dashes
(`restart-max-count`) and internal fields (`serial-number`).
@psss psss force-pushed the fix-collection-of-known-fields-for-linter branch from dcd6142 to 6a69b43 Compare July 19, 2024 07:13
@psss
Copy link
Collaborator

psss commented Jul 19, 2024

Extended the test coverage a bit in 6a69b43 to check that internal keys are correctly reported as invalid (which was not the case before the change).

@psss psss merged commit 1fc62f0 into main Jul 19, 2024
11 of 19 checks passed
@psss psss deleted the fix-collection-of-known-fields-for-linter branch July 19, 2024 07:51
The-Mule pushed a commit to The-Mule/tmt that referenced this pull request Oct 14, 2024
…mtee#3084)

The original code did not handle fields with dashes
(`restart-max-count`) and internal fields (`serial-number`).
Extend the test coverage a bit to check that internal keys are
reported as invalid.

Co-authored-by: Petr Šplíchal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code | trivial A simple patch - a couple of lines, an easy-to-understand change, a typo fix. command | lint tmt lint command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants