Skip to content

Commit

Permalink
cc: adjust config
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Apr 9, 2024
1 parent 6f7ac6f commit 45a3b6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ checks:
threshold: 500
method-lines:
config:
threshold: 45
threshold: 50
method-complexity:
config:
threshold: 10
threshold: 11
19 changes: 7 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@ exports.register = function () {
this.init_lists()
this.load_access_ini() // update with *.ini settings

let p
for (p in this.cfg.white) {
this.load_file('white', p)
}
for (p in this.cfg.black) {
this.load_file('black', p)
}
for (p in this.cfg.re.white) {
this.load_re_file('white', p)
}
for (p in this.cfg.re.black) {
this.load_re_file('black', p)
for (const c of 'black', 'white') {
for (p in this.cfg[c]) {
this.load_file(c, p)
}
for (p in this.cfg.re[c]) {
this.load_re_file(c, p)
}
}

if (this.cfg.check.conn) {
Expand Down

0 comments on commit 45a3b6a

Please sign in to comment.