diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a71f48..0a1ed3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,24 +88,21 @@ jobs: - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 + - name: Install scopelint + uses: engineerd/configurator@v0.0.8 + with: + name: scopelint + repo: ScopeLift/scopelint + fromGitHubReleases: true + version: latest + pathInArchive: scopelint-x86_64-linux/scopelint + urlTemplate: https://github.com/ScopeLift/scopelint/releases/download/{{version}}/scopelint-x86_64-linux.tar.xz + token: ${{ secrets.GITHUB_TOKEN }} + - name: Check formatting - run: forge fmt --check - - #- name: Install scopelint - # uses: engineerd/configurator@v0.0.8 - # with: - # name: scopelint - # repo: ScopeLift/scopelint - # fromGitHubReleases: true - # version: latest - # pathInArchive: scopelint-x86_64-linux/scopelint - # urlTemplate: https://github.com/ScopeLift/scopelint/releases/download/{{version}}/scopelint-x86_64-linux.tar.xz - # token: ${{ secrets.GITHUB_TOKEN }} - - #- name: Check formatting - # run: | - # scopelint --version - # scopelint check + run: | + scopelint --version + scopelint check slither-analyze: runs-on: ubuntu-latest diff --git a/src/CometFlexVoting.sol b/src/CometFlexVoting.sol index b04118b..c530baa 100644 --- a/src/CometFlexVoting.sol +++ b/src/CometFlexVoting.sol @@ -62,6 +62,7 @@ contract CometFlexVoting is Comet, FlexVotingClient { //=========================================================================== // // This function is called any time the underlying balance is changed. + // scopelint: disable-next-line function updateBasePrincipal(address _account, UserBasic memory _userBasic, int104 _principalNew) internal override