Browse Source

Remove all leading newlines in files

pull/1111/head
Julian Simioni 7 years ago
parent
commit
204f5297de
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 1
      controller/markdownToHtml.js
  2. 1
      helper/geojsonify.js
  3. 1
      middleware/404.js
  4. 1
      middleware/changeLanguage.js
  5. 1
      middleware/cors.js
  6. 1
      middleware/jsonp.js
  7. 1
      middleware/options.js
  8. 1
      middleware/requestLanguage.js
  9. 1
      query/autocomplete_defaults.js
  10. 1
      query/reverse_defaults.js
  11. 1
      query/search.js
  12. 1
      query/search_defaults.js
  13. 1
      query/search_original.js
  14. 1
      query/text_parser_addressit.js
  15. 1
      query/view/boost_exact_matches.js
  16. 1
      query/view/focus_selected_layers.js
  17. 1
      query/view/ngrams_last_token_only.js
  18. 1
      query/view/ngrams_strict.js
  19. 1
      query/view/phrase_first_tokens_only.js
  20. 1
      query/view/pop_subquery.js
  21. 1
      sanitizer/_single_scalar_parameters.js
  22. 1
      sanitizer/_tokenizer.js
  23. 1
      sanitizer/place.js
  24. 1
      sanitizer/reverse.js
  25. 1
      sanitizer/wrap.js
  26. 1
      service/configurations/Interpolation.js
  27. 1
      service/configurations/Language.js
  28. 1
      service/configurations/Libpostal.js
  29. 1
      service/configurations/PlaceHolder.js
  30. 1
      service/configurations/PointInPolygon.js
  31. 1
      service/mget.js
  32. 1
      service/search.js
  33. 1
      test/ciao_test_data.js
  34. 1
      test/unit/app.js
  35. 1
      test/unit/controller/coarse_reverse.js
  36. 1
      test/unit/controller/index.js
  37. 1
      test/unit/controller/libpostal.js
  38. 1
      test/unit/controller/place.js
  39. 1
      test/unit/controller/placeholder.js
  40. 1
      test/unit/controller/predicates/has_parsed_text_properties.js
  41. 1
      test/unit/controller/predicates/has_request_errors.js
  42. 1
      test/unit/controller/predicates/has_request_parameter.js
  43. 1
      test/unit/controller/predicates/has_response_data.js
  44. 1
      test/unit/controller/predicates/has_results_at_layers.js
  45. 1
      test/unit/controller/predicates/is_addressit_parse.js
  46. 1
      test/unit/controller/predicates/is_admin_only_analysis.js
  47. 1
      test/unit/controller/predicates/is_coarse_reverse.js
  48. 1
      test/unit/controller/predicates/is_only_non_admin_layers.js
  49. 1
      test/unit/controller/predicates/is_request_sources_only_whosonfirst.js
  50. 1
      test/unit/controller/search.js
  51. 1
      test/unit/controller/search_with_ids.js
  52. 1
      test/unit/controller/structured_libpostal.js
  53. 1
      test/unit/fixture/autocomplete_boundary_country.js
  54. 1
      test/unit/fixture/autocomplete_linguistic_final_token.js
  55. 1
      test/unit/fixture/autocomplete_linguistic_focus.js
  56. 1
      test/unit/fixture/autocomplete_linguistic_focus_null_island.js
  57. 1
      test/unit/fixture/autocomplete_linguistic_multiple_tokens.js
  58. 1
      test/unit/fixture/autocomplete_linguistic_only.js
  59. 1
      test/unit/fixture/autocomplete_linguistic_with_admin.js
  60. 1
      test/unit/fixture/autocomplete_single_character_street.js
  61. 1
      test/unit/fixture/autocomplete_with_layer_filtering.js
  62. 1
      test/unit/fixture/autocomplete_with_source_filtering.js
  63. 1
      test/unit/fixture/search_boundary_country_original.js
  64. 1
      test/unit/fixture/search_linguistic_bbox_original.js
  65. 1
      test/unit/fixture/search_linguistic_focus_bbox_original.js
  66. 1
      test/unit/fixture/search_linguistic_focus_null_island_original.js
  67. 1
      test/unit/fixture/search_linguistic_focus_original.js
  68. 1
      test/unit/fixture/search_linguistic_only_original.js
  69. 1
      test/unit/fixture/search_partial_address_original.js
  70. 1
      test/unit/fixture/search_regions_address_original.js
  71. 1
      test/unit/fixture/search_with_source_filtering_original.js
  72. 1
      test/unit/middleware/changeLanguage.js
  73. 1
      test/unit/middleware/interpolate.js
  74. 1
      test/unit/middleware/localNamingConventions.js
  75. 1
      test/unit/middleware/requestLanguage.js
  76. 1
      test/unit/query/MockQuery.js
  77. 1
      test/unit/query/autocomplete_defaults.js
  78. 1
      test/unit/query/reverse_defaults.js
  79. 1
      test/unit/query/search_defaults.js
  80. 1
      test/unit/sanitizer/_geo_reverse.js
  81. 1
      test/unit/sanitizer/wrap.js
  82. 1
      test/unit/schema.js

