Skip to content

Commit

Permalink
tools upgraded to Clazy v1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 8, 2024
1 parent ee966dd commit 18480b8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tools/Lint-TinyORM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ $clazyCurrentVersion = $Matches.version
Write-Info 'Recommended versions'
Newline
Write-Output " Clang-Tidy `e[32mv18`e[0m (current `e[33mv$clangTidyCurrentVersion`e[0m)"
Write-Output " Clazy standalone `e[32mv1.11`e[0m (current `e[33mv$clazyCurrentVersion`e[0m)"
Write-Output " Clazy standalone `e[32mv1.12`e[0m (current `e[33mv$clazyCurrentVersion`e[0m)"

# Initialize build environment if it's not already initialized
if ($PSVersionTable.Platform -ceq 'Win32NT' -and -not (Test-Path env:WindowsSDKLibVersion)) {
Expand Down Expand Up @@ -259,8 +259,14 @@ if (-not $SkipClazy) {

# Disabled checks
# Level 2 - qstring-allocations
# Manual level - qt4-qstring-from-array, qt6-qlatin1stringchar-to-u,
# Manual level - qt-keyword-emit (I'm not using the emit keyword; new in v1.12)
# qt4-qstring-from-array (removed from v1.12)
# qt6-qlatin1stringchar-to-u
# qvariant-template-instantiation
# unused-result-check (causes crashes)
# Others:
# In v1.12 is also a new unused-result-check warning, but when I tried it clazy-standalone.exe
# crashed (on Windows), this check isn't EVEN in the Clazy Changelog (Release Notes).
$Script:Checks =
'level0,level1,level2,' +
# Manual checks
Expand All @@ -275,7 +281,10 @@ if (-not $SkipClazy) {
'unexpected-flag-enumerator-value,' +
'use-arrow-operator-instead-of-data,' +
# Checks Excluded from level2
'no-qstring-allocations'
'no-qstring-allocations,' +
# New in Clazy 1.12
'no-module-include,' +
'sanitize-inline-keyword'

run-clazy-standalone.ps1 `
-checks="$Script:Checks" `
Expand Down

0 comments on commit 18480b8

Please sign in to comment.