Skip to content

Commit

Permalink
maint/dev ~ (ESLint) add upper-bound for cyclomatic complexity of fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
rivy committed Jan 1, 2021
1 parent 28849a0 commit 98020dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/OSPaths.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// # spell-checker:ignore AllUsersProfile HomeDrive HomePath LocalAppData UserProfile WinDir falsey
/* eslint complexity: ['error', { max: 10 }] */ // set maximum cyclomatic complexity to 10; ref: <https://eslint.org/docs/rules/complexity>
// # spell-checker:ignore AllUsersProfile HomeDrive HomePath LocalAppData UserProfile WinDir cyclomatic falsey

import * as os from 'os';
import * as path from 'path';
Expand Down
1 change: 1 addition & 0 deletions test/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-env es6, node */
/* eslint complexity: ['error', { max: 10 }] */ // set maximum cyclomatic complexity to 10; ref: <https://eslint.org/docs/rules/complexity>
// # spell-checker:ignore (modules) Deno ESM ESMs vNodeJSMajor vNodeJSminor cyclomatic execa
'use strict';

Expand Down
3 changes: 2 additions & 1 deletion test/unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-env es6, node */
// # spell-checker:ignore AllUsersProfile HomeDrive HomePath LocalAppData SystemDrive SystemRoot UserProfile windir
/* eslint complexity: ['error', { max: 10 }] */ // set maximum cyclomatic complexity to 10; ref: <https://eslint.org/docs/rules/complexity>
// # spell-checker:ignore AllUsersProfile HomeDrive HomePath LocalAppData SystemDrive SystemRoot UserProfile cyclomatic windir
'use strict';

const os = require('os');
Expand Down

0 comments on commit 98020dc

Please sign in to comment.