Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Remove E036 #306

Merged
merged 1 commit into from
Sep 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
40 changes: 0 additions & 40 deletions test/fixtures/input-group/multiple-btns-group.html

This file was deleted.

50 changes: 0 additions & 50 deletions test/fixtures/input-group/multiple-dropdowns-in-group.html

This file was deleted.