From ca920c09943aaf4867c8cb38153f70810668d43a Mon Sep 17 00:00:00 2001 From: Zac Echola Date: Fri, 14 Nov 2014 20:13:57 -0600 Subject: [PATCH] Warn about .pull-right or .pull-left within a navbar Closes #188 --- dist/browser/bootlint.js | 69 +++++++++++++++++++++--- src/bootlint.js | 6 +++ test/bootlint_test.js | 13 +++++ test/fixtures/navbar/navbar-classes.html | 33 ++++++++++++ test/fixtures/navbar/pull-classes.html | 34 ++++++++++++ 5 files changed, 148 insertions(+), 7 deletions(-) create mode 100644 test/fixtures/navbar/navbar-classes.html create mode 100644 test/fixtures/navbar/pull-classes.html diff --git a/dist/browser/bootlint.js b/dist/browser/bootlint.js index 31493585..56b1d890 100644 --- a/dist/browser/bootlint.js +++ b/dist/browser/bootlint.js @@ -10332,6 +10332,7 @@ if (typeof define === 'function' && define.amd) /*eslint-env node */ var cheerio = require('cheerio'); +var parseUrl = require('url').parse; var semver = require('semver'); var _location = require('./location'); var LocationIndex = _location.LocationIndex; @@ -10683,10 +10684,8 @@ var LocationIndex = _location.LocationIndex; // check for jQuery + + + + + + + + +
+
+ + + diff --git a/test/fixtures/navbar/pull-classes.html b/test/fixtures/navbar/pull-classes.html new file mode 100644 index 00000000..38eb2e4c --- /dev/null +++ b/test/fixtures/navbar/pull-classes.html @@ -0,0 +1,34 @@ + + + + + + + Test + + + + + + + + + + +
+
    +
  1. +
+ +