Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions personalos.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php //phpcs:disable WordPress.Files.FileName.InvalidClassFileName

// THIS SHOULD FAIL LINTING - wrong array syntax and spacing
$test_array = ['foo','bar'];

Check failure on line 4 in personalos.php

View workflow job for this annotation

GitHub Actions / lint-php

Missing space before array closer.

Check failure on line 4 in personalos.php

View workflow job for this annotation

GitHub Actions / lint-php

Expected 1 space between comma and "'bar'"; 0 found

Check failure on line 4 in personalos.php

View workflow job for this annotation

GitHub Actions / lint-php

Short array syntax is not allowed

Check failure on line 4 in personalos.php

View workflow job for this annotation

GitHub Actions / lint-php

Missing space after array opener.

/**
* Plugin Name: Personal OS
* Description: Manage your life.
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// THIS SHOULD FAIL LINTING - unused variable and double quotes
const unusedVariable = "test";

Check failure on line 2 in src/index.js

View workflow job for this annotation

GitHub Actions / lint-js

Replace `"test"` with `'test'`

Check failure on line 2 in src/index.js

View workflow job for this annotation

GitHub Actions / lint-js

'unusedVariable' is assigned a value but never used
import { registerPlugin } from '@wordpress/plugins';
import NotesPlugin from './notes/plugin';
import './notebooks/notebooks';
Expand Down
Loading