diff --git a/.github/workflows/lint_vba.yml b/.github/workflows/lint_vba.yml index c92c127..8d9e1d6 100644 --- a/.github/workflows/lint_vba.yml +++ b/.github/workflows/lint_vba.yml @@ -12,28 +12,24 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['8.2'] + python-version: ["3.11"] steps: - - name: Set up PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - tools: composer:v2 - - - name: Set up Node - uses: actions/setup-node@v1 - with: - node-version: '14.x' - - - name: Checkout code - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: PHP Code Sniffer - run: | - composer require --no-install --no-update beakerboy/vba_tokenizer:dev-master - composer config repositories.beakerboy vcs https://github.com/Beakerboy/VBA_Tokenizer - composer update - vendor/bin/phpcs --extensions=cls/vba,bas/vba,frm/vba --standard=vendor/beakerboy/vba_tokenizer/src/Standards/VBA src/Modules src/ClassModules src/Forms + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install antlr4-tools + wget https://raw.githubusercontent.com/antlr/grammars-v4/master/vba/vba.g4 + - name: Lint with antlr + run: | + antlr4-parse vba.g4 startRule src/ClassModules/*.cls + antlr4-parse vba.g4 startRule src/Modules/*.bas + - name: Lint tests with antlr + run: | + antlr4-parse vba.g4 startRule testing/ClassModules/*.cls + antlr4-parse vba.g4 startRule testing/Modules/*.bas + diff --git a/src/ClassModules/iSQLRecordset.cls b/src/ClassModules/iSQLRecordset.cls index e23908e..c5eabf0 100644 --- a/src/ClassModules/iSQLRecordset.cls +++ b/src/ClassModules/iSQLRecordset.cls @@ -37,6 +37,6 @@ Public Function State() End Function ' Property: EOF -Public Property EOF() +Property Get EOF() End Property