Skip to content

Commit

Permalink
insert missing copyright into apigeelintrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoChiesa committed Dec 19, 2024
1 parent 1d602c4 commit 26bb956
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions lib/package/apigeelintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
// apigeelintrc.js
// ------------------------------------------------------------------
//
// created: Mon Apr 15 18:14:54 2024
// last saved: <2024-July-19 12:24:12>
/*
Copyright © 2023-2024 Google LLC
/* jshint esversion:9, node:true, strict:implied */
/* global process, console, Buffer */
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

const os = require("os");
const fs = require("fs");
Expand All @@ -32,7 +39,7 @@ const findRc = (settingsfiles, sourcedir) => {
}

return combine([sourcedir, ...locations], settingsfiles).find(
(candidate) => fs.existsSync(candidate) && fs.statSync(candidate).isFile()
(candidate) => fs.existsSync(candidate) && fs.statSync(candidate).isFile(),
);
};

Expand All @@ -57,5 +64,5 @@ const readRc = (settingsfiles, sourcedir) => {

module.exports = {
readRc,
findRc
findRc,
};

0 comments on commit 26bb956

Please sign in to comment.