scc-codestyle 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/build-gem.yml +26 -0
- data/.github/workflows/gem-push.yml +4 -0
- data/.github/workflows/rubocop.yml +20 -0
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +14 -0
- data/default.yml +119 -1
- data/lib/scc/codestyle/version.rb +1 -1
- data/scc-codestyle.gemspec +4 -4
- metadata +14 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8b73f92d08a8729622d4a0c1e922b852b80b846fe265c7c81084af79e48d3c8
|
4
|
+
data.tar.gz: 61e777eb6409252af966edd4a1292e0f34373da15530afa4383e6bc729511164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0213ea639598ffc9b1a6a5d7d21f4b526a5ecafd1cb2427201fcc62c6bdfeca468031d5320ce8abf061feb0fff8f2d6c1ce8323ce8339d2f44ce71acdd3b6ab
|
7
|
+
data.tar.gz: ae693b90a055f982b0fa6c855f8bc5648f885bfdd35cea48ab55a7e488a547b78e08a4d2bc98add8c97d6854389698e895db47713ee94555f0e42c154de4f030
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
9
|
+
directory: "/" # Location of package manifests
|
10
|
+
schedule:
|
11
|
+
interval: "weekly"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Check if the gem exists on rubygems.org
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build-gem:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
continue-on-error: true
|
9
|
+
|
10
|
+
strategy:
|
11
|
+
matrix:
|
12
|
+
ruby-version: ['2.5', '2.7']
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby-version }}
|
20
|
+
- name: Check if gem exists
|
21
|
+
run: |
|
22
|
+
GEM_VERSION=$(ruby -e "require 'scc/codestyle'; print Scc::Codestyle::VERSION" -I lib)
|
23
|
+
# if we install the gem, then the $GEM_VERSION already exist on rubygems.org
|
24
|
+
# therefore error
|
25
|
+
gem install -q --silent scc-codestyle -v $GEM_VERSION && (touch failed-install && exit 0) || exit 0
|
26
|
+
test -f failed-install && (echo "bump the gem version!" && exit 1)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Rubocop
|
2
|
+
|
3
|
+
on: [pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
rubocop:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- name: Set up Ruby
|
12
|
+
uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: 2.7.6
|
15
|
+
|
16
|
+
|
17
|
+
- name: Run rubocop
|
18
|
+
run: |
|
19
|
+
bundle install
|
20
|
+
bundle exec rubocop
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2022-07-22 12:23:32 UTC using RuboCop version 1.31.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemspec
|
12
|
+
Gemspec/RequiredRubyVersion:
|
13
|
+
Exclude:
|
14
|
+
- 'scc-codestyle.gemspec'
|
data/default.yml
CHANGED
@@ -645,7 +645,6 @@ Lint/UnreachableLoop: # (new in 0.89)
|
|
645
645
|
Enabled: true
|
646
646
|
Lint/UselessMethodDefinition: # (new in 0.90)
|
647
647
|
Enabled: true
|
648
|
-
AllowComments: true
|
649
648
|
Lint/UselessTimes: # (new in 0.91)
|
650
649
|
Enabled: true
|
651
650
|
Style/AccessorGrouping: # (new in 0.87)
|
@@ -876,3 +875,122 @@ RSpec/SubjectDeclaration: # new in 2.5
|
|
876
875
|
Enabled: true
|
877
876
|
RSpec/Rails/AvoidSetupHook: # new in 2.4
|
878
877
|
Enabled: true
|
878
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
879
|
+
Enabled: true
|
880
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
881
|
+
Enabled: true
|
882
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
883
|
+
Enabled: true
|
884
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
885
|
+
Enabled: true
|
886
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
887
|
+
Enabled: true
|
888
|
+
Lint/RefinementImportMethods: # new in 1.27
|
889
|
+
Enabled: true
|
890
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
891
|
+
Enabled: true
|
892
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
893
|
+
Enabled: true
|
894
|
+
Naming/BlockForwarding: # new in 1.24
|
895
|
+
Enabled: true
|
896
|
+
Security/CompoundHash: # new in 1.28
|
897
|
+
Enabled: true
|
898
|
+
Style/EmptyHeredoc: # new in 1.32
|
899
|
+
Enabled: true
|
900
|
+
Style/EnvHome: # new in 1.29
|
901
|
+
Enabled: true
|
902
|
+
Style/FetchEnvVar: # new in 1.28
|
903
|
+
Enabled: true
|
904
|
+
Style/FileRead: # new in 1.24
|
905
|
+
Enabled: true
|
906
|
+
Style/FileWrite: # new in 1.24
|
907
|
+
Enabled: true
|
908
|
+
Style/MagicCommentFormat: # new in 1.35
|
909
|
+
Enabled: true
|
910
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
911
|
+
Enabled: true
|
912
|
+
Style/MapToHash: # new in 1.24
|
913
|
+
Enabled: true
|
914
|
+
Style/NestedFileDirname: # new in 1.26
|
915
|
+
Enabled: true
|
916
|
+
Style/ObjectThen: # new in 1.28
|
917
|
+
Enabled: true
|
918
|
+
Style/OpenStructUse: # new in 1.23
|
919
|
+
Enabled: true
|
920
|
+
Style/OperatorMethodCall: # new in 1.37
|
921
|
+
Enabled: true
|
922
|
+
Style/RedundantInitialize: # new in 1.27
|
923
|
+
Enabled: true
|
924
|
+
Style/RedundantStringEscape: # new in 1.37
|
925
|
+
Enabled: true
|
926
|
+
Performance/ConcurrentMonotonicTime: # new in 1.12
|
927
|
+
Enabled: true
|
928
|
+
Performance/StringIdentifierArgument: # new in 1.13
|
929
|
+
Enabled: true
|
930
|
+
Rails/ActionControllerFlashBeforeRender: # new in 2.16
|
931
|
+
Enabled: true
|
932
|
+
Rails/ActionControllerTestCase: # new in 2.14
|
933
|
+
Enabled: true
|
934
|
+
Rails/ActiveSupportOnLoad: # new in 2.16
|
935
|
+
Enabled: true
|
936
|
+
Rails/CompactBlank: # new in 2.13
|
937
|
+
Enabled: true
|
938
|
+
Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
|
939
|
+
Enabled: true
|
940
|
+
Rails/DotSeparatedKeys: # new in 2.15
|
941
|
+
Enabled: true
|
942
|
+
Rails/DuplicateAssociation: # new in 2.14
|
943
|
+
Enabled: true
|
944
|
+
Rails/DuplicateScope: # new in 2.14
|
945
|
+
Enabled: true
|
946
|
+
Rails/DurationArithmetic: # new in 2.13
|
947
|
+
Enabled: true
|
948
|
+
Rails/FreezeTime: # new in 2.16
|
949
|
+
Enabled: true
|
950
|
+
Rails/I18nLazyLookup: # new in 2.14
|
951
|
+
Enabled: true
|
952
|
+
Rails/I18nLocaleTexts: # new in 2.14
|
953
|
+
Enabled: true
|
954
|
+
Rails/MigrationClassName: # new in 2.14
|
955
|
+
Enabled: true
|
956
|
+
Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
|
957
|
+
Enabled: true
|
958
|
+
Rails/RootJoinChain: # new in 2.13
|
959
|
+
Enabled: true
|
960
|
+
Rails/RootPathnameMethods: # new in 2.16
|
961
|
+
Enabled: true
|
962
|
+
Rails/RootPublicPath: # new in 2.15
|
963
|
+
Enabled: true
|
964
|
+
Rails/StripHeredoc: # new in 2.15
|
965
|
+
Enabled: true
|
966
|
+
Rails/ToFormattedS: # new in 2.15
|
967
|
+
Enabled: true
|
968
|
+
Rails/ToSWithArgument: # new in 2.16
|
969
|
+
Enabled: true
|
970
|
+
Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
|
971
|
+
Enabled: true
|
972
|
+
Rails/TransactionExitStatement: # new in 2.14
|
973
|
+
Enabled: true
|
974
|
+
Rails/WhereMissing: # new in 2.16
|
975
|
+
Enabled: true
|
976
|
+
RSpec/BeEq: # new in 2.9.0
|
977
|
+
Enabled: true
|
978
|
+
RSpec/BeNil: # new in 2.9.0
|
979
|
+
Enabled: true
|
980
|
+
RSpec/ChangeByZero: # new in 2.11
|
981
|
+
Enabled: true
|
982
|
+
RSpec/ClassCheck: # new in 2.13
|
983
|
+
Enabled: true
|
984
|
+
RSpec/NoExpectationExample: # new in 2.13
|
985
|
+
Enabled: true
|
986
|
+
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
987
|
+
Enabled: true
|
988
|
+
RSpec/Capybara/SpecificFinders: # new in 2.13
|
989
|
+
Enabled: true
|
990
|
+
RSpec/Capybara/SpecificMatcher: # new in 2.12
|
991
|
+
Enabled: true
|
992
|
+
RSpec/FactoryBot/SyntaxMethods: # new in 2.7
|
993
|
+
Enabled: true
|
994
|
+
RSpec/Rails/HaveHttpStatus: # new in 2.12
|
995
|
+
Enabled: true
|
996
|
+
|
data/scc-codestyle.gemspec
CHANGED
@@ -19,11 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
end
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'rubocop', '~> 1.
|
23
|
-
spec.add_dependency 'rubocop-performance', '~> 1.
|
24
|
-
spec.add_dependency 'rubocop-rails', '~> 2.
|
22
|
+
spec.add_dependency 'rubocop', '~> 1.37'
|
23
|
+
spec.add_dependency 'rubocop-performance', '~> 1.15'
|
24
|
+
spec.add_dependency 'rubocop-rails', '~> 2.16'
|
25
25
|
spec.add_dependency 'rubocop-rake', '~> 0.6'
|
26
|
-
spec.add_dependency 'rubocop-rspec', '~> 2.
|
26
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.13'
|
27
27
|
spec.add_dependency 'rubocop-thread_safety', '~> 0.4'
|
28
28
|
spec.add_development_dependency 'bundler', '~> 2.2'
|
29
29
|
spec.add_development_dependency 'rake', '~> 13.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scc-codestyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SCC Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.37'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.37'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.15'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.15'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.16'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.16'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.13'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.13'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-thread_safety
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,9 +129,13 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".github/dependabot.yml"
|
133
|
+
- ".github/workflows/build-gem.yml"
|
132
134
|
- ".github/workflows/gem-push.yml"
|
135
|
+
- ".github/workflows/rubocop.yml"
|
133
136
|
- ".gitignore"
|
134
137
|
- ".rubocop.yml"
|
138
|
+
- ".rubocop_todo.yml"
|
135
139
|
- Dockerfile
|
136
140
|
- Gemfile
|
137
141
|
- LICENSE
|