Skip to content

Commit

Permalink
Remove E036
Browse files Browse the repository at this point in the history
  • Loading branch information
kkirsche committed Sep 2, 2015
1 parent 668eea3 commit 1f53de5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/bootlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,16 +853,6 @@ var LocationIndex = _location.LocationIndex;
reporter('Neither `.form-inline` nor `.form-horizontal` should be used directly on a `.form-group`. Instead, nest the `.form-group` within the `.form-inline` or `.form-horizontal`', badFormGroups);
}
});
addLinter("E036", function lintMultipleInputGroupButtons($, reporter) {
$('.input-group-btn').each(function () {
['.btn:not(.dropdown-toggle)', '.dropdown-menu'].forEach(function (selector) {
var elements = $(this).children(selector);
if (elements.length > 1) {
reporter('Having multiple `' + selector.split(':')[0] + '`s inside of a single `.input-group-btn` is not supported', elements.slice(1));
}
}, this);
});
});
addLinter("E037", function lintColZeros($, reporter) {
var selector = SCREENS.map(function (screen) {
return ".col-" + screen + "-0";
Expand Down
10 changes: 0 additions & 10 deletions test/bootlint_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,6 @@ exports.bootlint = {
'should complain when both a normal add-on and a button add-on are on the left side of an input group.');
test.done();
},
'multiple buttons/dropdowns inside input-group-btn': function (test) {
test.expect(2);
test.deepEqual(lintHtml(utf8Fixture('input-group/multiple-btns-group.html')),
["Having multiple `.btn`s inside of a single `.input-group-btn` is not supported"],
'should complain about multiple buttons being inside a single input-group-btn');
test.deepEqual(lintHtml(utf8Fixture('input-group/multiple-dropdowns-in-group.html')),
["Having multiple `.dropdown-menu`s inside of a single `.input-group-btn` is not supported"],
'should complain about multiple dropdowns being inside a single input-group-btn');
test.done();
},
'dropdown-toggle comes before btn': function (test) {
test.expect(2);
test.deepEqual(lintHtml(utf8Fixture('buttons/btn-toggle.html')),
Expand Down

0 comments on commit 1f53de5

Please sign in to comment.