-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
12,611 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
inc/vendor | ||
.vscode/ | ||
.idea/ | ||
.DS_Store | ||
debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress Coding Standards" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> | ||
|
||
<description>The Coding standard for the WordPress Coding Standards itself.</description> | ||
|
||
<file>.</file> | ||
|
||
<arg value="sp"/> | ||
<arg name="extensions" value="php"/> | ||
<arg name="basepath" value="."/> | ||
<arg name="parallel" value="8"/> | ||
|
||
<exclude-pattern>/bin/class-ruleset-test.php</exclude-pattern> | ||
<!-- Exclude Composer vendor directory. --> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
|
||
<rule ref="WordPress"> | ||
<exclude name="WordPress.Files.FileName"/> | ||
<exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/> | ||
<exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped"/> | ||
<exclude name="Generic.Commenting.DocComment.MissingShort"/> | ||
</rule> | ||
|
||
<!-- Enforce PSR1 compatible namespaces. --> | ||
<rule ref="PSR1.Classes.ClassDeclaration"/> | ||
|
||
<rule ref="WordPress.Arrays.MultipleStatementAlignment"> | ||
<properties> | ||
<property name="alignMultilineItems" value="!=100"/> | ||
<property name="exact" value="false" phpcs-only="true"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="PSR2.Methods.FunctionClosingBrace"/> | ||
|
||
<!-- Check code for cross-version PHP compatibility. --> | ||
<config name="testVersion" value="5.4-"/> | ||
|
||
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.DeprecatedWhitelistCommentFound"> | ||
<!-- False positive for whitelist comment recognition, but no use fixing this now | ||
as the WPCS native whitelist comments are deprecated anyhow. --> | ||
<exclude-pattern>/WordPress/AbstractClassRestrictionsSniff\.php$</exclude-pattern> | ||
</rule> | ||
|
||
</ruleset> |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "smartcat/wordpress-smartcat-connector", | ||
"description": "WordPress integration to smartCAT", | ||
"minimum-stability": "stable", | ||
"license": "GPLv3", | ||
"type": "wordpress-plugin", | ||
"authors": [ | ||
{ | ||
"name": "Andrey Rybnikov", | ||
"email": "a.rybnikov@smartcat.pro" | ||
}, | ||
{ | ||
"name": "Dmitriy Khapenkov", | ||
"email": "d.khapenkov@smartcat.pro" | ||
} | ||
], | ||
"config": { | ||
"vendor-dir": "inc/vendor" | ||
}, | ||
"require": { | ||
"php": ">=7.0.0", | ||
"ext-dom": "*", | ||
"ext-openssl": "*", | ||
"a5hleyrich/wp-background-processing": "^1.0", | ||
"symfony/config": "^3.3", | ||
"symfony/dependency-injection": "^3.3", | ||
"mustache/mustache": "^2.12", | ||
"smartcat/smartcat-api": "^2.0", | ||
"symfony/yaml": "^3.4" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"SmartCAT\\WP\\": "inc/smartcat" | ||
} | ||
} | ||
} |
Oops, something went wrong.