GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (81a8a0)
by Vincent
02:52
created

gulp/tasks/js.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 22
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
nc 1
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A module.exports 0 18 1
1
'use strict';
2
3
var uglify = require('gulp-uglify');
4
5
module.exports = function (gulp, paths, plugins, options) {
6
    return function () {
7
        var bundleStream = plugins.browserify({
8
            entries: paths.SRC_PATH + 'js/main.js',
9
            debug: true
10
        }).transform(plugins.babelify, {presets: ["es2015"]}).bundle();
11
12
        return bundleStream
13
            .on('error', plugins.interceptErrors)
14
            .pipe(plugins.source('main.js'))
15
            .pipe(plugins.buffer())
16
            .pipe(plugins.if(!options.production, plugins.sourcemaps.init({loadMaps: true})))
17
            .pipe(plugins.if(options.production, uglify()))
18
            .pipe(plugins.if(!options.production, plugins.sourcemaps.write('./')))
19
            .pipe(gulp.dest(paths.THEME_PATH + 'dist/js/'))
20
            .pipe(plugins.browserSync.reload({stream: true}))
21
    };
22
};