New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-rb-validate-js

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rb-validate-js - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

21

index.js

@@ -22,4 +22,4 @@ /*jslint node: true*/

if (mistake.length > 80) {
mistake = mistake.substr(0, 80) + "...";
if (mistake.length > 60) {
mistake = mistake.substr(0, 60) + "...";
} else if (mistake.length === 0) {

@@ -33,6 +33,6 @@ mistake = '[whitespace only]';

if (abort) {
gutil.log('[' + guideline + '] ' + gutil.colors.white(tag + ": ") + gutil.colors.red(mistake) + " [Level: RED]");
gutil.log('[' + guideline + '] ' + gutil.colors.white(tag + ": ") + gutil.colors.red(mistake) + " [Level Red]");
errorBreak = true;
} else {
gutil.log('[' + guideline + '] ' + gutil.colors.white(tag + ": ") + gutil.colors.yellow(mistake));
gutil.log('[' + guideline + '] ' + gutil.colors.white(tag + ": ") + gutil.colors.yellow(mistake) + " [Level Orange]");
}

@@ -75,3 +75,3 @@ }

if (area.length > 0) {
validationError('Wrong indentation on line ' + count, line, 'CI-FE-4001', false);
validationError('Wrong indentation (line ' + count + '). Use auto formatter', line, 'CI-FE-4001', false);
}

@@ -126,3 +126,8 @@ }

} else if (node.id.name && !isLowerCamelCase(node.id.name)) {
validationError('Function names must be lower camel case', node.id.name, 'CI-FE-4003', true);
if (isUpperCamelCase(node.id.name)) {
validationError('Function names must be lower camel case (Exception if constructor)', node.id.name, 'CI-FE-4003', false);
} else {
validationError('Function names must be lower camel case', node.id.name, 'CI-FE-4003', true);
}
}

@@ -228,4 +233,4 @@ }

gutil.log(gutil.colors.cyan("File: " + file.path));
if (options.abortOnError && errorBreak) {
gutil.log(gutil.colors.red("Critical validation error -> ABORT"));
if (options.exitOnError && errorBreak) {
gutil.log(gutil.colors.red("Critical validation error -> EXIT") + " (exitOnError is active)");
process.exit(1);

@@ -232,0 +237,0 @@ }

{
"name": "gulp-rb-validate-js",
"version": "0.0.6",
"version": "0.0.7",
"description": "Gulp plugin to validate JS files according to Web Frontend Guidelines",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc