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

Commit

Permalink
Container-related checks
Browse files Browse the repository at this point in the history
Port E003 (misplaced .row), and remove E004
(nestable containers).
  • Loading branch information
Herst committed Sep 21, 2018
1 parent 44fed15 commit 292bef6
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 148 deletions.
10 changes: 0 additions & 10 deletions src/bootlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ var LocationIndex = _location.LocationIndex;
}
});
*/
/*
addLinter('E003', function lintContainers($, reporter) {
var notAnyColClass = COL_CLASSES.map(function (colClass) {
return ':not(' + colClass + ')';
Expand All @@ -686,15 +685,6 @@ var LocationIndex = _location.LocationIndex;
reporter('Found one or more `.row`s that were not children of a grid column or descendants of a `.container` or `.container-fluid`', rowsOutsideColumnsAndContainers);
}
});
*/
/*
addLinter('E004', function lintNestedContainers($, reporter) {
var nestedContainers = $('.container, .container-fluid').children('.container, .container-fluid');
if (nestedContainers.length) {
reporter('Containers (`.container` and `.container-fluid`) are not nestable', nestedContainers);
}
});
*/
/*
addLinter('E005', function lintRowAndColOnSameElem($, reporter) {
var selector = COL_CLASSES.map(function (col) {
Expand Down
29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fixed-fixed.html

This file was deleted.

29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fixed-fluid.html

This file was deleted.

29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fluid-fixed.html

This file was deleted.

29 changes: 0 additions & 29 deletions test/_old_fixtures/containers/nested-fluid-fluid.html

This file was deleted.

22 changes: 0 additions & 22 deletions test/bootlint_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ exports.bootlint = {
test.done();
},
*/
/*
'rows outside containers': function (test) {
test.expect(5);
test.deepEqual(lintHtml(utf8Fixture('containers/fixed.html')),
Expand All @@ -130,25 +129,6 @@ exports.bootlint = {
'should not complain when rows are descendants (but not children) of containers.');
test.done();
},
*/
/*
'nested containers': function (test) {
test.expect(4);
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fixed-fixed.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fixed-fluid.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fluid-fluid.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.deepEqual(lintHtml(utf8Fixture('containers/nested-fluid-fixed.html')),
['Containers (`.container` and `.container-fluid`) are not nestable'],
'should complain when a container is within a container.');
test.done();
},
*/
/*
'viewport meta tag': function (test) {
test.expect(2);
Expand All @@ -173,7 +153,6 @@ exports.bootlint = {
test.done();
},
*/
/*
'row and container classes on same element': function (test) {
test.expect(2);
test.deepEqual(lintHtml(utf8Fixture('containers/fixed-row-same-elem.html')),
Expand All @@ -184,7 +163,6 @@ exports.bootlint = {
'should complain when .row and .container-fluid are used on the same element.');
test.done();
},
*/
/*
'remote modals': function (test) {
test.expect(1);
Expand Down

0 comments on commit 292bef6

Please sign in to comment.