File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -129,17 +129,17 @@ export default function (context, options = {}) {
129
129
// if found differenceIndex less than
130
130
// tokes are sorted ascending order
131
131
tokens . reduce ( ( prev , current ) => {
132
- let startPosition = countableTokens . indexOf ( prev ) ;
133
- let otherPosition = countableTokens . indexOf ( current ) ;
134
- // if difference
135
- let differenceIndex = otherPosition - startPosition ;
132
+ const startPosition = countableTokens . indexOf ( prev ) ;
133
+ const otherPosition = countableTokens . indexOf ( current ) ;
134
+ // 助詞token同士の距離が設定値以下ならエラーを報告する
135
+ const differenceIndex = otherPosition - startPosition ;
136
136
if ( differenceIndex <= minInterval ) {
137
- let originalPosition = source . originalPositionFor ( {
137
+ const originalPosition = source . originalPositionFor ( {
138
138
line : sentence . loc . start . line ,
139
139
column : sentence . loc . start . column + ( current . word_position - 1 )
140
140
} ) ;
141
- // padding position
142
- var padding = {
141
+ // padding positionを計算する
142
+ const padding = {
143
143
line : originalPosition . line - 1 ,
144
144
// matchLastToken.word_position start with 1
145
145
// this is padding column start with 0 (== -1)
You can’t perform that action at this time.
0 commit comments