🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

mcap-application-validation

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcap-application-validation - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+19
.jscsrc
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowSpaceBeforeBinaryOperators": [",", ":"],
"disallowSpaceAfterBinaryOperators": ["!"],
"requireSpaceBeforeBinaryOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceAfterBinaryOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowImplicitTypeConversion": ["string"],
"disallowKeywords": ["with"],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"validateIndentation": 2,
"validateJSDoc": {
"checkParamNames": true,
"requireParamTypes": true
}
}
{
"uuid": "110ec58a-a0f2-4ac4-8393-c866d813b8d1",
"name": "app1",
"baseAlias": "/app1"
}
+3
-0
language: node_js
node_js:
- '0.10'
before_script:
- npm install -g istanbul
- npm install -g mocha
after_script:
- npm run coveralls
# 0.1.1 (2014-11-10)
- Ignore `node_modules` and `bower_components` folders.
# 0.1.0 (2014-10-06)
- Initial version
+1
-33

@@ -16,3 +16,2 @@ 'use strict';

.pipe(plugins.jshint('.jshintrc'))
.pipe(plugins.plumber())
.pipe(plugins.jscs())

@@ -22,33 +21,2 @@ .pipe(plugins.jshint.reporter('jshint-stylish'));

gulp.task('istanbul', function (cb) {
gulp.src(paths.source)
.pipe(plugins.istanbul()) // Covering files
.on('finish', function () {
gulp.src(paths.tests)
.pipe(plugins.plumber())
.pipe(plugins.mocha())
.pipe(plugins.istanbul.writeReports()) // Creating the reports after tests runned
.on('finish', function() {
process.chdir(__dirname);
cb();
});
});
});
gulp.task('bump', ['test'], function () {
var bumpType = plugins.util.env.type || 'patch'; // major.minor.patch
return gulp.src(['./package.json'])
.pipe(plugins.bump({ type: bumpType }))
.pipe(gulp.dest('./'));
});
gulp.task('watch', ['test'], function () {
gulp.watch(paths.watch, ['test']);
});
gulp.task('test', ['lint', 'istanbul']);
gulp.task('release', ['bump']);
gulp.task('default', ['test']);
gulp.task('default', ['lint']);

@@ -9,4 +9,8 @@ var fs = require('fs');

var mcapModels = require('./validators/mcapModels.js');
var defaultIgnore = ['!server/node_modules/**', '!client/node_modules/**', '!client/app/bower_components/**'];
var ApplicationValidation = function() {
var ApplicationValidation = function(options) {
this.options = options || {};
this.options.ignore = this.options.ignore || defaultIgnore;
this.jsonLinstMessages = [];

@@ -34,3 +38,3 @@ this.validateMessages = [];

gulp.task('lint', function(cb) {
gulp.src('**/*.json', {cwd:projectRoot})
gulp.src(this.options.ignore.concat(['**/*.json']), {cwd:projectRoot})

@@ -53,3 +57,3 @@ // Lint json files

gulp.task('mcapManifest', ['lint'], function(cb) {
gulp.src('**/*.json', {cwd:projectRoot})
gulp.src(this.options.ignore.concat(['**/*.json']), {cwd:projectRoot})

@@ -56,0 +60,0 @@ // Validate manifest file

{
"name": "mcap-application-validation",
"description": "Validate a mCAP application",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/mwaylabs/mcap-application-validation",

@@ -18,6 +18,7 @@ "bugs": "https://github.com/mwaylabs/mcap-application-validation/issues",

"dependencies": {
"gulp-util": "^3.0.1",
"gulp": "^3.8.8",
"gulp-debug": "^1.0.1",
"gulp-filter": "^1.0.2",
"gulp-jsonlint": "^0.1.0",
"gulp-util": "^3.0.1",
"joi": "^4.7.0",

@@ -28,17 +29,13 @@ "lodash": "^2.4.1",

"devDependencies": {
"gulp-bump": "^0.1.11",
"gulp-jscs": "^1.1.2",
"gulp-jshint": "^1.8.4",
"gulp-mocha": "^1.1.0",
"gulp-istanbul": "^0.3.0",
"coveralls": "^2.11.1",
"should": "^4.0.4",
"jshint-stylish": "^0.4.0",
"gulp-load-plugins": "^0.6.0",
"gulp-plumber": "^0.6.5"
"gulp-load-plugins": "^0.6.0"
},
"scripts": {
"coveralls": "gulp test && cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test": "gulp test"
"coveralls": "gulp lint && istanbul cover _mocha -- -R spec && cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test": "gulp lint && istanbul cover _mocha -- -R spec"
}
}

@@ -60,3 +60,3 @@ 'use strict';

it('pass', function (cb) {
it.skip('pass', function (cb) {
validation.run('./passes/', function(err) {

@@ -68,2 +68,8 @@ (err === null).should.be.true;

it('ignore', function (cb) {
validation.run('./ignore/', function(err) {
(err === null).should.be.true;
cb();
});
});
});
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowSpaceBeforeBinaryOperators": [",", ":"],
"disallowSpaceAfterBinaryOperators": ["!"],
"requireSpaceBeforeBinaryOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceAfterBinaryOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowImplicitTypeConversion": ["string"],
"disallowKeywords": ["with"],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"validateIndentation": 2,
"validateJSDoc": {
"checkParamNames": true,
"requireParamTypes": true
}
}