-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include files from a source-directory if that source-directory is in …
…elm-stuff
- Loading branch information
Showing
11 changed files
with
137 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"type": "application", | ||
"source-directories": [ | ||
"src", | ||
"elm-stuff/src" | ||
], | ||
"elm-version": "0.19.1", | ||
"dependencies": { | ||
"direct": { | ||
"elm/browser": "1.0.2", | ||
"elm/core": "1.0.5", | ||
"elm/html": "1.0.0" | ||
}, | ||
"indirect": { | ||
"elm/json": "1.1.3", | ||
"elm/time": "1.0.0", | ||
"elm/url": "1.0.0", | ||
"elm/virtual-dom": "1.0.3" | ||
} | ||
}, | ||
"test-dependencies": { | ||
"direct": {}, | ||
"indirect": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"type": "application", | ||
"source-directories": [ | ||
"src" | ||
], | ||
"elm-version": "0.19.1", | ||
"dependencies": { | ||
"direct": { | ||
"elm/core": "1.0.5", | ||
"elm/json": "1.1.3", | ||
"elm/project-metadata-utils": "1.0.2", | ||
"jfmengels/elm-review": "2.14.1", | ||
"jfmengels/elm-review-unused": "1.2.3", | ||
"stil4m/elm-syntax": "7.3.7" | ||
}, | ||
"indirect": { | ||
"elm/bytes": "1.0.8", | ||
"elm/html": "1.0.0", | ||
"elm/parser": "1.1.0", | ||
"elm/random": "1.0.0", | ||
"elm/regex": "1.0.0", | ||
"elm/time": "1.0.0", | ||
"elm/virtual-dom": "1.0.3", | ||
"elm-explorations/test": "2.2.0", | ||
"rtfeldman/elm-hex": "1.0.0", | ||
"stil4m/structured-writer": "1.0.3" | ||
} | ||
}, | ||
"test-dependencies": { | ||
"direct": {}, | ||
"indirect": {} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/project-with-files-in-elm-stuff/review/src/ReviewConfig.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module ReviewConfig exposing (config) | ||
|
||
{-| Do not rename the ReviewConfig module or the config function, because | ||
`elm-review` will look for these. | ||
To add packages that contain rules, add them to this review project using | ||
`elm install author/packagename` | ||
when inside the directory containing this file. | ||
-} | ||
|
||
import NoUnused.Variables | ||
import Review.Rule exposing (Rule) | ||
|
||
|
||
config : List Rule | ||
config = | ||
[ NoUnused.Variables.rule | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Folder.Unused exposing (..) | ||
|
||
|
||
a = | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Folder.Used exposing (one) | ||
|
||
|
||
one : Int | ||
one = | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Main exposing (..) | ||
|
||
import Util as List | ||
import UtilNotUsed as List | ||
|
||
useImportAliasFromElmstuff x = List.test x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module UtilNotUsed exposing (x) | ||
|
||
x = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
test/snapshots/review/src.elm-project-with-files-in-elm-stuff.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- ELM-REVIEW ERROR --------------------------------- elm-stuff/src/Util.elm:6:1 | ||
|
||
(fix) NoUnused.Variables: Top-level variable `unused` is not used | ||
|
||
6| unused = 1 | ||
^^^^^^ | ||
|
||
You should either use this value somewhere, or remove it at the location I | ||
pointed at. | ||
|
||
elm-stuff/src/Util.elm ↑ | ||
====o======================================================================o==== | ||
↓ src/Main.elm | ||
|
||
|
||
-- ELM-REVIEW ERROR ------------------------------------------ src/Main.elm:4:23 | ||
|
||
(fix) NoUnused.Variables: Module alias `List` is not used | ||
|
||
3| import Util as List | ||
4| import UtilNotUsed as List | ||
^^^^ | ||
|
||
You should either use this value somewhere, or remove it at the location I | ||
pointed at. | ||
|
||
Errors marked with (fix) can be fixed automatically using `elm-review --fix`. | ||
|
||
I found 2 errors in 2 files. |