Permalink
Browse files

A little bit more space after commas and operators

  • Loading branch information...
kuba-kubula committed Feb 19, 2015
1 parent 7b76e69 commit ef1e110579eeabb1925c0013f085fb0241c75fc0
View
@@ -23,7 +23,7 @@
"level": "error"
},
"empty_constructor_needs_parens": {
"level": "warn"
"level": "ignore"
},
"ensure_comprehensions": {
"level": "warn"
@@ -46,7 +46,7 @@
},
"newlines_after_classes": {
"value": 3,
"level": "ignore"
"level": "warn"
},
"no_backticks": {
"level": "error"
@@ -69,13 +69,13 @@
"level": "ignore"
},
"no_interpolation_in_single_quotes": {
"level": "ignore"
"level": "warn"
},
"no_plusplus": {
"level": "ignore"
},
"no_stand_alone_at": {
"level": "ignore"
"level": "warn"
},
"no_tabs": {
"level": "error"
@@ -89,7 +89,7 @@
"no_trailing_whitespace": {
"level": "error",
"allowed_in_comments": false,
"allowed_in_empty_lines": true
"allowed_in_empty_lines": false
},
"no_unnecessary_double_quotes": {
"level": "ignore"
@@ -98,17 +98,17 @@
"level": "warn"
},
"non_empty_constructor_needs_parens": {
"level": "ignore"
"level": "warn"
},
"prefer_english_operator": {
"level": "ignore",
"doubleNotLevel": "ignore"
},
"space_operators": {
"level": "ignore"
"level": "error"
},
"spacing_after_comma": {
"level": "ignore"
"level": "warn"
},
"transform_messes_up_line_numbers": {
"level": "warn"
@@ -16,7 +16,7 @@ applyConfiguration = (config) ->
configuration =
blueprintPath: null
server: null
emitter: new EventEmitter()
emitter: new EventEmitter
options:
'dry-run': false
silent: false
@@ -46,7 +46,7 @@ configureReporters = (config, stats, tests) ->
when 'apiary'
apiaryReporter = new ApiaryReporter(emitter, stats, tests)
else
logger.warn 'Invalid reporter #{reporter} selected, ignoring.'
logger.warn "Invalid reporter #{reporter} selected, ignoring."
addCli(reporters) if not config.options.silent
@@ -5,9 +5,9 @@ convertAstMetadata = (metadata) ->
dupItem = JSON.parse(JSON.stringify(item))
name = dupItem['name']
delete dupItem['name']
result[name] = dupItem
result
module.exports = convertAstMetadata
module.exports = convertAstMetadata
@@ -159,7 +159,7 @@ class ApiaryReporter
path: path
method: method
headers:
'User-Agent': "Dredd REST Reporter/" + packageConfig['version'] + " ("+ system + ")"
'User-Agent': "Dredd REST Reporter/" + packageConfig['version'] + " (" + system + ")"
'Content-Type': 'application/json'
unless @configuration['apiToken'] == null
@@ -36,7 +36,7 @@ class TransactionRunner
addHooks {}, transactions, @configuration.emitter
@executeAllTransactions(transactions,callback)
@executeAllTransactions(transactions, callback)
configureTransaction: (transaction, callback) =>
configuration = @configuration
@@ -52,7 +52,7 @@ class TransactionRunner
if parsedUrl['path'] is "/"
fullPath = request['uri']
else
fullPath = '/' + [parsedUrl['path'].replace(/^\/|\/$/g,""), request['uri'].replace(/^\/|\/$/g,"")].join("/")
fullPath = '/' + [parsedUrl['path'].replace(/^\/|\/$/g, ""), request['uri'].replace(/^\/|\/$/g, "")].join("/")
flatHeaders = flattenHeaders request['headers']
@@ -61,7 +61,7 @@ class TransactionRunner
system = os.type() + ' ' + os.release() + '; ' + os.arch()
flatHeaders['User-Agent'] = "Dredd/" + \
packageConfig['version'] + \
" ("+ system + ")"
" (" + system + ")"
if configuration.options.header.length > 0
for header in configuration.options.header

0 comments on commit ef1e110

Please sign in to comment.