Skip to content

Commit

Permalink
Merge pull request #526 from Green-Software-Foundation/rename-models-…
Browse files Browse the repository at this point in the history
…folder

Rename `models` into `builtins`
  • Loading branch information
MariamKhalatova authored Mar 14, 2024
2 parents 50c3bb1 + b8c3bbf commit fa29f27
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 13 deletions.
11 changes: 4 additions & 7 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ module.exports = {
'.github',
'.husky',
'scripts',
'models',
'builtins',
'plugins',
'integration',
'doc'
]
'doc',
],
],
'scope-empty': [
2,
'never'
]
'scope-empty': [2, 'never'],
},
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TimeSync} from '../../../models/time-sync';
import {TimeSync} from '../../../builtins/time-sync';
import {ERRORS} from '../../../util/errors';

import {STRINGS} from '../../../config';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/lib/exhaust.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @todo This is temporary solution, will be refactored to support dynamic plugins.
*/
import {ExportCSV} from '../models/export-csv';
import {ExportCSVRaw} from '../models/export-csv-raw';
import {ExportLog} from '../models/export-log';
import {ExportYaml} from '../models/export-yaml';
import {ExportCSV} from '../builtins/export-csv';
import {ExportCSVRaw} from '../builtins/export-csv-raw';
import {ExportLog} from '../builtins/export-log';
import {ExportYaml} from '../builtins/export-yaml';

import {ERRORS} from '../util/errors';

Expand Down
2 changes: 1 addition & 1 deletion src/lib/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const importAndVerifyModule = async (method: string, path: string) => {
*/
const handModule = (method: string, path: string) => {
if (path === 'builtin') {
path = pathLib.normalize(`${__dirname}/../models`);
path = pathLib.normalize(`${__dirname}/../builtins`);
} else {
if (path?.startsWith(GITHUB_PATH)) {
const parts = path.split('/');
Expand Down

0 comments on commit fa29f27

Please sign in to comment.