Disallow trailing whitespace
// FREEBIE
This commit is contained in:
parent
18e9ded296
commit
b09cb228f7
3 changed files with 17 additions and 4 deletions
5
.jscsrc
5
.jscsrc
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"disallowMixedSpacesAndTabs": true
|
||||
}
|
||||
"disallowMixedSpacesAndTabs": true,
|
||||
"disallowTrailingWhitespace": true
|
||||
}
|
||||
|
|
14
Gruntfile.js
14
Gruntfile.js
|
@ -134,7 +134,15 @@ module.exports = function(grunt) {
|
|||
},
|
||||
jscs: {
|
||||
all: {
|
||||
src: ['js/**/*.js', '!js/libtextsecure.js', '!js/libaxolotl-worker.js', '!js/components.js', 'test/**/*.js']
|
||||
src: [
|
||||
'Gruntfile',
|
||||
'js/**/*.js',
|
||||
'!js/libtextsecure.js',
|
||||
'!js/libaxolotl-worker.js',
|
||||
'!js/components.js',
|
||||
'test/**/*.js',
|
||||
'!test/blanket_mocha.js',
|
||||
]
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -142,6 +150,10 @@ module.exports = function(grunt) {
|
|||
files: ['<%= jshint.files %>', './js/**/*.js'],
|
||||
tasks: ['jshint']
|
||||
},
|
||||
style: {
|
||||
files: ['<%= jscs.all.src %>', './js/**/*.js'],
|
||||
tasks: ['jscs']
|
||||
},
|
||||
sass: {
|
||||
files: ['./stylesheets/*.scss'],
|
||||
tasks: ['sass']
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
message = messages.add({type: 'incoming'});
|
||||
assert.ok(message.isIncoming());
|
||||
});
|
||||
|
||||
|
||||
it('checks if is outgoing message', function() {
|
||||
var messages = new Whisper.MessageCollection();
|
||||
var message = messages.add(attributes);
|
||||
|
|
Loading…
Reference in a new issue