Skip to content

Update lint_vba.yml #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 19 additions & 23 deletions .github/workflows/lint_vba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion src/ClassModules/iSQLRecordset.cls
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ Public Function State()
End Function

' Property: EOF
Public Property EOF()
Property Get EOF()

End Property