-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spelling #1508
Spelling #1508
Conversation
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most corrections suggested by Google Sheets. All fault mine.
description: 'Annotates errors if an errrors.txt file is present' | ||
description: 'Annotates errors if an errors.txt file is present' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes projects try to be cute. Often even if a project tries to be cute, it still contains typos. This appears to be the latter.
@@ -18,7 +18,7 @@ inputs: | |||
default: "coverage/.last_run.json" | |||
required: false | |||
token: | |||
description: "Github token" | |||
description: "GitHub token" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brand.
I'm not sure where this thing comes from, but the project has a number of typos, and assuming it isn't original to this repo, I'd like to send a PR for it.
I've actively dropped a couple of changes to associated files.
echo "DEBUG: running 'gem install strscan'" | ||
gem install --default strscan:3.0.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches the code...
def test_html_safe_if_needed_unsafed | ||
def test_html_safe_if_needed_unsafe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what this is trying to say (nor the next one)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's broken down like this:
test_
: required minitest prefix for all tests
html_safe_if_needed
: method name
newrelic-ruby-agent/lib/new_relic/agent/javascript_instrumentor.rb
Lines 199 to 202 in ab2cf23
def html_safe_if_needed(string) | |
string = string.html_safe if string.respond_to?(:html_safe) | |
string | |
end |
_unsafe
/safe
: way of breaking up the test cases into strings that are not html safe and strings that are html safe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. so, it sounds like the d
isn't needed/wanted. In which case I'm happy w/ this change.
'whereever.com' | ||
'wherever.com' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert standard disclaimer for https://example.com/
def test_to_debug_str_multichild | ||
def test_to_debug_str_multi_child |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This didn't seem to be used in enough places to justify treatment as a word (there were a number of things I accepted as merged...)
Oh, I should perhaps note that https://github.com/newrelic/newrelic-ruby-agent/blob/dev/.github/workflows/label_community_cards.yml is hostile to forks w/ locked down configurations. It should have explicit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for brightening our Friday afternoons with this PR!
We're impressed with this action and would welcome another PR to introduce it to our repository as a regular part of our workflow.
Are you participating in Hacktoberfest? If so, I'd be happy to hold the merge until the start of the month.
@@ -940,7 +940,7 @@ def self.enforce_fallback(allowed_values: nil, fallback: nil) | |||
:type => String, | |||
:dynamic_name => true, | |||
:allowed_from_server => false, | |||
:description => "Controls auto-instrumentation of the Thread class at start up to allow the agent to correctly nest spans inside of an asyncronous transaction. This does not enable the agent to automatically trace all threads created (see `instrumentation.thread.tracing`). May be one of [auto|prepend|chain|disabled]." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maintainer note: We'll need to regenerate the configuration documentation for the docs-website repo to apply this spelling correction there.
@@ -185,7 +185,7 @@ | |||
{ | |||
"test_name": "spans_disabled_in_parent", | |||
"comment": [ "If the parent is a New Relic agent with span events disabled it SHOULD omit span", | |||
"id from the tracestate. This verifies agents propogate Trace Context payloads when the", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maintainer note: These files need to be updated in the GHE cross-agent-tests repo to avoid regression.
the ControllerInstrumentation module in to both the `Base` and `API` | ||
the ControllerInstrumentation module into both the `Base` and `API` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the single word makes more sense here. Seems like an interesting coding problem to solve!
config = {:uri => "jdbc:postgresql://host/database?user=posgres"} | ||
config = {:uri => "jdbc:postgresql://host/database?user=postgres"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. Should be fine. We'll see failures in our JRuby tests if not.
def test_html_safe_if_needed_unsafed | ||
def test_html_safe_if_needed_unsafe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's broken down like this:
test_
: required minitest prefix for all tests
html_safe_if_needed
: method name
newrelic-ruby-agent/lib/new_relic/agent/javascript_instrumentor.rb
Lines 199 to 202 in ab2cf23
def html_safe_if_needed(string) | |
string = string.html_safe if string.respond_to?(:html_safe) | |
string | |
end |
_unsafe
/safe
: way of breaking up the test cases into strings that are not html safe and strings that are html safe
I try to remember to participate. I'll have to sign up. Thanks for the reminder. Signed up! I do these year-round because they exercise my tool and I like to help. |
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this great contribution! 🎉
@jsoref, when you have the time, we'd love to have your action added to our workflows. Thanks for introducing us to it and correcting our spelling. 😄 |
Overview
Describe the changes present in the pull request
This PR corrects misspellings identified by the check-spelling action.
The misspellings have been reported at jsoref@3c48f73#commitcomment-85517301
The action reports that the changes in this PR would make it happy: jsoref@1186c61
Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.
Submitter Checklist:
Testing
The agent includes a suite of unit and functional tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here for our unit tests,
and here for our functional tests.
For most contributions it is strongly recommended to add additional tests which
exercise your changes.
Reviewer Checklist