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

Simplify SelfCheck #679

Merged
merged 4 commits into from
Jan 15, 2024
Merged

Simplify SelfCheck #679

merged 4 commits into from
Jan 15, 2024

Conversation

knocte
Copy link
Collaborator

@knocte knocte commented Jan 11, 2024

Linting the whole solution instead of two specific projects.

No reason to leave test projects out of the SelfCheck really.
This way it is more readable, more consistent across all tests,
and lets you add more content to the snippet without causing
git-blame noise.
There was a mix of 2-space and 4-space indentation in the tests,
now it is consistent to 4-space.

Also, in some cases such as the one starting with "module Foo",
there was no need for indentation (there would be a need if the
snippet started with "module Foo =" tho).
* If a let declaration doesn't have any params, it isn't really a
function; so let's add some () to fix them.

* Funcs alone can't live inside a namespace, but rather a module.

* For loops can't live inside a module, they need to be inside a
function.

* A function's last line cannot be a let declaration.

* The public tuple snippet didn't need a main wrapper func.

* No need for [<EntryPoint>] attributes in tests.

* Better to use `module` than `open`/`namespace`, especially in
tests that don't need the latter.

* etc...
@knocte knocte merged commit c2a4dac into fsprojects:master Jan 15, 2024
5 checks passed
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.

1 participant