File tree 5 files changed +19
-4
lines changed
5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change
1
+ xdescribe
Original file line number Diff line number Diff line change
1
+ name : CodeSpell
2
+ on :
3
+ - pull_request
4
+ jobs :
5
+ codespell :
6
+ name : CodeSpell
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v3
10
+ - name : CodeSpell
11
+ uses : codespell-project/actions-codespell@master
12
+ with :
13
+ check_filenames : true
14
+ ignore_words_file : .codespellignore
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
616
616
* Split ` UnitSpecNaming ` cop into ` RSpecDescribeClass ` , ` RSpecDescribeMethod ` and ` RSpecFileName ` and enabled them all by default. ([ @geniou ] [ ] )
617
617
* Add ` RSpecExampleWording ` cop to prevent to use of should at the beginning of the spec description. ([ @geniou ] [ ] )
618
618
* Fix ` RSpecFileName ` cop for non-class specs. ([ @geniou ] [ ] )
619
- * Adapt ` RSpecFileName ` cop to commen naming convention and skip spec with multiple top level describes. ([ @geniou ] [ ] )
619
+ * Adapt ` RSpecFileName ` cop to common naming convention and skip spec with multiple top level describes. ([ @geniou ] [ ] )
620
620
* Add ` RSpecMultipleDescribes ` cop to check for multiple top level describes. ([ @geniou ] [ ] )
621
621
* Add ` RSpecDescribedClass ` to promote the use of ` described_class ` . ([ @geniou ] [ ] )
622
622
* Add ` RSpecInstanceVariable ` cop to check for the usage of instance variables. ([ @geniou ] [ ] )
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class EmptyExampleGroup < Base
123
123
# describe { it { i_run_as_well } }
124
124
#
125
125
# @example source that does not match
126
- # before { it { whatever here wont run anyway } }
126
+ # before { it { whatever here won't run anyway } }
127
127
#
128
128
# @param node [RuboCop::AST::Node]
129
129
# @return [Array<RuboCop::AST::Node>] matching nodes
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ def rewrite
31
31
attr_reader :text , :ignores , :replacements
32
32
33
33
def replace_prefix ( pattern , replacement )
34
- text . sub ( pattern ) do |shouldnt |
35
- uppercase? ( shouldnt ) ? replacement . upcase : replacement
34
+ text . sub ( pattern ) do |matched |
35
+ uppercase? ( matched ) ? replacement . upcase : replacement
36
36
end
37
37
end
38
38
You can’t perform that action at this time.
0 commit comments