Skip to content

Conversation

@knocte
Copy link
Collaborator

@knocte knocte commented Dec 15, 2025

Supersedes #557

Fixes #532

parhamsaremi and others added 7 commits November 24, 2025 16:21
Checks for indexer accessor style consistency (OCaml and CSharp).

Fixes fsprojects#532
After rebasing PR557, these tweaks had to be applied
for it to build again, likely because of the recent
updates to new versions of FCS dependency.
Add a JSON converter for discriminated unions that only have
cases with no fields. It maps DUs to strings, like
JsonStringEnumConverter does it for enums.

This fixes the tests for IndexerAccessorStyleConsistency rule (for
serializing its config simple DU called IndexerAccessorStyle).
@knocte knocte merged commit 9bec3ed into fsprojects:master Dec 15, 2025
8 checks passed
knocte added a commit to knocte/FSharpLint that referenced this pull request Jan 22, 2026
After we have landed support for serializing simple DUs in [1] (part
of [2]), there's no need to have dummy values in the members of these
types (in order to force them to be enums).

[1] 06ca9c2
[2] fsprojects#794
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.

Feature: indexing syntax consistency

3 participants