forked from EFForg/action-center-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
115 lines (97 loc) · 4.54 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
inherit_gem:
rubocop-github:
- config/default.yml
- config/rails.yml
AllCops:
TargetRailsVersion: 4.2
TargetRubyVersion: 2.3
Exclude:
- 'db/**/*'
- 'config/**/*'
- 'bin/**/*'
- 'vendor/**/*'
### Override rubcop-github ###
Style/FrozenStringLiteralComment:
# We aren't upgrading to Ruby 3.0, so this is just noise
Enabled: false
Metrics/ModuleLength:
# IME enforcing a module length creates more problems than it solves
Enabled: false
GitHub/RailsControllerRenderLiteral:
# Prevents us from dynamically generating layouts
Enabled: false
GitHub/RailsControllerRenderPathsExist:
# Doesn't seem to work; can't find templates that exist
Enabled: false
GitHub/RailsApplicationRecord:
# Doesn't apply to < Rails 5.0, and ignores TargetRailsVersion
Enabled: false
Lint/Void:
Exclude:
- 'features/**/*'
- 'spec/**/*'
Lint/Debugger:
Exclude:
- 'features/step_definitions/debug_steps.rb'
Style/BlockComments:
Exclude:
- 'spec/**/*'
Layout/SpaceInsideHashLiteralBraces:
Enabled: true
Layout/SpaceInsideBlockBraces:
Enabled: true
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true
Layout/ExtraSpacing:
Enabled: true
Layout/MultilineHashBraceLayout:
Enabled: true
Layout/SpaceAroundOperators:
Enabled: true
Security/JSONLoad:
Enabled: true
Exclude:
- 'spec/**/*'
- name: Setup Java JDK
uses: actions/setup-java@v4.2.1
with:
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
java-version: # optional
# The path to the `.java-version` file. See examples of supported syntax in README file
java-version-file: # optional
# Java distribution. See the list of supported distributions in README file
distribution:
# The package type (jdk, jre, jdk+fx, jre+fx)
java-package: # optional, default is jdk
# The architecture of the package (defaults to the action runner's architecture)
architecture: # optional
# Path to where the compressed JDK is located
jdkFile: # optional
# Set this option if you want the action to check for the latest available version that satisfies the version spec
check-latest: # optional
# ID of the distributionManagement repository in the pom.xml file. Default is `github`
server-id: # optional, default is github
# Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR
server-username: # optional, default is GITHUB_ACTOR
# Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN
server-password: # optional, default is GITHUB_TOKEN
# Path to where the settings.xml file will be written. Default is ~/.m2.
settings-path: # optional
# Overwrite the settings.xml file if it exists. Default is "true".
overwrite-settings: # optional, default is true
# GPG private key to import. Default is empty string.
gpg-private-key: # optional
# Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE.
gpg-passphrase: # optional
# Name of the build platform to cache dependencies. It can be "maven", "gradle" or "sbt".
cache: # optional
# The path to a dependency file: pom.xml, build.gradle, build.sbt, etc. This option can be used with the `cache` option. If this option is omitted, the action searches for the dependency file in the entire repository. This option supports wildcards and a list of file names for caching multiple dependencies.
cache-dependency-path: # optional
# Workaround to pass job status to post job step. This variable is not intended for manual setting
job-status: # optional, default is ${{ job.status }}
# The token used to authenticate when fetching version manifests hosted on github.com, such as for the Microsoft Build of OpenJDK. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }}
# Name of Maven Toolchain ID if the default name of "${distribution}_${java-version}" is not wanted. See examples of supported syntax in Advanced Usage file
mvn-toolchain-id: # optional
# Name of Maven Toolchain Vendor if the default name of "${distribution}" is not wanted. See examples of supported syntax in Advanced Usage file
mvn-toolchain-vendor: # optional