Commit 76fd8ff 1 parent 4db3965 commit 76fd8ff Copy full SHA for 76fd8ff
File tree 14 files changed +21
-37
lines changed
14 files changed +21
-37
lines changed Original file line number Diff line number Diff line change 9
9
]
10
10
},
11
11
"fantomas" : {
12
- "version" : " 6.3.0-alpha-005 " ,
12
+ "version" : " 6.3.0-alpha-007 " ,
13
13
"commands" : [
14
14
" fantomas"
15
15
]
Original file line number Diff line number Diff line change @@ -11,9 +11,8 @@ trim_trailing_whitespace = true
11
11
max_line_length = 80
12
12
fsharp_alternative_long_member_definitions = true
13
13
fsharp_multi_line_lambda_closing_newline = true
14
- fsharp_bar_before_discriminated_union_declaration = true
15
14
fsharp_multiline_bracket_style = aligned
16
- fsharp_keep_max_number_of_blank_lines = 2
15
+ fsharp_keep_max_number_of_blank_lines = 1
17
16
fsharp_record_multiline_formatter = number_of_items
18
17
fsharp_max_record_number_of_items = 1
19
18
fsharp_array_or_list_multiline_formatter = number_of_items
Original file line number Diff line number Diff line change 11
11
"include" : [
12
12
" src/**/*.fs" ,
13
13
" src/**/*.fsx" ,
14
- " src/**/*.fsi"
14
+ " src/**/*.fsi" ,
15
+ " test/**/*.fs" ,
16
+ " test/**/*.fsx" ,
17
+ " test/**/*.fsi"
15
18
]
16
19
},
17
20
{
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ let main argv =
60
60
match argv with
61
61
| " test" :: args -> Test.Specs.handle args
62
62
| " publish" :: args -> Publish.handle args
63
- | " lint" :: _ -> Command.Run( " dotnet" , " fantomas --check src" )
64
- | " format" :: _ -> Command.Run( " dotnet" , " fantomas src" )
63
+ | " lint" :: _ -> Command.Run( " dotnet" , " fantomas --check src tests " )
64
+ | " format" :: _ -> Command.Run( " dotnet" , " fantomas src tests " )
65
65
| " cli" :: args -> Cli.handle args
66
66
| " help" :: _
67
67
| " --help" :: _
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ open BlackFox.CommandLine
7
7
open Build.Utils
8
8
open Build.Utils .Pnpm
9
9
10
-
11
10
let private publishNpm ( projectDir : string ) =
12
11
let packageJsonPath = Path.Combine( projectDir, " package.json" )
13
12
let packageJsonContent = File.ReadAllText( packageJsonPath)
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ module Types =
67
67
| SubSubSection of tag : string
68
68
| ListItem of content : string
69
69
70
-
71
70
[<RequireQualifiedAccess>]
72
71
module Lexer =
73
72
Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ open BlackFox.CommandLine
7
7
type Nuget =
8
8
9
9
static member push
10
- (
11
- nupkgPath : string ,
12
- nugetKey : string ,
13
- ? skipDuplicate : bool
14
- )
10
+ ( nupkgPath : string , nugetKey : string , ? skipDuplicate : bool )
15
11
=
16
12
let skipDuplicate = defaultArg skipDuplicate false
17
13
Original file line number Diff line number Diff line change @@ -21,11 +21,7 @@ type Pnpm =
21
21
static member install () = Command.Run( " pnpm" , " install" )
22
22
23
23
static member publish
24
- (
25
- ? projectDir : string ,
26
- ? noGitChecks : bool ,
27
- ? access : Publish.Access
28
- )
24
+ (? projectDir : string , ? noGitChecks : bool , ? access : Publish.Access )
29
25
=
30
26
let noGitChecks = defaultArg noGitChecks false
31
27
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ type GlueModuleDeclaration =
150
150
Types: GlueType list
151
151
}
152
152
153
- type GlueConstructor = | GlueConstructor of GlueParameter list
153
+ type GlueConstructor = GlueConstructor of GlueParameter list
154
154
155
155
type GlueClassDeclaration =
156
156
{
@@ -167,10 +167,10 @@ type GlueTypeReference =
167
167
TypeArguments: GlueType list
168
168
}
169
169
170
- type GlueTypeUnion = | GlueTypeUnion of GlueType list
170
+ type GlueTypeUnion = GlueTypeUnion of GlueType list
171
171
172
172
[<RequireQualifiedAccess>]
173
- type ExcludedMember = | Literal of GlueLiteral
173
+ type ExcludedMember = Literal of GlueLiteral
174
174
// | Function
175
175
176
176
type GlueFunctionType =
Original file line number Diff line number Diff line change @@ -25,10 +25,8 @@ let readTypeAliasDeclaration
25
25
let declaration = declaration.`` type `` :?> Ts.IndexedAccessType
26
26
reader.ReadIndexedAccessType declaration
27
27
28
-
29
28
| _ -> reader.ReadTypeNode declaration.`` type ``
30
29
31
-
32
30
{
33
31
Name = declaration.name.getText ()
34
32
Type = typ
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ let rec private readUnionTypeCases
114
114
typeReferenceNode
115
115
)
116
116
117
-
118
117
// else
119
118
// symbol.declarations
120
119
// |> Seq.toList
Original file line number Diff line number Diff line change @@ -472,7 +472,6 @@ let private transformTypeParameters
472
472
}
473
473
)
474
474
475
-
476
475
let private transformTypeAliasDeclaration
477
476
( glueTypeAliasDeclaration : GlueTypeAliasDeclaration )
478
477
: FSharpType
Original file line number Diff line number Diff line change @@ -30,21 +30,24 @@ let macroTestSpec (t: ExecutionContext<obj>) (specPath: string) =
30
30
promise {
31
31
let filepath = $" {__SOURCE_DIRECTORY__}/specs/{specPath}.d.ts"
32
32
let res = generateBindingFile filepath
33
- let res = res + """
33
+
34
+ let res =
35
+ res
36
+ + """
34
37
(***)
35
38
#r "nuget: Fable.Core"
36
39
(***)
37
40
"""
38
41
39
42
let expectedFile = $" {__SOURCE_DIRECTORY__}/specs/{specPath}.fsx"
40
43
41
- if fs.existsSync(!! expectedFile) then
44
+ if fs.existsSync (!! expectedFile) then
42
45
let! expectedContent = Fs.readFile expectedFile
43
- let expected = expectedContent
46
+ let expected = expectedContent
44
47
t.deepEqual.Invoke( res, expected) |> ignore
45
48
else
46
49
let tmpFile = $" {__SOURCE_DIRECTORY__}/specs/{specPath}.tmp.fsx"
47
- fs.writeFileSync( tmpFile, res)
50
+ fs.writeFileSync ( tmpFile, res)
48
51
}
49
52
50
53
[<ImportDefault( " ava" ) >]
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ module Glutinum.Ava
3
3
open Fable.Core
4
4
open System
5
5
6
-
7
6
[<AllowNullLiteral>]
8
7
type LogFn =
9
8
/// Log one or more values.
@@ -25,7 +24,6 @@ type PlanFn =
25
24
/// Don't plan assertions.
26
25
abstract skip: count : float -> unit
27
26
28
-
29
27
[<AllowNullLiteral>]
30
28
type AssertAssertion =
31
29
/// <summary>
@@ -38,7 +36,6 @@ type AssertAssertion =
38
36
/// Skip this assertion.
39
37
abstract skip: actual : obj option * ? message : string -> unit
40
38
41
-
42
39
[<AllowNullLiteral>]
43
40
type DeepEqualAssertion =
44
41
/// <summary>
@@ -80,7 +77,6 @@ type ExecutionContext<'Context> =
80
77
abstract log: LogFn
81
78
abstract plan: PlanFn
82
79
83
-
84
80
[<Erase>]
85
81
type test < 'Context > =
86
82
@@ -90,9 +86,6 @@ type test<'Context> =
90
86
91
87
[<ImportDefault( " ava" ) >]
92
88
static member test
93
- (
94
- title : string ,
95
- t : ExecutionContext < 'Context > -> JS.Promise < unit >
96
- )
89
+ ( title : string , t : ExecutionContext < 'Context > -> JS.Promise < unit >)
97
90
=
98
91
nativeOnly
You can’t perform that action at this time.
0 commit comments