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

Enable more rules for SelfCheck #668

Open
wants to merge 41 commits into
base: master
Choose a base branch
from

Conversation

Mersho
Copy link
Contributor

@Mersho Mersho commented Jan 5, 2024

No description provided.

@knocte knocte closed this Jan 5, 2024
@knocte knocte force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from c6b4a7b to 3f6aada Compare January 5, 2024 16:15
@knocte knocte reopened this Jan 5, 2024
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from 4ca90c9 to 4721598 Compare January 8, 2024 09:28
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from 76bb3b4 to 66f4229 Compare January 9, 2024 08:57
@knocte knocte force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from 3c09d63 to 036c2a8 Compare January 9, 2024 10:20
@knocte
Copy link
Collaborator

knocte commented Jan 9, 2024

@Mersho please note I recently did a force-push in this branch. Pull properly to not overwrite my work. After that, you can rebase the branch.

@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch 4 times, most recently from 680b8a1 to e7e3e00 Compare January 11, 2024 12:16
knocte added a commit to knocte/FSharpLint that referenced this pull request Jan 13, 2024
…value-squashed"

This reverts commit fcf9213 temporarily,
because it caused a regression in the rule that we caught when trying to
rebase PR fsprojects#668 (it crashes FSharpLint when trying to use FSharpLint on
itself).
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from ccedd44 to 73ad48f Compare January 15, 2024 09:07
build.fsx Outdated Show resolved Hide resolved
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch 4 times, most recently from b8703f7 to 1e03c5d Compare January 15, 2024 11:51
@Mersho Mersho closed this Jan 15, 2024
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from 0d1c091 to 324085e Compare January 15, 2024 12:13
@Mersho Mersho reopened this Jan 15, 2024
build.fsx Outdated Show resolved Hide resolved
src/FSharpLint.Core/Framework/Ast.fs Outdated Show resolved Hide resolved
src/FSharpLint.Core/Framework/AstInfo.fs Outdated Show resolved Hide resolved
src/FSharpLint.Core/Framework/HintParser.fs Outdated Show resolved Hide resolved
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch 3 times, most recently from 85e4cf0 to fca78a4 Compare January 16, 2024 09:39
Fixing the warning for the FavourTypedIgnore rule:

```
Use a generic type parameter when calling the 'ignore' function.
Error on line 518 starting at column 16
                lintWarnings.AddLast warning |> ignore
```
@Mersho Mersho closed this Feb 19, 2024
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from e57d4f9 to 1928d4e Compare February 19, 2024 13:39
@Mersho Mersho reopened this Feb 19, 2024
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from 4368876 to 13e75e7 Compare February 20, 2024 10:07
Fixing the warning for NoPartialFunctions rule.

Also to use FSharpx.Collections.Seq.tryHeadTail, we must
install and add FSharpx.Collections to our dependencies:
```
Consider using 'FSharpx.Collections.Seq.tryHeadTail' instead of partial function/method 'Array.tail'.
Error on line 126 starting at column 19
                |> Array.tail
```
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
--------------------------------------------------------------------------------
```
This refactoring activates all rules by default and only
deactivates the specified ones.
@Mersho Mersho force-pushed the Json-RunFsharplintOnItselfTest-Rebased branch from c56b5b6 to dbf2753 Compare February 20, 2024 10:49
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