1
controller/markdownToHtml.js

@ -1,4 +1,3 @@
var markdown = require('markdown').markdown; var markdown = require('markdown').markdown;
var fs = require('fs'); var fs = require('fs');

1
helper/geojsonify.js

@ -1,4 +1,3 @@
const GeoJSON = require('geojson'); const GeoJSON = require('geojson');
const extent = require('@mapbox/geojson-extent'); const extent = require('@mapbox/geojson-extent');
const logger = require('pelias-logger').get('geojsonify'); const logger = require('pelias-logger').get('geojsonify');

1
middleware/404.js

@ -1,4 +1,3 @@
// handle not found errors // handle not found errors
function middleware(req, res) { function middleware(req, res) {
res.header('Cache-Control','public'); res.header('Cache-Control','public');

1
middleware/changeLanguage.js

@ -1,4 +1,3 @@
var logger = require( 'pelias-logger' ).get( 'api' ); var logger = require( 'pelias-logger' ).get( 'api' );
const _ = require('lodash'); const _ = require('lodash');

1
middleware/cors.js

@ -1,4 +1,3 @@
function middleware(req, res, next){ function middleware(req, res, next){
res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET, OPTIONS'); res.header('Access-Control-Allow-Methods', 'GET, OPTIONS');

1
middleware/jsonp.js

@ -1,4 +1,3 @@
function middleware(req, res, next){ function middleware(req, res, next){
// store old json function // store old json function

1
middleware/options.js

@ -1,4 +1,3 @@
/** /**
this functionality is required by CORS as the browser will send an this functionality is required by CORS as the browser will send an
HTTP OPTIONS request before performing the CORS request. HTTP OPTIONS request before performing the CORS request.

1
middleware/requestLanguage.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const logger = require( 'pelias-logger' ).get( 'api' ); const logger = require( 'pelias-logger' ).get( 'api' );

1
query/autocomplete_defaults.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'); var peliasQuery = require('pelias-query');
var _ = require('lodash'); var _ = require('lodash');

1
query/reverse_defaults.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'); var peliasQuery = require('pelias-query');
var _ = require('lodash'); var _ = require('lodash');

1
query/search.js

@ -1,4 +1,3 @@
const peliasQuery = require('pelias-query'); const peliasQuery = require('pelias-query');
const defaults = require('./search_defaults'); const defaults = require('./search_defaults');
const textParser = require('./text_parser'); const textParser = require('./text_parser');

1
query/search_defaults.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'); var peliasQuery = require('pelias-query');
var _ = require('lodash'); var _ = require('lodash');

1
query/search_original.js

@ -1,4 +1,3 @@
const peliasQuery = require('pelias-query'); const peliasQuery = require('pelias-query');
const defaults = require('./search_defaults'); const defaults = require('./search_defaults');
const textParser = require('./text_parser_addressit'); const textParser = require('./text_parser_addressit');

1
query/text_parser_addressit.js

@ -1,4 +1,3 @@
var logger = require('pelias-logger').get('api'); var logger = require('pelias-logger').get('api');
var placeTypes = require('../helper/placeTypes'); var placeTypes = require('../helper/placeTypes');

1
query/view/boost_exact_matches.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'), var peliasQuery = require('pelias-query'),
searchDefaults = require('../search_defaults'); searchDefaults = require('../search_defaults');

1
query/view/focus_selected_layers.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'); var peliasQuery = require('pelias-query');
/** /**

1
query/view/ngrams_last_token_only.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'), var peliasQuery = require('pelias-query'),
ngrams_strict = require('./ngrams_strict'); ngrams_strict = require('./ngrams_strict');

1
query/view/ngrams_strict.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'); var peliasQuery = require('pelias-query');
/** /**

1
query/view/phrase_first_tokens_only.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'); var peliasQuery = require('pelias-query');
/** /**

1
query/view/pop_subquery.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'), var peliasQuery = require('pelias-query'),
check = require('check-types'); check = require('check-types');

1
sanitizer/_single_scalar_parameters.js

@ -1,4 +1,3 @@
var _ = require('lodash'), var _ = require('lodash'),
check = require('check-types'); check = require('check-types');

1
sanitizer/_tokenizer.js

@ -1,4 +1,3 @@
var check = require('check-types'); var check = require('check-types');
/** /**

1
sanitizer/place.js

@ -1,4 +1,3 @@
var sanitizeAll = require('../sanitizer/sanitizeAll'), var sanitizeAll = require('../sanitizer/sanitizeAll'),
sanitizers = { sanitizers = {
singleScalarParameters: require('../sanitizer/_single_scalar_parameters')(), singleScalarParameters: require('../sanitizer/_single_scalar_parameters')(),

1
sanitizer/reverse.js

@ -1,4 +1,3 @@
var type_mapping = require('../helper/type_mapping'); var type_mapping = require('../helper/type_mapping');
var sanitizeAll = require('../sanitizer/sanitizeAll'), var sanitizeAll = require('../sanitizer/sanitizeAll'),
sanitizers = { sanitizers = {

1
sanitizer/wrap.js

@ -1,4 +1,3 @@
/** /**
normalize co-ordinates that lie outside of the normal ranges. normalize co-ordinates that lie outside of the normal ranges.

1
service/configurations/Interpolation.js

@ -1,4 +1,3 @@
const url = require('url'); const url = require('url');
const _ = require('lodash'); const _ = require('lodash');

1
service/configurations/Language.js

@ -1,4 +1,3 @@
const url = require('url'); const url = require('url');
const _ = require('lodash'); const _ = require('lodash');

1
service/configurations/Libpostal.js

@ -1,4 +1,3 @@
const url = require('url'); const url = require('url');
const ServiceConfiguration = require('pelias-microservice-wrapper').ServiceConfiguration; const ServiceConfiguration = require('pelias-microservice-wrapper').ServiceConfiguration;

1
service/configurations/PlaceHolder.js

@ -1,4 +1,3 @@
const url = require('url'); const url = require('url');
const _ = require('lodash'); const _ = require('lodash');

1
service/configurations/PointInPolygon.js

@ -1,4 +1,3 @@
const url = require('url'); const url = require('url');
const _ = require('lodash'); const _ = require('lodash');

1
service/mget.js

@ -1,4 +1,3 @@
/** /**
query must be an array of hashes, structured like so: query must be an array of hashes, structured like so:

1
service/search.js

@ -1,4 +1,3 @@
/** /**
cmd can be any valid ES query command cmd can be any valid ES query command

1
test/ciao_test_data.js

@ -1,4 +1,3 @@
/** /**
Test data required by the ciao test suite. Test data required by the ciao test suite.

1
test/unit/app.js

@ -1,4 +1,3 @@
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
module.exports.tests = {}; module.exports.tests = {};

1
test/unit/controller/coarse_reverse.js

@ -1,4 +1,3 @@
const setup = require('../../../controller/coarse_reverse'); const setup = require('../../../controller/coarse_reverse');
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
const _ = require('lodash'); const _ = require('lodash');

1
test/unit/controller/index.js

@ -1,4 +1,3 @@
var setup = require('../../../controller/markdownToHtml'); var setup = require('../../../controller/markdownToHtml');
module.exports.tests = {}; module.exports.tests = {};

1
test/unit/controller/libpostal.js

@ -1,4 +1,3 @@
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
const libpostal = require('../../../controller/libpostal'); const libpostal = require('../../../controller/libpostal');
const _ = require('lodash'); const _ = require('lodash');

1
test/unit/controller/place.js

@ -1,4 +1,3 @@
const setup = require('../../../controller/place'); const setup = require('../../../controller/place');
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/placeholder.js

@ -1,4 +1,3 @@
const placeholder = require('../../../controller/placeholder'); const placeholder = require('../../../controller/placeholder');
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
const mock_logger = require('pelias-mock-logger'); const mock_logger = require('pelias-mock-logger');

1
test/unit/controller/predicates/has_parsed_text_properties.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const has_parsed_text_properties = require('../../../../controller/predicates/has_parsed_text_properties'); const has_parsed_text_properties = require('../../../../controller/predicates/has_parsed_text_properties');

1
test/unit/controller/predicates/has_request_errors.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const has_request_errors = require('../../../../controller/predicates/has_request_errors'); const has_request_errors = require('../../../../controller/predicates/has_request_errors');

1
test/unit/controller/predicates/has_request_parameter.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const has_request_parameter = require('../../../../controller/predicates/has_request_parameter'); const has_request_parameter = require('../../../../controller/predicates/has_request_parameter');

1
test/unit/controller/predicates/has_response_data.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const has_response_data = require('../../../../controller/predicates/has_response_data'); const has_response_data = require('../../../../controller/predicates/has_response_data');

1
test/unit/controller/predicates/has_results_at_layers.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const has_results_at_layers = require('../../../../controller/predicates/has_results_at_layers'); const has_results_at_layers = require('../../../../controller/predicates/has_results_at_layers');

1
test/unit/controller/predicates/is_addressit_parse.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const is_addressit_parse = require('../../../../controller/predicates/is_addressit_parse'); const is_addressit_parse = require('../../../../controller/predicates/is_addressit_parse');

1
test/unit/controller/predicates/is_admin_only_analysis.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const is_admin_only_analysis = require('../../../../controller/predicates/is_admin_only_analysis'); const is_admin_only_analysis = require('../../../../controller/predicates/is_admin_only_analysis');

1
test/unit/controller/predicates/is_coarse_reverse.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const is_coarse_reverse = require('../../../../controller/predicates/is_coarse_reverse'); const is_coarse_reverse = require('../../../../controller/predicates/is_coarse_reverse');

1
test/unit/controller/predicates/is_only_non_admin_layers.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const is_only_non_admin_layers = require('../../../../controller/predicates/is_only_non_admin_layers'); const is_only_non_admin_layers = require('../../../../controller/predicates/is_only_non_admin_layers');

1
test/unit/controller/predicates/is_request_sources_only_whosonfirst.js

@ -1,4 +1,3 @@
const _ = require('lodash'); const _ = require('lodash');
const is_request_sources_only_whosonfirst = require('../../../../controller/predicates/is_request_sources_only_whosonfirst'); const is_request_sources_only_whosonfirst = require('../../../../controller/predicates/is_request_sources_only_whosonfirst');

1
test/unit/controller/search.js

@ -1,4 +1,3 @@
const setup = require('../../../controller/search'); const setup = require('../../../controller/search');
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();

1
test/unit/controller/search_with_ids.js

@ -1,4 +1,3 @@
const setup = require('../../../controller/search_with_ids'); const setup = require('../../../controller/search_with_ids');
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
const mocklogger = require('pelias-mock-logger'); const mocklogger = require('pelias-mock-logger');

1
test/unit/controller/structured_libpostal.js

@ -1,4 +1,3 @@
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
const libpostal = require('../../../controller/structured_libpostal'); const libpostal = require('../../../controller/structured_libpostal');
const _ = require('lodash'); const _ = require('lodash');

1
test/unit/fixture/autocomplete_boundary_country.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_linguistic_final_token.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_linguistic_focus.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_linguistic_focus_null_island.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_linguistic_multiple_tokens.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_linguistic_only.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_linguistic_with_admin.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_single_character_street.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_with_layer_filtering.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/autocomplete_with_source_filtering.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/search_boundary_country_original.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/search_linguistic_bbox_original.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/search_linguistic_focus_bbox_original.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/search_linguistic_focus_null_island_original.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/search_linguistic_focus_original.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/search_linguistic_only_original.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/fixture/search_partial_address_original.js

@ -1,4 +1,3 @@
var vs = require('../../../query/search_defaults'); var vs = require('../../../query/search_defaults');
module.exports = { module.exports = {

1
test/unit/fixture/search_regions_address_original.js

@ -1,4 +1,3 @@
var vs = require('../../../query/search_defaults'); var vs = require('../../../query/search_defaults');
module.exports = { module.exports = {

1
test/unit/fixture/search_with_source_filtering_original.js

@ -1,4 +1,3 @@
module.exports = { module.exports = {
'query': { 'query': {
'bool': { 'bool': {

1
test/unit/middleware/changeLanguage.js

@ -1,4 +1,3 @@
const setup = require('../../../middleware/changeLanguage'); const setup = require('../../../middleware/changeLanguage');
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
const _ = require('lodash'); const _ = require('lodash');

1
test/unit/middleware/interpolate.js

@ -1,4 +1,3 @@
const setup = require('../../../middleware/interpolate'); const setup = require('../../../middleware/interpolate');
const proxyquire = require('proxyquire').noCallThru(); const proxyquire = require('proxyquire').noCallThru();
const _ = require('lodash'); const _ = require('lodash');

1
test/unit/middleware/localNamingConventions.js

@ -1,4 +1,3 @@
const proxyquire = require('proxyquire'); const proxyquire = require('proxyquire');
var customConfig = { var customConfig = {

1
test/unit/middleware/requestLanguage.js

@ -1,4 +1,3 @@
var middleware = require('../../../middleware/requestLanguage'); var middleware = require('../../../middleware/requestLanguage');
module.exports.tests = {}; module.exports.tests = {};

1
test/unit/query/MockQuery.js

@ -1,4 +1,3 @@
module.exports = class MockQuery { module.exports = class MockQuery {
constructor() { constructor() {
this._score_functions = []; this._score_functions = [];

1
test/unit/query/autocomplete_defaults.js

@ -1,4 +1,3 @@
var defaults = require('../../../query/autocomplete_defaults'); var defaults = require('../../../query/autocomplete_defaults');
module.exports.tests = {}; module.exports.tests = {};

1
test/unit/query/reverse_defaults.js

@ -1,4 +1,3 @@
var defaults = require('../../../query/reverse_defaults'); var defaults = require('../../../query/reverse_defaults');
module.exports.tests = {}; module.exports.tests = {};

1
test/unit/query/search_defaults.js

@ -1,4 +1,3 @@
var defaults = require('../../../query/search_defaults'); var defaults = require('../../../query/search_defaults');
module.exports.tests = {}; module.exports.tests = {};

1
test/unit/sanitizer/_geo_reverse.js

@ -1,4 +1,3 @@
const sanitizer = require('../../../sanitizer/_geo_reverse')(); const sanitizer = require('../../../sanitizer/_geo_reverse')();
const defaults = require('../../../query/reverse_defaults'); const defaults = require('../../../query/reverse_defaults');

1
test/unit/sanitizer/wrap.js

@ -1,4 +1,3 @@
var wrap = require('../../../sanitizer/wrap'); var wrap = require('../../../sanitizer/wrap');
module.exports.tests = {}; module.exports.tests = {};

1
test/unit/schema.js

@ -1,4 +1,3 @@
const Joi = require('joi'); const Joi = require('joi');
const schema = require('../../schema'); const schema = require('../../schema');
const _ = require('lodash'); const _ = require('lodash');

Loading…
Cancel
Save