This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are too many issues with the current configuration settings. Some of the commands require special syntax, and adding more isn't scalable. With this new API, adding more changes and configurations should be very simple. To use special configurations, you now need to create a configuration file that the action will read. See https://rubocop-linter-action.readthedocs.io/ for more information.
- Loading branch information
1 parent
a13d236
commit e140072
Showing
36 changed files
with
741 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Description: The name of the check that will be created. | ||
# Valid Options: A reasonably sized string. | ||
# Default: 'Rubocop Action' | ||
check_name: "Rubocop Results" | ||
|
||
# Description: Version of rubocop that will be installed. | ||
# Valid options: 'latest' or a version number like '0.75.0'. | ||
# Default: 'latest' | ||
rubocop_version: 'latest' | ||
|
||
# Description: Extensions required to run your rubocop config. | ||
# Valid options: Any rubocop extension, by default the latest gem version will be used. You can explicitly state that | ||
# (not required) or use a version number like '1.5.1'. | ||
# Default: nil | ||
rubocop_extensions: | ||
- 'rubocop-rails' | ||
- 'rubocop-performance': '1.5.1' | ||
- 'rubocop-minitest': 'latest' | ||
- 'rubocop-rspec': '1.37.0' | ||
|
||
# Description: Rubocop configuration file path relative to the workspace. | ||
# Valid options: A valid file path inside of the workspace. | ||
# Default: nil | ||
# Note: This does not need to be filled out for Rubocop to still find your config. | ||
# Resource: https://rubocop.readthedocs.io/en/stable/configuration/ | ||
rubocop_config_path: '.rubocop.yml' | ||
|
||
# Run all cops enabled by configuration except this list. | ||
# Valid options: list of valid cop(s) and/or departments. | ||
# Default: nil | ||
# Resource: https://rubocop.readthedocs.io/en/stable/cops/ | ||
rubocop_excluded_cops: | ||
- 'Style/FrozenStringLiteralComment' | ||
|
||
# Minimum severity for exit with error code | ||
# Valid options: 'refactor', 'convention', 'warning', 'error', or 'fatal'. | ||
# Default: 'warning' | ||
# Resource: https://rubocop.readthedocs.io/en/stable/configuration/#severity | ||
rubocop_fail_level: 'warning' | ||
|
||
# Instead of installing gems from rubygems, we can run `bundle install` on your project, | ||
# you would need to do this if you are using something like 'rubocop-github' or if you don't | ||
# want to list out extensions with the `rubocop_extensions` key. | ||
# Valid options: true || false | ||
# Default: false | ||
bundle: false | ||
|
||
# The scope of code that Rubocop should lint. Use this if you only want to lint changed files. If this is not set | ||
# or not equal to 'modified', Rubocop is run against the entire codebase. | ||
# Valid options: 'modified' | ||
# Default: nil | ||
check_scope: 'modified' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
Layout/FirstHashElementIndentation: | ||
EnforcedStyle: consistent | ||
|
||
Metrics/MethodLength: | ||
Max: 16 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.