From 9cce14b328edf854a1d8e907e77297b101bb083b Mon Sep 17 00:00:00 2001 From: Irina Nazarova Date: Sun, 21 Jun 2026 23:00:42 -0700 Subject: [PATCH] Fix Lint Docs CI failures --- .rubocop-md.yml | 7 ++++++- docs/anycable-go/library.md | 36 ++++++++++++++++++------------------ forspell.dict | 24 ++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 19 deletions(-) diff --git a/.rubocop-md.yml b/.rubocop-md.yml index 418e2e6..d2d8ad7 100644 --- a/.rubocop-md.yml +++ b/.rubocop-md.yml @@ -10,10 +10,11 @@ AllCops: - 'vendor/**/*' - 'gemfiles/**/*' - 'benchmarks/**/*' + - '**/node_modules/**/*' DisplayCopNames: true SuggestExtensions: false NewCops: disable - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.1 inherit_gem: standard: config/base.yml @@ -23,3 +24,7 @@ Standard/BlockSingleLineBraces: Layout/InitialIndentation: Enabled: false + +# Code blocks nested in Markdown lists are indented, which trips indentation cops. +Layout/IndentationConsistency: + Enabled: false diff --git a/docs/anycable-go/library.md b/docs/anycable-go/library.md index 28b07e9..da010cc 100644 --- a/docs/anycable-go/library.md +++ b/docs/anycable-go/library.md @@ -22,27 +22,27 @@ Here is a minimal example Go code (you can find the full and up-to-date version package main import ( - "net/http" + "net/http" - "github.com/anycable/anycable-go/cli" + "github.com/anycable/anycable-go/cli" ) func main() { - opts := []cli.Option{ - cli.WithName("AnyCable"), - cli.WithDefaultRPCController(), - cli.WithDefaultBroker(), - cli.WithDefaultSubscriber(), - cli.WithDefaultBroadcaster(), - } - - c := cli.NewConfig() - runner, _ := cli.NewRunner(c, opts) - anycable, _ := runner.Embed() - - wsHandler, _ := anycable.WebSocketHandler() - http.Handle("/cable", wsHandler) - - http.ListenAndServe(":8080", nil) + opts := []cli.Option{ + cli.WithName("AnyCable"), + cli.WithDefaultRPCController(), + cli.WithDefaultBroker(), + cli.WithDefaultSubscriber(), + cli.WithDefaultBroadcaster(), + } + + c := cli.NewConfig() + runner, _ := cli.NewRunner(c, opts) + anycable, _ := runner.Embed() + + wsHandler, _ := anycable.WebSocketHandler() + http.Handle("/cable", wsHandler) + + http.ListenAndServe(":8080", nil) } ``` diff --git a/forspell.dict b/forspell.dict index fbcf8ae..955f338 100644 --- a/forspell.dict +++ b/forspell.dict @@ -61,3 +61,27 @@ Kamal Thruster resumeable Fargate +Grafana +Msgpack +Msgpack-encoded +Posthog +Preflight +Protobufs +Soketi +Twilio +Valkey +automaxprocs +binstub +caniuse +graphql-anycable +graphql-ws +influxdb +jid +misconfigured +noauth +norpc +reconnection +resumable +subprotocol +virtualized +webhooks