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
12 changes: 12 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Lint

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
Comment on lines +4 to +5

jobs:
lint:
# PILOT: points at the unmerged branch; switch to @master once themegrill/workflows#2 merges.
uses: themegrill/workflows/.github/workflows/lint.yml@add-shared-lint
with:
php-version: '7.4'
41 changes: 0 additions & 41 deletions .github/workflows/phpcs.yml

This file was deleted.

2 changes: 2 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

<?php
/**
* flash_before_body_content hook

Check failure on line 14 in 404.php

View workflow job for this annotation

GitHub Actions / lint / Lint changed files

Doc comment short description must start with a capital letter
*/
do_action( 'flash_before_body_content' ); ?>

Check failure on line 16 in 404.php

View workflow job for this annotation

GitHub Actions / lint / Lint changed files

Closing PHP tag must be on a line by itself

<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
Expand Down Expand Up @@ -44,11 +44,13 @@

<?php
/**
* flash_after_body_content hook

Check failure on line 47 in 404.php

View workflow job for this annotation

GitHub Actions / lint / Lint changed files

Doc comment short description must start with a capital letter
*/
do_action( 'flash_after_body_content' ); ?>

Check failure on line 49 in 404.php

View workflow job for this annotation

GitHub Actions / lint / Lint changed files

Closing PHP tag must be on a line by itself

<?php
get_sidebar();
get_sidebar( 'left' );
get_footer();

// Pilot test: harmless change to trigger the lint workflow.
2 changes: 2 additions & 0 deletions js/color-scheme-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Also trigger an update of the Color Scheme CSS when a color is changed.
*/

( function( api ) {

Check failure on line 7 in js/color-scheme-control.js

View workflow job for this annotation

GitHub Actions / lint / Lint changed files

Move the invocation into the parens that contain the function
var cssTemplate = wp.template( 'flash-color-scheme' ),
colorSchemeKeys = [
'background_color',
Expand Down Expand Up @@ -70,7 +70,7 @@

// Add additional color.
// jscs:disable
colors.border_color = Color( colors.main_text_color ).toCSS( 'rgba', 0.2 );

Check failure on line 73 in js/color-scheme-control.js

View workflow job for this annotation

GitHub Actions / lint / Lint changed files

Identifier 'border_color' is not in camel case
// jscs:enable

css = cssTemplate( colors );
Expand All @@ -85,3 +85,5 @@
} );
} );
} )( wp.customize );

// Pilot test.
Loading