Analyze code statically by using Rubocop in Github actions
Pass rubocop
a list of files and directories to analyze.
Running rubocop
with no arguments will analyze all Ruby source files in the warking directory.
Changes rubocop
command line options.
Specify the options in JSON array format.
e.g.: '["--fail-level", "W", "--display-only-fail-level-offenses"]'
Changes the current working directory of the Node.js process
name: Analyze code statically
"on": pull_request
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Analyze code statically using Rubocop
uses: moneyforward/rubocop-action@v0
Bug reports and pull requests are welcome on GitHub at https://github.com/moneyforward/rubocop-action
The gem is available as open source under the terms of the MIT License.