Skip to content

Commit

Permalink
Bump rubocop & workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed May 14, 2024
1 parent e6ac94b commit fc7d88a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'

- name: Run rubocop
shell: bash
run: |
which ruby
which gem
sudo gem install rubocop -v 0.88
sudo gem install rubocop-sketchup
gem install rubocop -v 1.50
gem install rubocop-sketchup
cd plugin
rubocop -f extension_review -o report.html
- name: Upload rubocop results as artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Rubocop-${{ github.sha }}-report.html
path: plugin/report.html
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ AllCops:
DisabledByDefault: true
DisplayStyleGuide: true
Exclude:
- 'developer/ApplyCopyright.rb'
- 'developer/GitHubIssueStats.rb'
- 'plugin/openstudio/startup.rb' #\lib\rubocop\sketchup\no_comment_disable.rb
SketchUp:
SourcePath: plugin # Path to extension sources in project directory.
EncryptedExtension: false # Enable if you plan to encrypt your extension.
TargetSketchUpVersion: 2019
TargetSketchUpVersion: 2024.0
TargetRubyVersion: 3.2

SketchupDeprecations:
Enabled: true
Expand Down

0 comments on commit fc7d88a

Please sign in to comment.