Skip to content

Conversation

@webwarrior-ws
Copy link
Contributor

Supersedes #668

@webwarrior-ws webwarrior-ws reopened this Jul 31, 2025
@webwarrior-ws webwarrior-ws force-pushed the wip/RunOnItself branch 6 times, most recently from 0c0d1fa to 6fb2501 Compare August 6, 2025 12:16
@knocte
Copy link
Collaborator

knocte commented Aug 7, 2025

@webwarrior-ws let's rebase this one when you can and 2 more things:

  • Keep the refactoring commit from Mersho to be last (latest) in the PR, not second to last.
  • Enable SuggestAutoProperty now.

@knocte
Copy link
Collaborator

knocte commented Aug 13, 2025

Core: re-enable SuggestUseAutoProperty rule

Let's rather squash this commit above with the one that disabled the rule in the first place

webwarrior-ws and others added 3 commits August 13, 2025 12:16
Fixing the warning for MaxLinesInFile rule:

```
========== Linting C:\Users\PC\source\repos\FSharpLint\src\FSharpLint.Core\Framework\HintParser.fs ==========
File suggested to be less than 1001 lines long.
Error on line 1001 starting at column 0

^
See https://fsprojects.github.io/FSharpLint/how-tos/rules/FL0062.html
--------------------------------------------------------------------------------
```
@webwarrior-ws
Copy link
Contributor Author

Core: re-enable SuggestUseAutoProperty rule

Let's rather squash this commit above with the one that disabled the rule in the first place

Done.

knocte and others added 6 commits August 13, 2025 14:42
This rule was introduced in v0.24.2 and was meant to be
enabled by default, as explained in the documentation
and in a blog-post of mine[1]. However we didn't realised
about this mistake until now, but it's a good time to do
it now given that this PR is making FSharpLint's own
codebase respect even more of its own rules.

[1] https://knocte.blogspot.com/2024/03/safety-shouldnt-be-opt-in.html
By converting the functions to tail-recursive using
continuation-passing style.

And silence them for functions that are very hard to convert to
tail-recursive.
This refactoring activates all rules by default and only
deactivates the specified ones.
Instead of Newtonsoft.Json, given that FSharpLint has moved
away already from Newtonsoft.
To address PR review. Also include previous commit in
.git-blame-ignore-revs since it's only renames.
@knocte knocte merged commit 81ccc0c into fsprojects:master Aug 13, 2025
6 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.

3 participants