FEATURE: Add second TypoScript check
* Extend test to show what's possible and covered and what is not covered yet. Relates: #54
This commit is contained in:
parent
b394cff3d2
commit
e1b3f31c78
3 changed files with 38 additions and 2 deletions
|
@ -3,3 +3,6 @@
|
|||
styles.insertContent:
|
||||
replacement: 'Either remove usage of styles.insertContent or add a snippet at an early point in TypoScript for backwards compatibility'
|
||||
docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-42543-DefaultTypoScriptRemoved.html'
|
||||
mod.web_list.alternateBgColors:
|
||||
replacement: 'Removed without substitution'
|
||||
docsUrl: 'https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-53658-RemoveAlternateBgColorsOption.html'
|
||||
|
|
|
@ -20,14 +20,32 @@
|
|||
"severity": 5,
|
||||
"source": "Typo3Update.Removed.TypoScriptObjectIdentifier.styles-insertContent",
|
||||
"type": "WARNING"
|
||||
},
|
||||
{
|
||||
"column": 1,
|
||||
"fixable": false,
|
||||
"line": 6,
|
||||
"message": "Legacy calls are not allowed; found styles.insertContent. Removed in 7.0. Either remove usage of styles.insertContent or add a snippet at an early point in TypoScript for backwards compatibility. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-42543-DefaultTypoScriptRemoved.html",
|
||||
"severity": 5,
|
||||
"source": "Typo3Update.Removed.TypoScriptObjectIdentifier.styles-insertContent",
|
||||
"type": "WARNING"
|
||||
},
|
||||
{
|
||||
"column": 1,
|
||||
"fixable": false,
|
||||
"line": 13,
|
||||
"message": "Legacy calls are not allowed; found mod.web_list.alternateBgColors. Removed in 7.0. Removed without substitution. See: https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.0/Breaking-53658-RemoveAlternateBgColorsOption.html",
|
||||
"severity": 5,
|
||||
"source": "Typo3Update.Removed.TypoScriptObjectIdentifier.mod-web_list-alternateBgColors",
|
||||
"type": "WARNING"
|
||||
}
|
||||
],
|
||||
"warnings": 2
|
||||
"warnings": 4
|
||||
}
|
||||
},
|
||||
"totals": {
|
||||
"errors": 0,
|
||||
"fixable": 0,
|
||||
"warnings": 2
|
||||
"warnings": 4
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,3 +2,18 @@ page {
|
|||
10 < styles.insertContent
|
||||
10 =< styles.insertContent
|
||||
}
|
||||
|
||||
styles.insertContent {
|
||||
select {
|
||||
where = colPos=1
|
||||
}
|
||||
}
|
||||
|
||||
# already covered
|
||||
mod.web_list.alternateBgColors = 1
|
||||
# Not covered yet
|
||||
mod {
|
||||
web_list {
|
||||
alternateBgColors = 1
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue