scc-codestyle 0.4.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcc3b9ca76a6c63ffaed15710eccfc57c8ace91d3a298a77c1764287b566fb8d
4
- data.tar.gz: c456a8f195930a900749af3bed15192a92bbfdc28857c1196b5051451706f236
3
+ metadata.gz: 46f5f84f3259972d6f46d3a2c221c236ac93187c3719c892aa1f84231f98ea2f
4
+ data.tar.gz: 5e42ddf8f269a5ead3889a3ec103252beac644db79b1488de8f2b0e0edd6b2e5
5
5
  SHA512:
6
- metadata.gz: 865c918970300676bc6be36e7a42d3858de4d31087388427e1c0952e8c808f43249e94a5719896790cd54e48733b768746f3d4f4124d7650b9e2d619f37e7e71
7
- data.tar.gz: d775644f2b2011d9684980bfed0b685273e7001bfd8107c665aaac762eae1d680671ec4c5ca0379e17edc37b6b17539129a0b5dd923986a41c49449a85b35db6
6
+ metadata.gz: b72032bf401b344cd7b99e694cc6e38b0300821a22191397bfd3711840392f0c9923ccd79fc7ed205df332675deed15634d91faa3bd47cd387e18f2e5cb994f7
7
+ data.tar.gz: 1bb87684d4f2da591c9527916c81d66ee5aea40c78b49cb02d56c744d7abdbbe50f0274becfc68822f312b585e6ec258ea9da8bc2f7ec371b7cdd2ea7309bcdc
@@ -0,0 +1,31 @@
1
+ name: scc-codestyle
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build + Publish
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ packages: write
14
+
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby 2.5
18
+ uses: actions/setup-ruby@v1
19
+ with:
20
+ ruby-version: 2.5.x
21
+
22
+ - name: Publish to RubyGems
23
+ run: |
24
+ mkdir -p $HOME/.gem
25
+ touch $HOME/.gem/credentials
26
+ chmod 0600 $HOME/.gem/credentials
27
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
28
+ gem build *.gemspec
29
+ gem push *.gem
30
+ env:
31
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/default.yml CHANGED
@@ -600,3 +600,287 @@ Style/HashTransformKeys:
600
600
 
601
601
  Style/HashTransformValues:
602
602
  Enabled: true
603
+
604
+ # new cops
605
+
606
+ Layout/BeginEndAlignment: # (new in 0.91)
607
+ Enabled: true
608
+ EnforcedStyleAlignWith: start_of_line
609
+ Layout/EmptyLinesAroundAttributeAccessor: # (new in 0.83)
610
+ Enabled: true
611
+ AllowAliasSyntax: true
612
+ AllowedMethods: ['alias_method', 'private', 'protected']
613
+ Layout/SpaceAroundMethodCallOperator: # (new in 0.82)
614
+ Enabled: true
615
+ Lint/BinaryOperatorWithIdenticalOperands: # (new in 0.89)
616
+ Enabled: true
617
+ Lint/ConstantDefinitionInBlock: # (new in 0.91)
618
+ Enabled: true
619
+ Lint/DeprecatedOpenSSLConstant: # (new in 0.84)
620
+ Enabled: true
621
+ Lint/DuplicateElsifCondition: # (new in 0.88)
622
+ Enabled: true
623
+ Lint/DuplicateRequire: # (new in 0.90)
624
+ Enabled: true
625
+ Lint/DuplicateRescueException: # (new in 0.89)
626
+ Enabled: true
627
+ Lint/EmptyConditionalBody: # (new in 0.89)
628
+ Enabled: true
629
+ Lint/EmptyFile: # (new in 0.90)
630
+ Enabled: true
631
+ AllowComments: true
632
+ Lint/FloatComparison: # (new in 0.89)
633
+ Enabled: true
634
+ Lint/IdentityComparison: # (new in 0.91)
635
+ Enabled: true
636
+ Lint/MissingSuper: # (new in 0.89)
637
+ Enabled: true
638
+ Lint/MixedRegexpCaptureTypes: # (new in 0.85)
639
+ Enabled: true
640
+ Lint/OutOfRangeRegexpRef: # (new in 0.89)
641
+ Enabled: true
642
+ Lint/RaiseException: # (new in 0.81)
643
+ Enabled: true
644
+ Lint/SelfAssignment: # (new in 0.89)
645
+ Enabled: true
646
+ Lint/StructNewOverride: # (new in 0.81)
647
+ Enabled: true
648
+ Lint/TopLevelReturnWithArgument: # (new in 0.89)
649
+ Enabled: true
650
+ Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
651
+ Enabled: true
652
+ Lint/UnreachableLoop: # (new in 0.89)
653
+ Enabled: true
654
+ Lint/UselessMethodDefinition: # (new in 0.90)
655
+ Enabled: true
656
+ AllowComments: true
657
+ Lint/UselessTimes: # (new in 0.91)
658
+ Enabled: true
659
+ Style/AccessorGrouping: # (new in 0.87)
660
+ Enabled: false
661
+ Style/BisectedAttrAccessor: # (new in 0.87)
662
+ Enabled: true
663
+ Style/CaseLikeIf: # (new in 0.88)
664
+ Enabled: false
665
+ Style/CombinableLoops: # (new in 0.90)
666
+ Enabled: true
667
+ Style/ExplicitBlockArgument: # (new in 0.89)
668
+ Enabled: true
669
+ Style/ExponentialNotation: # (new in 0.82)
670
+ Enabled: true
671
+ EnforcedStyle: scientific
672
+ Style/GlobalStdStream: # (new in 0.89)
673
+ Enabled: true
674
+ Style/HashAsLastArrayItem: # (new in 0.88)
675
+ Enabled: true
676
+ EnforcedStyle: braces
677
+ Style/HashLikeCase: # (new in 0.88)
678
+ Enabled: true
679
+ MinBranchesCount: 4
680
+ Style/KeywordParametersOrder: # (new in 0.90)
681
+ Enabled: true
682
+ Style/OptionalBooleanParameter: # (new in 0.89)
683
+ Enabled: true
684
+ AllowedMethods: ['respond_to_missing?']
685
+ Style/RedundantAssignment: # (new in 0.87)
686
+ Enabled: true
687
+ Style/RedundantFetchBlock: # (new in 0.86)
688
+ Enabled: true
689
+ SafeForConstants: true
690
+ Style/RedundantFileExtensionInRequire: # (new in 0.88)
691
+ Enabled: true
692
+ Style/RedundantRegexpCharacterClass: # (new in 0.85)
693
+ Enabled: true
694
+ Style/RedundantRegexpEscape: # (new in 0.85)
695
+ Enabled: true
696
+ Style/RedundantSelfAssignment: # (new in 0.90)
697
+ Enabled: true
698
+ Style/SingleArgumentDig: # (new in 0.89)
699
+ Enabled: true
700
+ Style/SlicingWithRange: # (new in 0.83)
701
+ Enabled: true
702
+ Style/SoleNestedConditional: # (new in 0.89)
703
+ Enabled: true
704
+ AllowModifier: false
705
+ Style/StringConcatenation: # (new in 0.89)
706
+ Enabled: true
707
+ Mode: conservative
708
+ Performance/AncestorsInclude: # (new in 1.7)
709
+ Enabled: true
710
+ Performance/BigDecimalWithNumericArgument: # (new in 1.7)
711
+ Enabled: true
712
+ Performance/RedundantSortBlock: # (new in 1.7)
713
+ Enabled: true
714
+ Performance/RedundantStringChars: # (new in 1.7)
715
+ Enabled: true
716
+ Performance/ReverseFirst: # (new in 1.7)
717
+ Enabled: true
718
+ Performance/SortReverse: # (new in 1.7)
719
+ Enabled: true
720
+ Performance/Squeeze: # (new in 1.7)
721
+ Enabled: true
722
+ Performance/StringInclude: # (new in 1.7)
723
+ Enabled: true
724
+ Performance/Sum: # (new in 1.8)
725
+ Enabled: true
726
+ Gemspec/DateAssignment: # new in 1.10
727
+ Enabled: true
728
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
729
+ Enabled: true
730
+ EnforcedStyle: indented
731
+ Layout/SpaceBeforeBrackets: # new in 1.7
732
+ Enabled: true
733
+ Lint/AmbiguousAssignment: # new in 1.7
734
+ Enabled: true
735
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
736
+ Enabled: true
737
+ Lint/AmbiguousRange: # new in 1.19
738
+ Enabled: true
739
+ RequireParenthesesForMethodChains: true
740
+ Lint/DeprecatedConstants: # new in 1.8
741
+ Enabled: true
742
+ Lint/DuplicateBranch: # new in 1.3
743
+ Enabled: true
744
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
745
+ Enabled: true
746
+ Lint/EmptyBlock: # new in 1.1
747
+ Enabled: true
748
+ Lint/EmptyClass: # new in 1.3
749
+ Enabled: true
750
+ Lint/EmptyInPattern: # new in 1.16
751
+ Enabled: true
752
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
753
+ Enabled: true
754
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
755
+ Enabled: true
756
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
757
+ Enabled: true
758
+ Lint/NumberedParameterAssignment: # new in 1.9
759
+ Enabled: true
760
+ Lint/OrAssignmentToConstant: # new in 1.9
761
+ Enabled: true
762
+ Lint/RedundantDirGlobSort: # new in 1.8
763
+ Enabled: false
764
+ Lint/RequireRelativeSelfPath: # new in 1.22
765
+ Enabled: true
766
+ Lint/SymbolConversion: # new in 1.9
767
+ Enabled: true
768
+ Lint/ToEnumArguments: # new in 1.1
769
+ Enabled: true
770
+ Lint/TripleQuotes: # new in 1.9
771
+ Enabled: true
772
+ Lint/UnexpectedBlockArity: # new in 1.5
773
+ Enabled: true
774
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
775
+ Enabled: true
776
+ Security/IoMethods: # new in 1.22
777
+ Enabled: true
778
+ Style/ArgumentsForwarding: # new in 1.1
779
+ Enabled: false
780
+ Style/CollectionCompact: # new in 1.2
781
+ Enabled: true
782
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
783
+ Enabled: false
784
+ Style/EndlessMethod: # new in 1.8
785
+ Enabled: true
786
+ EnforcedStyle: allow_single_line
787
+ Style/HashConversion: # new in 1.10
788
+ Enabled: true
789
+ Style/HashExcept: # new in 1.7
790
+ Enabled: false
791
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
792
+ Enabled: true
793
+ Style/InPatternThen: # new in 1.16
794
+ Enabled: true
795
+ Style/MultilineInPatternThen: # new in 1.16
796
+ Enabled: false
797
+ Style/NegatedIfElseCondition: # new in 1.2
798
+ Enabled: true
799
+ Style/NilLambda: # new in 1.3
800
+ Enabled: true
801
+ Style/NumberedParameters: # new in 1.22
802
+ Enabled: false
803
+ Style/NumberedParametersLimit: # new in 1.22
804
+ Enabled: false
805
+ Style/QuotedSymbols: # new in 1.16
806
+ Enabled: true
807
+ Style/RedundantArgument: # new in 1.4
808
+ Enabled: true
809
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
810
+ Enabled: true
811
+ Style/SelectByRegexp: # new in 1.22
812
+ Enabled: false
813
+ Style/StringChars: # new in 1.12
814
+ Enabled: true
815
+ Style/SwapValues: # new in 1.1
816
+ Enabled: true
817
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
818
+ Enabled: true
819
+ Performance/CollectionLiteralInLoop: # new in 1.8
820
+ Enabled: true
821
+ Performance/ConstantRegexp: # new in 1.9
822
+ Enabled: true
823
+ Performance/MapCompact: # new in 1.11
824
+ Enabled: false
825
+ Performance/MethodObjectAsBlock: # new in 1.9
826
+ Enabled: true
827
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
828
+ Enabled: true
829
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
830
+ Enabled: true
831
+ Rails/ActiveRecordCallbacksOrder: # new in 2.7
832
+ Enabled: true
833
+ Rails/AddColumnIndex: # new in 2.11
834
+ Enabled: true
835
+ Rails/AfterCommitOverride: # new in 2.8
836
+ Enabled: true
837
+ Rails/AttributeDefaultBlockValue: # new in 2.9
838
+ Enabled: true
839
+ Rails/EagerEvaluationLogMessage: # new in 2.11
840
+ Enabled: true
841
+ Rails/ExpandedDateRange: # new in 2.11
842
+ Enabled: true
843
+ Rails/FindById: # new in 2.7
844
+ Enabled: true
845
+ Rails/I18nLocaleAssignment: # new in 2.11
846
+ Enabled: true
847
+ Rails/Inquiry: # new in 2.7
848
+ Enabled: true
849
+ Rails/MailerName: # new in 2.7
850
+ Enabled: true
851
+ Rails/MatchRoute: # new in 2.7
852
+ Enabled: true
853
+ Rails/NegateInclude: # new in 2.7
854
+ Enabled: true
855
+ Rails/Pluck: # new in 2.7
856
+ Enabled: true
857
+ Rails/PluckInWhere: # new in 2.7
858
+ Enabled: true
859
+ Rails/RedundantTravelBack: # new in 2.12
860
+ Enabled: true
861
+ Rails/RenderInline: # new in 2.7
862
+ Enabled: true
863
+ Rails/RenderPlainText: # new in 2.7
864
+ Enabled: true
865
+ Rails/ShortI18n: # new in 2.7
866
+ Enabled: true
867
+ Rails/SquishedSQLHeredocs: # new in 2.8
868
+ Enabled: true
869
+ Rails/TimeZoneAssignment: # new in 2.10
870
+ Enabled: true
871
+ Rails/UnusedIgnoredColumns: # new in 2.11
872
+ Enabled: true
873
+ Rails/WhereEquals: # new in 2.9
874
+ Enabled: true
875
+ Rails/WhereExists: # new in 2.7
876
+ Enabled: true
877
+ Rails/WhereNot: # new in 2.8
878
+ Enabled: true
879
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
880
+ Enabled: true
881
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
882
+ Enabled: true
883
+ RSpec/SubjectDeclaration: # new in 2.5
884
+ Enabled: true
885
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
886
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  module Scc
2
2
  module Codestyle
3
- VERSION = '0.4.3'.freeze
3
+ VERSION = '0.5.0'.freeze
4
4
  end
5
5
  end
@@ -19,11 +19,12 @@ Gem::Specification.new do |spec|
19
19
  end
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'rubocop', '0.92.0'
23
- spec.add_dependency 'rubocop-performance', '1.8.1'
24
- spec.add_dependency 'rubocop-rails', '2.6.0'
25
- spec.add_dependency 'rubocop-rspec', '1.41.0'
26
- spec.add_dependency 'rubocop-thread_safety', '~> 0.4.1'
27
- spec.add_development_dependency 'bundler', '~> 2.1.4'
28
- spec.add_development_dependency 'rake', '~> 12.3'
22
+ spec.add_dependency 'rubocop', '~> 1.22'
23
+ spec.add_dependency 'rubocop-performance', '~> 1.11'
24
+ spec.add_dependency 'rubocop-rails', '~> 2.12'
25
+ spec.add_dependency 'rubocop-rake', '~> 0.6'
26
+ spec.add_dependency 'rubocop-rspec', '~> 2.5'
27
+ spec.add_dependency 'rubocop-thread_safety', '~> 0.4'
28
+ spec.add_development_dependency 'bundler', '~> 2.2'
29
+ spec.add_development_dependency 'rake', '~> 13.0'
29
30
  end
metadata CHANGED
@@ -1,113 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scc-codestyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SCC Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-29 00:00:00.000000000 Z
11
+ date: 2021-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.92.0
19
+ version: '1.22'
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: 0.92.0
26
+ version: '1.22'
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.8.1
33
+ version: '1.11'
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.8.1
40
+ version: '1.11'
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.6.0
47
+ version: '2.12'
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.6.0
54
+ version: '2.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.6'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.6'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop-rspec
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '='
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: 1.41.0
75
+ version: '2.5'
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '='
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: 1.41.0
82
+ version: '2.5'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rubocop-thread_safety
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: 0.4.1
89
+ version: '0.4'
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: 0.4.1
96
+ version: '0.4'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: bundler
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: 2.1.4
103
+ version: '2.2'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: 2.1.4
110
+ version: '2.2'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '12.3'
117
+ version: '13.0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '12.3'
124
+ version: '13.0'
111
125
  description:
112
126
  email:
113
127
  - scc@suse.com
@@ -115,6 +129,7 @@ executables: []
115
129
  extensions: []
116
130
  extra_rdoc_files: []
117
131
  files:
132
+ - ".github/workflows/gem-push.yml"
118
133
  - ".gitignore"
119
134
  - ".rubocop.yml"
120
135
  - ".ruby-version"
@@ -145,7 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
160
  - !ruby/object:Gem::Version
146
161
  version: '0'
147
162
  requirements: []
148
- rubygems_version: 3.0.8
163
+ rubyforge_project:
164
+ rubygems_version: 2.7.6.3
149
165
  signing_key:
150
166
  specification_version: 4
151
167
  summary: SCC style guides and shared style configs.