Skip to content

no unused args#1228

Closed
graingert wants to merge 3 commits intogetsentry:masterfrom
graingert:patch-3
Closed

no unused args#1228
graingert wants to merge 3 commits intogetsentry:masterfrom
graingert:patch-3

Conversation

@graingert
Copy link
Contributor

Before submitting a pull request, please verify the following:

  • If you've added code that should be tested, please add tests. (no added code)
  • If you've modified the API (e.g. added a new config or public method), update the docs and TypeScript declaration file. (no breaking changes)
  • Ensure your code lints and the test suite passes (npm test). lets hope you have CI!

function RavenProvider() {
this.$get = [
'$window',
function($window) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea how this passed linter before... is your eslint mis-configured?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't have no-unused-vars rule till this PR

@graingert graingert changed the title no unused $window in angular plugin. no unused args Feb 13, 2018
Gruntfile.js Outdated
function AddPluginBrowserifyTransformer() {
return function(file) {
return through(function(buf, enc, next) {
return through(function(buf, _enc, next) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is wrong. It should be using _enc and it seems to want to add the require at the end of every chunk

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"no-shadow": 2,
"no-undef": 2,
"no-unused-vars": [2, {"args": "none"}],
"no-unused-vars": [2, {"args": "all", "argsIgnorePattern": "^_"}],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please change this to "args": "after-used" instead?

var angularPattern = /^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/;
var moduleName = 'ngRaven';

function ExceptionHandlerProvider($provide) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you separate this code from a PR into a new one? It's changing the internal code for the plugin (constant vs. provider), therefore it should be taken care of on its own.

@kamilogorek
Copy link
Contributor

We'll change most of the linting rules in v4, so I'll close this one due to inactivity, sorry

@kamilogorek kamilogorek closed this Apr 4, 2018
chargome added a commit that referenced this pull request Mar 20, 2026
…est apps

Fixes Dependabot alerts #1227 and #1228. Patches CVE-2026-27980 (unbounded
next/image disk cache growth).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chargome added a commit that referenced this pull request Mar 20, 2026
…est apps (#19917)

Fixes Dependabot alerts #1227 and #1228. Patches CVE-2026-27980
(unbounded next/image disk cache growth).

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants