Skip to content

Commit 5b335bf

Browse files
committed
fixes
1 parent 2dd0ca7 commit 5b335bf

File tree

7 files changed

+16
-24
lines changed

7 files changed

+16
-24
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
uses: actions/upload-artifact@v4
143143
if: success()
144144
with:
145-
name: coverage-pilot-ruby3.4-rails8.0
145+
name: coverage-ruby3.4-rails8.0
146146
path: site/public/coverage/
147147
retention-days: 5
148148

site/app/docs/integrations/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,15 @@ end`}
311311
<h2 className="text-2xl font-bold mt-10 mb-4">Host Authorization</h2>
312312
<p className="text-neutral-600 dark:text-neutral-400 mb-4">
313313
This integration adds structured logging for blocked host attempts when
314-
using Rails' host authorization feature, helping you detect potential
315-
security issues.
314+
using Rails&apos; host authorization feature, helping you detect
315+
potential security issues.
316316
</p>
317317

318318
<h2 className="text-2xl font-bold mt-10 mb-4">Sorbet Integration</h2>
319319
<p className="text-neutral-600 dark:text-neutral-400 mb-4">
320320
LogStruct integrates with Sorbet to handle type checking errors
321-
appropriately based on the environment, using the "fail hard in
322-
development, fail soft in production" philosophy.
321+
appropriately based on the environment, using the &quot;fail hard in
322+
development, fail soft in production&quot; philosophy.
323323
</p>
324324

325325
<div className="rounded-lg bg-neutral-100 p-4 dark:bg-neutral-900">

site/app/docs/type-safety/page.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ LogStruct::ErrorHandlingMode::Raise # Always raise errors`}
174174
Adding Sorbet to Your Application
175175
</h2>
176176
<p className="text-neutral-600 dark:text-neutral-400 mb-4">
177-
To fully utilize LogStruct's type safety features, you should add Sorbet
178-
to your application:
177+
To fully utilize LogStruct&apos;s type safety features, you should add
178+
Sorbet to your application:
179179
</p>
180180

181181
<div className="rounded-lg bg-neutral-100 p-4 dark:bg-neutral-900">
@@ -203,7 +203,7 @@ bundle exec srb init`}
203203

204204
<h2 className="text-2xl font-bold mt-10 mb-4">Benefits of Type Safety</h2>
205205
<p className="text-neutral-600 dark:text-neutral-400 mb-4">
206-
Using LogStruct's typed structures provides several benefits:
206+
Using LogStruct&apos;s typed structures provides several benefits:
207207
</p>
208208

209209
<ul className="list-disc list-inside space-y-2 text-neutral-600 dark:text-neutral-400">
@@ -223,8 +223,7 @@ bundle exec srb init`}
223223
</h2>
224224
<p className="text-neutral-600 dark:text-neutral-400 mb-4">
225225
LogStruct installs appropriate error handlers for Sorbet type checking
226-
errors, following the "fail hard in development, fail soft in
227-
production" philosophy:
226+
errors.
228227
</p>
229228

230229
<div className="rounded-lg bg-neutral-100 p-4 dark:bg-neutral-900">
@@ -254,8 +253,8 @@ end`}
254253
Creating Custom Log Structures
255254
</h2>
256255
<p className="text-neutral-600 dark:text-neutral-400 mb-4">
257-
You can create your own typed log structures by extending LogStruct's
258-
base classes:
256+
You can create your own typed log structures by extending
257+
LogStruct&apos;s base classes:
259258
</p>
260259

261260
<div className="rounded-lg bg-neutral-100 p-4 dark:bg-neutral-900">

site/components/main-nav.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use client';
22

33
import Link from 'next/link';
4-
import { useState } from 'react';
54
import { usePathname } from 'next/navigation';
6-
import { Menu, X } from 'lucide-react';
5+
import { Menu } from 'lucide-react';
76
import {
87
NavigationMenu,
98
NavigationMenuContent,

site/components/site-footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from '@/components/ui/dropdown-menu';
1313

1414
function ThemeToggle() {
15-
const { setTheme, theme } = useTheme();
15+
const { setTheme } = useTheme();
1616

1717
return (
1818
<DropdownMenu>

site/lib/log-generation/__tests__/log-generator.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import { LogGenerator } from '../log-generator';
2-
import {
3-
LogType,
4-
LogLevel,
5-
Source,
6-
LogEvent,
7-
ActiveJobLog,
8-
} from '../log-types';
2+
import { LogType, LogLevel, Source, LogEvent } from '../log-types';
93

104
describe('LogGenerator', () => {
115
let generator: LogGenerator;

site/lib/log-generation/__tests__/random-data-generator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('RandomDataGenerator', () => {
7070
});
7171

7272
test('should generate filtered hash objects', () => {
73-
const filteredHash = generator.filteredHash('password') as any;
73+
const filteredHash = generator.filteredHash('password');
7474

7575
expect(filteredHash).toHaveProperty('_filtered');
7676
expect(filteredHash._filtered).toHaveProperty('_class', 'Hash');
@@ -83,7 +83,7 @@ describe('RandomDataGenerator', () => {
8383
});
8484

8585
test('should generate filtered array objects', () => {
86-
const filteredArray = generator.filteredArray(5) as any;
86+
const filteredArray = generator.filteredArray(5);
8787

8888
expect(filteredArray).toHaveProperty('_filtered');
8989
expect(filteredArray._filtered).toHaveProperty('_class', 'Array');

0 commit comments

Comments
 (0)