{ "id": "162151", "key": "ALOY-1522", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-07-27T15:16:53.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2016-10-13T15:59:23.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "During our build process, we're getting a warning from Alloy:\r\n{noformat}\r\nNon-model file \".eslintrc.json\" in models directory\r\n{noformat}\r\n\r\nWe are using eslint in our project and need to specify some special settings for the model files. I see in the Alloy source code (commands/compile/index.js:934) that this warning is displayed for each file that doesn't match the RegEx (basically any file that doesn't end in \"js\").\r\n\r\nI could avoid the warning by making it an .eslint.js file, but that would mean it would get copied to the final product (which I'd like to avoid). It seems like it would be a nice addition if files that start with a period are skipped and don't produce warnings.", "attachment": [ { "id": "60044", "filename": "AC4252.zip", "author": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-15T14:54:20.000+0000", "size": 765837, "mimeType": "application/zip" }, { "id": "60244", "filename": "eslintrc.json", "author": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-12T14:43:06.000+0000", "size": 140, "mimeType": "application/json" } ], "flagged": false, "summary": "Silence Alloy warnings about non-model files for file names that begin with a period", "creator": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "environment": "Alloy 1.9.1", "comment": { "comments": [ { "id": "392945", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you provide a sample test case that reproduce the issue? we will look into it. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-08-11T15:47:47.000+0000", "updated": "2016-08-11T15:47:47.000+0000" }, { "id": "393158", "author": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "body": "I'm attaching a sample project. This is a new Alloy project with a single {{.eslintrc.json}} file in the {{models}} directory. ({{.eslintrc.json}} is a configuration file for ESLint (http://eslint.org).\r\n\r\nWhen you build this project:\r\n{code:console}\r\nti build -p ios --build-only --log-level=warn\r\n{code}\r\n\r\n\r\nYou will receive the following warning:\r\n{code:console}\r\n[WARN] Non-model file \".eslintrc.json\" in models directory\r\n{code}\r\n\r\n\r\nIdeally, the Alloy compiler would ignore files that begin with a period since they would not be model files and are likely configuration files for SVN, ESLint, or other tools.", "updateAuthor": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-15T15:00:40.000+0000", "updated": "2016-08-15T15:00:40.000+0000" }, { "id": "395337", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Looking into your zip file. I don't see any .eslintrc.json in the models folder inside app folder. The file looks to be a hidden file. Can you attach the file here. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-09-05T15:10:48.000+0000", "updated": "2016-09-05T15:10:48.000+0000" }, { "id": "395893", "author": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "body": "Here is the file--I've renamed it for the purposes of attaching it here, but in the provided zip file, this file was located here:\r\napp/models/.eslintrc.json", "updateAuthor": { "name": "dpfeiffer", "key": "dpfeiffer", "displayName": "Daniel Pfeiffer", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-12T14:43:30.000+0000", "updated": "2016-09-12T14:43:30.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }