Skip to content

Commit

Permalink
WIP: start implementing the rule
Browse files Browse the repository at this point in the history
  • Loading branch information
webwarrior-ws committed Dec 4, 2023
1 parent 4e59a30 commit 55d995d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/FSharpLint.Core/Rules/Conventions/SuggestUseAutoProperty.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ open FSharpLint.Framework.Ast
open FSharpLint.Framework.Rules

let private runner (args: AstNodeRuleParams) =

failwith "Not implemented"
let dump = sprintf "%A" args.AstNode
match args.AstNode with
| MemberDefinition(
SynMemberDefn.Member(

Check failure on line 14 in src/FSharpLint.Core/Rules/Conventions/SuggestUseAutoProperty.fs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 5.0.202)

Possible incorrect indentation: this token is offside of context started at position (13:23). Try indenting this token further or using standard formatting conventions.
SynBinding(accessibility, kind, _, false, _attributes, _xmlDoc, valData, headPat, returnInfo, expr, bindingRange, _), memberRange)) ->
match headPat with
| SynPat.LongIdent(longDotId, extraId, typarDecls, argPats, accessibility, headPatRange) ->
// argPats
failwith "Not implemented"
| _ -> Array.empty
| _ -> Array.empty

let rule =
{ Name = "SuggestUseAutoProperty"
Expand Down

0 comments on commit 55d995d

Please sign in to comment.