Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 3aadb8c

Browse files
authored
1.1.2 Release
* Updated packages * Remove check only PHP option * Remove JS sniff and minor style fix * Update callback to sniff only PHP and remove test folder in theme if exists * Added regex check for node modules, vendor and test folders in the theme, and remove them prior to sniffing to avoid memory issues. * Update version number
1 parent e723132 commit 3aadb8c

File tree

9 files changed

+237
-274
lines changed

9 files changed

+237
-274
lines changed

assets/dev/scripts/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ $(
3333
const warningHide = $( 'input[name=hide_warning]' ).is( ':checked' );
3434
const outputRaw = $( 'input[name=raw_output]' ).is( ':checked' );
3535
const ignoreAnnotations = $( 'input[name=ignore_annotations]' ).is( ':checked' );
36-
const checkPhpOnly = $( 'input[name=check_php_only]' ).is( ':checked' );
3736
const minPHPVersion = $( 'select[name=minimum_php_version]' ).val();
3837
const themePrefixes = $( 'input[name=theme_prefixes]' ).val();
3938

4039
const selectedRulesets = $( 'input[name="selected_ruleset[]"]:checked' ).map( ( ind, el ) => el.value ).toArray();
4140

4241
themeSniffer.enableAjax();
43-
themeSniffer.themeCheckRunPHPCS( theme, warningHide, outputRaw, ignoreAnnotations, checkPhpOnly, minPHPVersion, selectedRulesets, themePrefixes );
42+
themeSniffer.themeCheckRunPHPCS( theme, warningHide, outputRaw, ignoreAnnotations, minPHPVersion, selectedRulesets, themePrefixes );
4443
}
4544
);
4645

assets/dev/scripts/theme-sniffer.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import $ from 'jquery';
44
import {ajax} from './utils/ajax';
55

66
import Clipboard from 'clipboard';
7-
import SniffJs from './utils/sniff-js';
87

98
export default class ThemeSniffer {
109
constructor( options ) {
@@ -170,14 +169,13 @@ export default class ThemeSniffer {
170169
}
171170
}
172171

173-
themeCheckRunPHPCS( theme, warningHide, outputRaw, ignoreAnnotations, checkPhpOnly, minPHPVersion, selectedRulesets, themePrefixes ) {
172+
themeCheckRunPHPCS( theme, warningHide, outputRaw, ignoreAnnotations, minPHPVersion, selectedRulesets, themePrefixes ) {
174173

175174
const snifferRunData = {
176175
themeName: theme,
177176
hideWarning: warningHide,
178177
rawOutput: outputRaw,
179178
ignoreAnnotations: ignoreAnnotations,
180-
checkPhpOnly: checkPhpOnly,
181179
minimumPHPVersion: minPHPVersion,
182180
wpRulesets: selectedRulesets,
183181
themePrefixes: themePrefixes,
@@ -217,10 +215,6 @@ export default class ThemeSniffer {
217215

218216
for ( let file of response.files ) {
219217
( async() => {
220-
if ( file.filePath.substr( file.filePath.length - 3 ) === '.js' ) {
221-
let sniffer = new SniffJs( file );
222-
file = await sniffer.process();
223-
}
224218
this.$sniffReport.append( this.renderJSON( file ) );
225219
})( file );
226220
}

assets/dev/styles/components/_admin-screen.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353

5454
&::before {
5555
font-size: 32px !important;
56+
margin: 0.2125rem 0 0 0.05rem !important;
5657
}
5758
}
5859

0 commit comments

Comments
 (0)