Skip to content

Commit b9a1ac8

Browse files
Merge pull request #1643 from wonda-tea-coffee/fix-typo
fix typo
2 parents 927a800 + 9076cc4 commit b9a1ac8

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
* Delay loading vendored gems and modifying load path
450450
* Avoid warning about SQL injection with `quoted_primary_key`
451451
* Support more safe `&.` operations
452-
* Allow multile line regex in `validates_format_of` (Dmitrij Fedorenko)
452+
* Allow multiple line regex in `validates_format_of` (Dmitrij Fedorenko)
453453
* Only consider `if` branches in templates
454454
* Avoid overwriting instance/class methods with same name (Tim Wade)
455455
* Add `--force-scan` option (Neil Matatall)

lib/brakeman.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def self.scan options
394394
if options[:parallel_checks]
395395
notify "Running checks in parallel..."
396396
else
397-
notify "Runnning checks..."
397+
notify "Running checks..."
398398
end
399399

400400
tracker.run_checks
@@ -479,7 +479,7 @@ def self.debug message
479479
$stderr.puts message if @debug
480480
end
481481

482-
# Compare JSON ouptut from a previous scan and return the diff of the two scans
482+
# Compare JSON output from a previous scan and return the diff of the two scans
483483
def self.compare options
484484
require 'json'
485485
require 'brakeman/differ'

lib/brakeman/app_tree.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def self.from_options(options)
2828
# Accepts an array of filenames and paths with the following format and
2929
# returns a Regexp to match them:
3030
# * "path1/file1.rb" - Matches a specific filename in the project directory.
31-
# * "path1/" - Matches any path that conatains "path1" in the project directory.
31+
# * "path1/" - Matches any path that contains "path1" in the project directory.
3232
# * "/path1/ - Matches any path that is rooted at "path1" in the project directory.
3333
#
3434
def self.regex_for_paths(paths)

lib/brakeman/checks/check_json_parsing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def check_json_version name, version
7474
warning_type = "Denial of Service"
7575
confidence = :medium
7676
gem_name = "#{name} gem"
77-
message = msg(msg_version(version, gem_name), " has a symbol creation vulnerablity. Upgrade to ")
77+
message = msg(msg_version(version, gem_name), " has a symbol creation vulnerability. Upgrade to ")
7878

7979
if version >= "1.7.0"
8080
confidence = :high

lib/brakeman/report/report_sarif.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def results
9393
end
9494
end
9595

96-
# Returns a hash of all check descriptions, keyed by check namne
96+
# Returns a hash of all check descriptions, keyed by check name
9797
def check_descriptions
9898
@check_descriptions ||= Brakeman::Checks.checks.map do |check|
9999
[check.name.gsub(/^Check/, ''), check.description]

lib/ruby_parser/bm_sexp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def body_list
544544
end
545545

546546
# Number of "statements" in a method.
547-
# This is more effecient than `Sexp#body.length`
547+
# This is more efficient than `Sexp#body.length`
548548
# because `Sexp#body` creates a new Sexp.
549549
def method_length
550550
expect :defn, :defs

test/apps/rails2/public/javascripts/prototype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4162,7 +4162,7 @@ var $continue = new Error('"throw $continue" is deprecated, use "return" instead
41624162
// further below, that map to the newer Element methods.
41634163
var Position = {
41644164
// set to true if needed, warning: firefox performance problems
4165-
// NOT neeeded for page scrolling, only if draggable contained in
4165+
// NOT needed for page scrolling, only if draggable contained in
41664166
// scrollable elements
41674167
includeScrollOffsets: false,
41684168

test/apps/rails_with_xss_plugin/public/javascripts/prototype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4162,7 +4162,7 @@ var $continue = new Error('"throw $continue" is deprecated, use "return" instead
41624162
// further below, that map to the newer Element methods.
41634163
var Position = {
41644164
// set to true if needed, warning: firefox performance problems
4165-
// NOT neeeded for page scrolling, only if draggable contained in
4165+
// NOT needed for page scrolling, only if draggable contained in
41664166
// scrollable elements
41674167
includeScrollOffsets: false,
41684168

0 commit comments

Comments
 (0)