Skip to content

Commit 7746315

Browse files
Fix Lint Docs CI failures (#58)
1 parent a7e8c07 commit 7746315

3 files changed

Lines changed: 48 additions & 19 deletions

File tree

.rubocop-md.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ AllCops:
1010
- 'vendor/**/*'
1111
- 'gemfiles/**/*'
1212
- 'benchmarks/**/*'
13+
- '**/node_modules/**/*'
1314
DisplayCopNames: true
1415
SuggestExtensions: false
1516
NewCops: disable
16-
TargetRubyVersion: 2.7
17+
TargetRubyVersion: 3.1
1718

1819
inherit_gem:
1920
standard: config/base.yml
@@ -23,3 +24,7 @@ Standard/BlockSingleLineBraces:
2324

2425
Layout/InitialIndentation:
2526
Enabled: false
27+
28+
# Code blocks nested in Markdown lists are indented, which trips indentation cops.
29+
Layout/IndentationConsistency:
30+
Enabled: false

docs/anycable-go/library.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,27 @@ Here is a minimal example Go code (you can find the full and up-to-date version
2222
package main
2323

2424
import (
25-
"net/http"
25+
"net/http"
2626

27-
"github.com/anycable/anycable-go/cli"
27+
"github.com/anycable/anycable-go/cli"
2828
)
2929

3030
func main() {
31-
opts := []cli.Option{
32-
cli.WithName("AnyCable"),
33-
cli.WithDefaultRPCController(),
34-
cli.WithDefaultBroker(),
35-
cli.WithDefaultSubscriber(),
36-
cli.WithDefaultBroadcaster(),
37-
}
38-
39-
c := cli.NewConfig()
40-
runner, _ := cli.NewRunner(c, opts)
41-
anycable, _ := runner.Embed()
42-
43-
wsHandler, _ := anycable.WebSocketHandler()
44-
http.Handle("/cable", wsHandler)
45-
46-
http.ListenAndServe(":8080", nil)
31+
opts := []cli.Option{
32+
cli.WithName("AnyCable"),
33+
cli.WithDefaultRPCController(),
34+
cli.WithDefaultBroker(),
35+
cli.WithDefaultSubscriber(),
36+
cli.WithDefaultBroadcaster(),
37+
}
38+
39+
c := cli.NewConfig()
40+
runner, _ := cli.NewRunner(c, opts)
41+
anycable, _ := runner.Embed()
42+
43+
wsHandler, _ := anycable.WebSocketHandler()
44+
http.Handle("/cable", wsHandler)
45+
46+
http.ListenAndServe(":8080", nil)
4747
}
4848
```

forspell.dict

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,27 @@ Kamal
6161
Thruster
6262
resumeable
6363
Fargate
64+
Grafana
65+
Msgpack
66+
Msgpack-encoded
67+
Posthog
68+
Preflight
69+
Protobufs
70+
Soketi
71+
Twilio
72+
Valkey
73+
automaxprocs
74+
binstub
75+
caniuse
76+
graphql-anycable
77+
graphql-ws
78+
influxdb
79+
jid
80+
misconfigured
81+
noauth
82+
norpc
83+
reconnection
84+
resumable
85+
subprotocol
86+
virtualized
87+
webhooks

0 commit comments

Comments
 (0)