Skip to content

suite_dont_use_pkg: no testing.T with suite - #247

Open
HaraldNordgren wants to merge 2 commits into
Antonboom:masterfrom
HaraldNordgren:suite_no_testing_t
Open

suite_dont_use_pkg: no testing.T with suite#247
HaraldNordgren wants to merge 2 commits into
Antonboom:masterfrom
HaraldNordgren:suite_no_testing_t

Conversation

@HaraldNordgren

@HaraldNordgren HaraldNordgren commented Jun 16, 2025

Copy link
Copy Markdown

Create checker to make sure that suite methods are not passing a bare testing.T.

@HaraldNordgren HaraldNordgren changed the title checker: suite no bare testing t checker: suite no testing t Jun 16, 2025
@HaraldNordgren
HaraldNordgren marked this pull request as ready for review June 16, 2025 09:36
@HaraldNordgren

Copy link
Copy Markdown
Author

Ping @Antonboom, can I get some review here please? 🤗

@HaraldNordgren HaraldNordgren changed the title checker: suite no testing t checker: suite no bare testing.T Jun 16, 2025
@Antonboom

Copy link
Copy Markdown
Owner

Hi, @HaraldNordgren

Thank you for contribution!

Looks like improvement of #suite-method-signature or #suite-dont-use-pkg and not a separate checker.

In the next time I recommend to make issue first to avoid the extra work 🙂

What are your thoughts after taking into account the logic of the two checkers above?

@HaraldNordgren

HaraldNordgren commented Jun 24, 2025

Copy link
Copy Markdown
Author

Hi @Antonboom! Sorry I missed this, I changed my GitHub email routing and lost my email notifications for this thread 😬

I would suggest we put it in suite-dont-use-pkg primarily because that one supports auto-fixing. Is it in any way a concern for you that one of these two previous checkers become too bloated after adding this functionality?

@HaraldNordgren
HaraldNordgren force-pushed the suite_no_testing_t branch 3 times, most recently from 09eb57f to 8fb2e6e Compare October 14, 2025 12:49
@HaraldNordgren HaraldNordgren changed the title checker: suite no bare testing.T suite_dont_use_pkg: fix no bare testing.T with suite Oct 15, 2025
@HaraldNordgren HaraldNordgren changed the title suite_dont_use_pkg: fix no bare testing.T with suite suite_dont_use_pkg: no testing.T with suite Oct 15, 2025
@HaraldNordgren

HaraldNordgren commented Aug 8, 2026

Copy link
Copy Markdown
Author

Hi @Antonboom is there any chance of getting this merged? If so, I will take a look at resolving the merge conflicts here.

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.

2 participants