Skip to content
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

Added RuboCop static code analyzer #12

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .github/config/rubocop_linter_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rubocop_fail_level: "fatal"

versions:
- rubocop
- rubocop-rspec
15 changes: 15 additions & 0 deletions .github/workflows/rubocop_linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: RuboCop linter

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: RuboCop linter
uses: andrewmcodes/rubocop-linter-action@v3.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Build Status](https://github.com/SciRuby/ruby-sparse/workflows/Ruby-Sparse%20test/badge.svg?branch=master)](https://github.com/SciRuby/ruby-sparse/actions?query=workflow%3A%22Ruby-Sparse+test%22)

[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop-hq/rubocop)

Ruby Library for Sparse Tensors.

## Installation
Expand Down Expand Up @@ -30,4 +32,4 @@ rake pry

## LICENSE

This software is distributed under the [BSD 3-Clause License](LICENSE).
This software is distributed under the [BSD 3-Clause License](LICENSE).