Skip to content

Commit

Permalink
tools: enforce no unused trailing arguments tools directory
Browse files Browse the repository at this point in the history
Use linting to enforce that the final argument for a function must be
used.

PR-URL: #16953
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
Trott authored and jasnell committed Nov 13, 2017
1 parent bf2b5e1 commit b204b09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rules:
# Variables
# http://eslint.org/docs/rules/#variables
no-unused-vars: [error, { args: 'after-used' }]

0 comments on commit b204b09

Please sign in to comment.