This repository has been archived by the owner on Oct 1, 2021. It is now read-only.
-
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
1 parent
21b9924
commit df34c03
Showing
7 changed files
with
137 additions
and
13 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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# Build | ||
/build | ||
/build/ | ||
|
||
# Composer | ||
/vendor | ||
composer.lock | ||
/vendor/ | ||
|
||
# Eclipse | ||
.buildpath | ||
.project | ||
.settings | ||
/.buildpath | ||
/.project | ||
/.settings | ||
|
||
# Node.js | ||
/node_modules/ |
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,54 @@ | ||
module.exports = function( grunt ) { | ||
// Project configuration. | ||
grunt.initConfig( { | ||
// Package | ||
pkg: grunt.file.readJSON( 'package.json' ), | ||
|
||
// JSHint | ||
jshint: { | ||
all: [ 'Gruntfile.js', 'composer.json', 'package.json' ] | ||
}, | ||
|
||
// PHP Code Sniffer | ||
phpcs: { | ||
application: { | ||
dir: [ './' ], | ||
}, | ||
options: { | ||
standard: 'phpcs.ruleset.xml', | ||
extensions: 'php', | ||
ignore: 'node_modules' | ||
} | ||
}, | ||
|
||
// PHPLint | ||
phplint: { | ||
options: { | ||
phpArgs: { | ||
'-lf': null | ||
} | ||
}, | ||
all: [ '**/*.php' ] | ||
}, | ||
|
||
// PHP Mess Detector | ||
phpmd: { | ||
application: { | ||
dir: '.' | ||
}, | ||
options: { | ||
exclude: 'node_modules', | ||
reportFormat: 'xml', | ||
rulesets: 'phpmd.ruleset.xml' | ||
} | ||
}, | ||
} ); | ||
|
||
grunt.loadNpmTasks( 'grunt-contrib-jshint' ); | ||
grunt.loadNpmTasks( 'grunt-phpcs' ); | ||
grunt.loadNpmTasks( 'grunt-phplint' ); | ||
grunt.loadNpmTasks( 'grunt-phpmd' ); | ||
|
||
// Default task(s). | ||
grunt.registerTask( 'default', [ 'jshint', 'phplint', 'phpmd', 'phpcs' ] ); | ||
}; |
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
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,41 @@ | ||
{ | ||
"name": "omnikassa", | ||
"version": "1.0.0", | ||
"description": "OmniKassa driver for the WordPress payment processing library.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wp-pay-gateways/omnikassa" | ||
}, | ||
"keywords": [ | ||
"wordpress", | ||
"wp", | ||
"pay", | ||
"omnikassa", | ||
"gateway", | ||
"pronamic" | ||
], | ||
"author": { | ||
"name": "Pronamic", | ||
"email": "info@pronamic.nl", | ||
"url": "http://www.pronamic.nl/" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Remco Tolsma", | ||
"email": "info@remcotolsma.nl", | ||
"url": "http://www.remcotolsma.nl/" | ||
} | ||
], | ||
"license": "GPL", | ||
"bugs": { | ||
"url": "https://github.com/wp-pay-gateways/omnikassa/issues" | ||
}, | ||
"homepage": "http://www.wp-pay.org/gateways/omnikassa/", | ||
"devDependencies": { | ||
"grunt": "~0.4.5", | ||
"grunt-phplint": "0.0.5", | ||
"grunt-phpmd": "^0.1.0", | ||
"grunt-phpcs": "^0.2.3", | ||
"grunt-contrib-jshint": "^0.10.0" | ||
} | ||
} |
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,6 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPress Pay OmniKassa rules"> | ||
<rule ref="WordPress"> | ||
|
||
</rule> | ||
</ruleset> |
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,22 @@ | ||
<?xml version="1.0"?> | ||
|
||
<ruleset name="WordPress Pay OmniKassa rules" | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
> | ||
<rule ref="rulesets/cleancode.xml"> | ||
<exclude name="StaticAccess" /> | ||
</rule> | ||
|
||
<rule ref="rulesets/codesize.xml" /> | ||
|
||
<rule ref="rulesets/design.xml" /> | ||
|
||
<rule ref="rulesets/naming.xml" /> | ||
|
||
<rule ref="rulesets/unusedcode.xml"> | ||
<exclude name="UnusedFormalParameter" /> | ||
</rule> | ||
</ruleset> |
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