diff --git a/.travis.yml b/.travis.yml index 80e56d9..31663f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: -- '8' - '10' +- '12' cache: yarn: true script: @@ -9,3 +9,5 @@ script: notifications: slack: secure: k8qoq+byM+x9fTlLeaz2TRb+EYvwWlaYjkY0fp87RnWEbLeYjj4mumcwFJclNtocdgKbxG4LDV7BrDsu4Mbsp2YFpQ8WU6e6+xTrLTrLDrlsFQ6St1KX7TDymZ+wkSTyLvSECNkdcNt0dek8mWrT6HWZ/v/4HzWjjl6x7EOjPJ8Hnf4fesrfS5en1IMXDbK3Z/HrxMXNZCV3/k5ktZ3Yzx1tOhIRquuyN5nd8BfVtoX5jQaJAK2vWFAHzyDsTZiaX0ZX06m0AmbnwRtrIy5yQtjKL7vwxsi4bbmrkjGJ1tGf/rB+z3Pm0HGi3zOeMjIfws6CQeXtYRPecsw7YovvRCgbJvIHXp0FIvUiM/BNsvftfh4V+fb/tycuLNMHi7S899QY6U3zN1Bitiu5xj+LwUcFEJDSCatSYUEgz3VuuLI2xDcOdNETDuvEH7QV5IpRBz98GZm8yvnoU97ZIQ6B/626hWCQLgjiiDuYQyv99WVtFgfMmVkIY92QiskoqtaSLsGtwo92RzmJIvtIBZPcR9zeA7k9iwXre4qX/0WNc6+Z5/aiulO/s999LJ4R7D4aKrQS4d3FVJ6tv0Z85Bau6yAN6eB9bo2+dA62YfePfX6PeUW+Eqp6k2ckGF4GvkH8k039keKSo4RGRkL01ymu+89PPF+yI1mIFzEHNLkUdaQ= + on_success: never + on_failure: always diff --git a/license.md b/LICENSE.md similarity index 94% rename from license.md rename to LICENSE.md index 44dc928..ef31d90 100644 --- a/license.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # MIT License -Copyright (c) 2017 Sourceboat +Copyright (c) Sourceboat GmbH & Co. KG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/readme.md b/README.md similarity index 100% rename from readme.md rename to README.md diff --git a/lib/linter.js b/lib/linter.js index 8a70ed7..da638ed 100644 --- a/lib/linter.js +++ b/lib/linter.js @@ -1,5 +1,6 @@ const walk = require('walk') const fs = require('fs') +const os = require('os') const path = require('path') const htmlparser = require('htmlparser2') const cheerio = require('cheerio') @@ -43,7 +44,11 @@ class Linter { const fileTemplates = this.extractFileTemplates(fileData) fileTemplates.forEach((template) => { - const fileErrors = this.pugLinter.checkString(template, filename) + // Remove first and last line-break, as these contain the opening / + // closing